mirror of
https://github.com/CommonCoreOntology/CommonCoreOntologies.git
synced 2026-04-27 03:00:27 -04:00
Merge pull request #519 from CommonCoreOntology/489-syntax-errors-in-githubdeploymentqueriescco_classes_have_bfo_superclasssparql
Adding angle brackets to URLs in query.
This commit is contained in:
@@ -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: <http://www.w3.org/2002/07/owl#>
|
||||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
||||
|
||||
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+ <http://purl.obolibrary.org/obo/BFO_0000001> }
|
||||
OPTIONAL {?class rdfs:label ?label}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user