-
Notifications
You must be signed in to change notification settings - Fork 1
/
FA-09.sparql
32 lines (29 loc) · 1.39 KB
/
FA-09.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
# 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 drugbank: <http://bio2rdf.org/drugbank:>
PREFIX ChEBI: <http://purl.obolibrary.org/obo/>
##### List all claims involving drug X - 'paroxetine' (replace ChEBI for whatever drug you want)
SELECT ?claim ?cLabel
FROM <inferred-graph-oa-mp.xml>
WHERE
{
?claim rdf:type mp:Claim;
rdfs:label ?cLabel.
?claim mp:qualifiedBy ChEBI:CHEBI_7936.
}