hasProperty(RDF.type, LDP.Container) replaced with getMatchedOntClass().hasSuperClass(LDP.Container) - should work without container instances in ontology model