prefix afn: prefix owl: prefix rdf: prefix xsd: prefix rdfs: ## # banner Subproperties domains should not cross SELECT DISTINCT ?error WHERE { ?property1 rdfs:domain ?D1 . ?property1 rdfs:subPropertyOf ?property2 . ?property2 rdfs:domain ?D2 . ?D2 rdfs:subClassOf+ ?D1 . FILTER NOT EXISTS {?property1 owl:deprecated "true"^^xsd:boolean} . FILTER NOT EXISTS {?property2 owl:deprecated "true"^^xsd:boolean} . FILTER regex(str(?property1), ) FILTER regex(str(?property2), ) BIND ( concat ("PRODERROR: Crossed domains. ", afn:localname(?property1), " < ", afn:localname (?property2), " but the domain ", afn:localname (?D1), " is a superclass of ", afn:localname (?D2)) AS ?error ) }