fibo2023Q3 / src /etc /testing /hygiene_parameterized /testHygiene_annotations_definition.sparql
wikipunk's picture
add FIBO Q3 2023 release to src
38b6321
raw
history blame
1.07 kB
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix dct: <http://purl.org/dc/terms/>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix fibo-fnd-utl-av: <https://spec.edmcouncil.org/fibo/ontology/FND/Utilities/AnnotationVocabulary/>
##
# banner Every class and property defined in FIBO must have a skos:definition.
SELECT DISTINCT ?error
WHERE {
?subject a ?c .
FILTER NOT EXISTS {?subject owl:deprecated "true"^^xsd:boolean} .
FILTER regex(str(?subject), <HYGIENE_TESTS_FILTER_PARAMETER>)
FILTER NOT EXISTS {?subject owl:deprecated "true"^^xsd:boolean} .
FILTER (?c in (owl:Class,
owl:ObjectProperty,
owl:AnnotationProperty,
owl:DatatypeProperty))
FILTER NOT EXISTS {?subject skos:definition ?def .}
BIND (concat ("PRODERROR: ", xsd:string(?subject), " has to have a definition.") AS ?error)
}