prefix owl: prefix rdfs: prefix rdf: ## # banner We should avoid punning object and datatype properties SELECT DISTINCT ?error ?property1 ?property2 WHERE { ?property1 owl:equivalentProperty ?property2. FILTER (regex(str(?property1), ) || regex(str(?property2), )) { ?property1 rdfs:subPropertyOf*/rdf:type owl:DatatypeProperty. ?property2 rdfs:subPropertyOf*/rdf:type owl:ObjectProperty. } UNION { ?property2 rdfs:subPropertyOf*/rdf:type owl:DatatypeProperty. ?property1 rdfs:subPropertyOf*/rdf:type owl:ObjectProperty. } BIND (concat ("ERROR: Equivalent property axiom for ", str(?property1), str(?property2), " mixes up object and datatype properties.") AS ?error) }