-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path09_03_conceptwiki_GetConceptDescription.ttl
38 lines (32 loc) · 1.71 KB
/
09_03_conceptwiki_GetConceptDescription.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
@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 api: <http://purl.org/linked-data/api/vocab#> .
@prefix ops: <http://www.openphacts.org/api#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<#conceptWiki> a api:API ;
rdfs:label "Concept Wiki services"@en;
api:sparqlEndpoint <http://alpha.openphacts.org:8890/sparql/> ;
api:contentNegotiation api:parameterBased ;
api:variable <#uuid> ;
api:variable <#branch> ;
api:description "An API configuration to map free text to a concept URL." ;
api:endpoint [
a api:ExternalHTTPService ;
api:name "Concept Description" ;
api:enableCache false ;
api:description "Get the description of a concept, based on a concept URL. Driven by ConceptWiki." ;
api:uriTemplate "/getConceptDescription?uuid={uuid}" ;
api:externalRequestTemplate "http://alpha.openphacts.org:8839/web-ws/concept/get?uuid={uuid}" ;
api:externalResponseHandler "converters/conceptwiki_getConceptDescription_json_to_rdf.php" ;
api:exampleRequestPath "/getConceptDescription?uuid=8e3a87ae-345d-4c25-bd7a-5b3221c6e3fa" ;
api:viewer <#externalResponseViewer> ;
api:defaultViewer <#externalResponseViewer> . ] .
<#uuid> api:name "uuid" ;
api:label "uuid";
api:value "UUID of the concept; required. E.g. 8e3a87ae-345d-4c25-bd7a-5b3221c6e3fa" .
<#branch> api:name "branch" ;
api:label "branch" ;
api:value "The search results will be filtered by this source authority; optional. Possible values: 1 = Community, 2 = UMLS, 3 = SwissProt, 4 = ChemSpider, 5 = Computer Inferred, 6 = Pathway Ontology, 7 = WikiPathways" .
<#externalResponseViewer> a api:Viewer ;
api:name "externalResponseViewer" .