-
Notifications
You must be signed in to change notification settings - Fork 7
/
06_01_tissueInfo.ttl
54 lines (50 loc) · 2.21 KB
/
06_01_tissueInfo.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
@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 void: <http://rdfs.org/ns/void#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ops: <http://www.openphacts.org/api#> .
@prefix uniprot: <http://purl.uniprot.org/core/> .
@prefix obo: <http://purl.obolibrary.org/obo/> .
@prefix oboowl: <http://www.geneontology.org/formats/oboInOwl#> .
<#tissue> a api:API ;
rdfs:label "Tissue"@en ;
api:sparqlEndpoint <http://alpha.openphacts.org:8890/sparql/> ;
api:contentNegotiation api:parameterBased ;
api:variable <#input> ;
api:dataset <http://rdf.imim.es> ;
api:vocabulary <http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#> ;
api:vocabulary <http://semanticscience.org/resource/> ;
api:description "An API configuration to return information about tissues" ;
api:endpoint [
a api:ItemEndpoint ;
api:name "[PREVIEW] Tissue Information" ;
api:description "Information about a single tissue.";
api:uriTemplate "/tissue?uri={uri}" ;
api:itemTemplate "{uri}" ;
api:exampleRequestPath "/tissue?uri=ftp%3A%2F%2Fftp.nextprot.org%2Fpub%2Fcurrent_release%2Fcontrolled_vocabularies%2Fcaloha.obo%23TS-0171" ;
api:viewer <#tissueInfoViewer> ;
api:defaultViewer <#tissueInfoViewer> . ] .
<#input> api:name "uri" ;
api:label "uri";
api:value "A tissue URI. e.g.: ftp://ftp.nextprot.org/pub/current_release/controlled_vocabularies/caloha.obo#TS-0171" ;
rdfs:range rdfs:Resource .
<#tissueInfoViewer> a api:Viewer ;
api:name "tissueInfoViewer" ;
api:template
"?ops_item rdfs:label ?tissue_label ;
ops:definition ?tissue_def ;
oboowl:hasDbXref ?tissue_xref ;
void:inDataset <http://www.nextprot.org/caloha> .
";
api:where
"GRAPH <http://www.nextprot.org/caloha> {
{ ?ops_item rdfs:label ?tissue_label }
UNION { ?ops_item obo:IAO_0000115 ?tissue_def }
UNION { ?ops_item oboowl:hasDbXref ?tissue_xref}
}" .