CTS2-LE REST API: SPARQL Query: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Billig (Diskussion | Beiträge) |
Billig (Diskussion | Beiträge) K |
||
| Zeile 5: | Zeile 5: | ||
* '''Method:''' GET | * '''Method:''' GET | ||
* '''Path Parameters:''' - | * '''Path Parameters:''' - | ||
| − | * '''Query Parameters:''' SPARQL select-query string | + | * '''Query Parameters:''' |
| + | ** ''query'': SPARQL select-query string | ||
* '''returns: ''' query results according to https://www.w3.org/TR/rdf-sparql-XMLres/ but WITHOUT the head-element | * '''returns: ''' query results according to https://www.w3.org/TR/rdf-sparql-XMLres/ but WITHOUT the head-element | ||
Aktuelle Version vom 24. August 2016, 19:32 Uhr
CTS2-LE allows for SPARQL-SELECT queries within and across terminologies.
Operation
- Path: /WebCts2LE/service/crud/sparql/select
- Method: GET
- Path Parameters: -
- Query Parameters:
- query: SPARQL select-query string
- returns: query results according to https://www.w3.org/TR/rdf-sparql-XMLres/ but WITHOUT the head-element
Example Call
for uncoded query
select ?val where { ?x :name ?n. ?x :designation ?d. ?d :designationRole 'PREFERRED'; :value ?val } limit 10
Example Response Structure
<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#">
<results>
<result>
<binding name="val">
<literal>...</literal>
</binding>
</result>
...
</results>
</sparql>