-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFE-08.sparql
41 lines (33 loc) · 1.59 KB
/
FE-08.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
36
37
38
39
40
41
# 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/>
# Which single evidence items support or challenge multiple claims of the type "substrate of"?
SELECT DISTINCT xsd:string(?source) as ?evidence_source
FROM <inferred-graph-oa-mp.xml>
WHERE
{
?aURN oa:hasSource ?source.
?anItem oa:hasTarget ?aURN.
?anItem oa:hasBody ?data.
{?data mp:supports ?claim} UNION {?data mp:challenges ?claim}.
?claim a mp:Claim.
?claim mp:qualifiedBy obo:DIDEO_00000096.
}
GROUP BY ?source
HAVING ( count(DISTINCT ?claim) > 1 )