Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from monarch-initiative/medicalspecialtybranch
Add medical examination terms and close #287
- Loading branch information
Showing
7 changed files
with
235 additions
and
67 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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,21 @@ | ||
prefix IAO: <http://purl.obolibrary.org/obo/IAO_> | ||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
prefix oio: <http://www.geneontology.org/formats/oboInOwl#> | ||
# prefix def: <http://purl.obolibrary.org/obo/IAO_0000115> | ||
prefix owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
# count how many non-obsolete classes are in MAXO | ||
|
||
SELECT (count(distinct ?cls) as ?count) | ||
|
||
WHERE | ||
{ | ||
?cls a owl:Class . | ||
?cls rdfs:label ?cls_label . | ||
FILTER NOT EXISTS { | ||
?cls owl:deprecated "true"^^xsd:boolean | ||
} | ||
|
||
FILTER( !isBlank(?cls) && regex(str(?cls), "^http://purl.obolibrary.org/obo/MAXO_")) | ||
} |
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,11 @@ | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
|
||
SELECT DISTINCT ?term (STR(?lab) AS ?label) WHERE { | ||
?x rdf:type owl:Class . | ||
OPTIONAL {?x rdfs:label ?lab} | ||
FILTER(isIRI(?term) && (STRSTARTS(str(?term), "http://purl.obolibrary.org/obo/MAXO_") || STRSTARTS(str(?term), "http://purl.obolibrary.org/obo/MAXO_")))} | ||
ORDER BY ?x | ||
|
||
|
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 was deleted.
Oops, something went wrong.