Skip to content

Commit

Permalink
final query update
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelrosko committed Aug 13, 2015
1 parent c9da5ce commit 33d2307
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions queries/STAT-08.sparql
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
1 change: 1 addition & 0 deletions queries/use-cases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ different versions of product labeling for the same drug? **DEFERRED**
5. Show the count of label statements for all types of claims **done**
6. Show the count of drugs included in this version of the DIKB **done**
7. Show the count of full nanopublications in the system **done**
8. Show the count of claims by the type of claims

0 comments on commit 33d2307

Please sign in to comment.