-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSTAT-04.sparql
36 lines (32 loc) · 1.67 KB
/
STAT-04.sparql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPARQL version: 1.1
# DIKB MP/NP version: 2015-10-09
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 distribution of evidence types for all types of claims
SELECT ?cType as ?claim_type ?type as ?evidence_type count(?type) as ?evidence_count
FROM <inferred-graph-oa-mp.xml>
WHERE
{
{ ?data mp:supports ?claim } UNION { ?data mp:challenges ?claim }.
?data rdf:type ?type.
{?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_ ))
FILTER regex ( ?type, dikbEvidence: )
}
GROUP BY ?cType ?type