CTS2-LE REST API: SPARQL Query: Unterschied zwischen den Versionen

Aus CTS2-LE
Zur Navigation springen Zur Suche springen
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

http://localhost:8080/WebCts2LE/service/crud/sparql/select?query=select%20?val%20where%20%7B%20?x%20:name%20?n.%20?x%20:designation%20?d.%20?d%20:designationRole%2

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>