Datasets:
File size: 514 Bytes
38b6321 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
##
# banner Class subClassOf hierarchy shouldn't be circular.
SELECT DISTINCT ?error ?class
WHERE
{
FILTER regex(str(?class), <HYGIENE_TESTS_FILTER_PARAMETER>)
?class rdfs:subClassOf+ ?class .
FILTER NOT EXISTS {?class owl:deprecated "true"^^xsd:boolean} .
BIND (concat ("PRODERROR: There is a hierarchy cycle around class ", str(?class)) AS ?error)
} |