-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path04_01_pathwayList_Count.ttl
113 lines (106 loc) · 5.52 KB
/
04_01_pathwayList_Count.ttl
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
@base <http://www.openphacts.org/api> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/>.
@prefix api: <http://purl.org/linked-data/api/vocab#> .
@prefix rel: <http://vocab.org/relationship/> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix drugbank: <http://bio2rdf.org/drugbank_vocabulary:> .
@prefix sio: <http://semanticscience.org/resource/>
@prefix obo: <http://purl.obolibrary.org/obo/> .
@prefix cheminf: <http://semanticscience.org/resource/> .
@prefix qudt: <http://qudt.org/1.1/schema/qudt#> .
@prefix ops: <http://www.openphacts.org/api#> .
@prefix cito: <http://purl.org/spar/cito/> .
@prefix wp: <http://vocabularies.wikipathways.org/wp#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<#pathway> a api:API ;
rdfs:label "Pathway"@en ;
api:sparqlEndpoint <http://alpha.openphacts.org:8890/sparql/> ;
api:contentNegotiation api:parameterBased ;
api:variable wp:organism ;
api:dataset <http://www.wikipathways.org> ;
api:vocabulary <http://vocabularies.wikipathways.org/wp#> ;
api:vocabulary <http://xmlns.com/foaf/0.1/> ;
api:vocabulary <http://purl.org/dc/elements/1.1/> ;
api:vocabulary <http://purl.org/dc/terms/> ;
api:description "An API configuration to return information about pathways" ;
api:endpoint [
a api:ItemEndpoint ;
api:name "Pathways: Count" ;
api:description "The total number of pathways in the LDC.";
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_7165> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_3702> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_1423> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_9913> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_6239> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_9615> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_7955> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_7227> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_9796> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_9031> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_5518> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_9606> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_10090> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_1773> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_4530> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_9598> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_10116> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_4932> ;
api:variable <http://purl.obolibrary.org/obo/NCBITaxon_4577> ;
api:uriTemplate "/pathways/count" ;
api:itemTemplate "http://www.wikipathways.org" ;
api:exampleRequestPath "/pathways/count" ;
api:exampleRequestPath "/pathways/count?pathway_organism=Homo%20sapiens" ;
api:viewer <#pathwayCountViewer> ;
api:defaultViewer <#pathwayCountViewer> . ] .
<http://www.wikipathways.org> api:label "WikiPathways" .
<http://vocabularies.wikipathways.org/wp#> api:label "wikipathways" .
<http://xmlns.com/foaf/0.1/> api:label "foaf" .
<http://purl.org/dc/elements/1.1/> api:label "dc" .
<http://purl.org/dc/terms/> api:label "dcterms" .
<http://purl.obolibrary.org/obo/NCBITaxon_7165> api:name "Anopheles gambiae" .
<http://purl.obolibrary.org/obo/NCBITaxon_3702> api:name "Arabidopsis thaliana" .
<http://purl.obolibrary.org/obo/NCBITaxon_1423> api:name "Bacillus subtilis" .
<http://purl.obolibrary.org/obo/NCBITaxon_9913> api:name "Bos taurus" .
<http://purl.obolibrary.org/obo/NCBITaxon_6239> api:name "Caenorhabditis elegans" .
<http://purl.obolibrary.org/obo/NCBITaxon_9615> api:name "Canis familiaris" .
<http://purl.obolibrary.org/obo/NCBITaxon_7955> api:name "Danio rerio" .
<http://purl.obolibrary.org/obo/NCBITaxon_7227> api:name "Drosophila melanogaster" .
<http://purl.obolibrary.org/obo/NCBITaxon_9796> api:name "Equus caballus" .
<http://purl.obolibrary.org/obo/NCBITaxon_9031> api:name "Gallus gallus" .
<http://purl.obolibrary.org/obo/NCBITaxon_5518> api:name "Gibberella zeae" .
<http://purl.obolibrary.org/obo/NCBITaxon_9606> api:name "Homo sapiens" .
<http://purl.obolibrary.org/obo/NCBITaxon_10090> api:name "Mus musculus" .
<http://purl.obolibrary.org/obo/NCBITaxon_1773> api:name "Mycobacterium tuberculosis" .
<http://purl.obolibrary.org/obo/NCBITaxon_4530> api:name "Oryza sativa" .
<http://purl.obolibrary.org/obo/NCBITaxon_9598> api:name "Pan troglodytes" .
<http://purl.obolibrary.org/obo/NCBITaxon_10116> api:name "Rattus norvegicus" .
<http://purl.obolibrary.org/obo/NCBITaxon_4932> api:name "Saccharomyces cerevisiae" .
<http://purl.obolibrary.org/obo/NCBITaxon_4577> api:name "Zea mays" .
wp:organism api:name "pathway_organism" ;
api:label "pathway_organism" ;
api:value "The name for the pathway organism (URL encode). e.g.: Homo sapiens." ;
api:filterVariable "?pathway";
a rdf:Property .
<#pathwayCountViewer> a api:Viewer ;
api:name "pathwayCountViewer" ;
api:template
"<http://www.wikipathways.org> ops:pathway_count ?count .";
api:where
"{
SELECT ( COUNT ( DISTINCT ?pathway ) AS ?count ) WHERE {
GRAPH <http://www.wikipathways.org> {
?pathway a wp:Pathway ;
dc:title ?title ;
wp:organism ?organism_uri ;
foaf:page ?page ;
dc:identifier ?identifier ;
wp:organismName ?organism .
}
}
}" .