-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add harrison subset * Create harrison-view.sparql Run this with ``` robot --catalog catalog-v001.xml reason -i mondo-edit.obo query --use-graphs true -f tsv --query ../sparql/reports/harrison-view.sparql reports/report-reason-harrison-view.tsv ``` * add to harrison_subset --------- Co-authored-by: Nico Matentzoglu <[email protected]> Co-authored-by: katiermullen <[email protected]>
- Loading branch information
1 parent
29010a9
commit 77ada1d
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#> | ||
PREFIX MONDO: <http://purl.obolibrary.org/obo/MONDO_> | ||
|
||
SELECT DISTINCT ?mondo_id ?label ?harrison WHERE { | ||
?mondo_id rdfs:subClassOf+ <http://purl.obolibrary.org/obo/MONDO_0700096> ; | ||
rdfs:label ?label . | ||
|
||
OPTIONAL { | ||
?mondo_id rdfs:subClassOf+ ?ancestor . | ||
?ancestor oboInOwl:inSubset <http://purl.obolibrary.org/obo/mondo#harrisons_view> . | ||
BIND("YES" as ?harrison) | ||
} | ||
} |