-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9da5ce
commit 33d2307
Showing
2 changed files
with
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# SPARQL version: 1.1 | ||
# DIKB MP/NP version: 2015-08-13 | ||
|
||
PREFIX aoOld: <http://purl.org/ao/core/> # needed for AnnotationSet and item until the equivalent is in Open Data Annotation | ||
PREFIX cnt: <http://www.w3.org/2011/content#> | ||
PREFIX dailymed: <http://dbmi-icode-01.dbmi.pitt.edu/linkedSPLs/vocab/resource/> | ||
PREFIX dcterms: <http://purl.org/dc/terms/> | ||
PREFIX dctypes: <http://purl.org/dc/dcmitype/> | ||
PREFIX dikbD2R: <http://dbmi-icode-01.dbmi.pitt.edu/dikb/vocab/resource/> | ||
PREFIX dikbEvidence: <http://dbmi-icode-01.dbmi.pitt.edu/dikb-evidence/DIKB_evidence_ontology_v1.3.owl#> | ||
PREFIX gcds: <http://www.genomic-cds.org/ont/genomic-cds.owl#> | ||
PREFIX mp: <http://purl.org/mp/> # namespace for micropublication | ||
PREFIX ncbit: <http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#> | ||
PREFIX oa: <http://www.w3.org/ns/oa#> | ||
PREFIX pav: <http://purl.org/pav> | ||
PREFIX poc: <http://dbmi-icode-01.dbmi.pitt.edu/mp/> | ||
PREFIX sio: <http://semanticscience.org/resource/> | ||
PREFIX siocns: <http://rdfs.org/sioc/ns#> | ||
PREFIX swande: <http://purl.org/swan/1.2/discourse-elements#> | ||
PREFIX obo: <http://purl.obolibrary.org/obo/> | ||
|
||
#### Show the count of claims by the type of claims | ||
|
||
SELECT ?cType as ?claim_type COUNT(DISTINCT ?claim) as ?claim_count | ||
FROM <inferred-graph-oa-mp.xml> | ||
WHERE | ||
{ | ||
{ ?statement mp:supports ?claim } UNION { ?statement mp:challenges ?claim }. | ||
{?claim mp:qualifiedBy obo:DIDEO_00000096} UNION {?claim mp:qualifiedBy obo:RO_0002449} UNION {?claim mp:qualifiedBy obo:DIDEO_00000000}. | ||
?claim mp:qualifiedBy ?cType. | ||
FILTER ( !regex(?cType, obo:CHEBI_) && !regex(?cType, obo:PR_) ) | ||
} | ||
GROUP BY ?cType |
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