Datasets:
fibo2023Q3 / src /etc /testing /hygiene_parameterized /testHygiene_properties_punning_declaration.sparql
| prefix owl: <http://www.w3.org/2002/07/owl#> | |
| prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
| prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
| ## | |
| # banner We should avoid punning object and datatype properties | |
| SELECT DISTINCT ?error ?property | |
| WHERE | |
| { | |
| ?property rdfs:subPropertyOf*/rdf:type owl:DatatypeProperty. | |
| ?property rdfs:subPropertyOf*/rdf:type owl:ObjectProperty. | |
| FILTER regex(str(?property), <HYGIENE_TESTS_FILTER_PARAMETER>) | |
| BIND (concat ("ERROR: Property ", str(?property), " is declared both as an object and a datatype property.") AS ?error) | |
| } | |