fibo2023Q3 / src /etc /testing /hygiene_parameterized /testHygiene_ontologies_label.sparql
wikipunk's picture
add FIBO Q3 2023 release to src
38b6321
raw
history blame
828 Bytes
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 sm: <http://www.omg.org/techprocess/ab/SpecificationMetadata/>
prefix cmns-av: <https://www.omg.org/spec/Commons/AnnotationVocabulary/>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix dct: <http://purl.org/dc/terms/>
##
# banner Every Ontology defined in FIBO must have an rdfs:label.
SELECT DISTINCT ?error
WHERE {
?ont a owl:Ontology .
FILTER NOT EXISTS {?ont owl:deprecated "true"^^xsd:boolean} .
FILTER regex(str(?ont), <HYGIENE_TESTS_FILTER_PARAMETER>)
FILTER NOT EXISTS {?ont rdfs:label ?l .}
BIND (concat ("PRODERROR: ", xsd:string(?ont), " has to have a label.") AS ?error)
}