diff --git a/.github/deployment/sparql/CCO_classes_have_BFO_superclass.sparql b/.github/deployment/sparql/CCO_classes_have_BFO_superclass.sparql index eeea2f5..ee9b916 100644 --- a/.github/deployment/sparql/CCO_classes_have_BFO_superclass.sparql +++ b/.github/deployment/sparql/CCO_classes_have_BFO_superclass.sparql @@ -7,13 +7,13 @@ # Author: # github.com/neilotte -PREFIX owl: http://www.w3.org/2002/07/owl# -PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# +PREFIX owl: +PREFIX rdfs: SELECT DISTINCT ?class ?label WHERE { ?class a owl:Class . FILTER contains(str(?class),"http://www.ontologyrepository.com/CommonCoreOntologies/") -FILTER NOT EXISTS {?class rdfs:subClassOf+ http://purl.obolibrary.org/obo/BFO_0000001 } +FILTER NOT EXISTS {?class rdfs:subClassOf+ } OPTIONAL {?class rdfs:label ?label} }