CTS2-LE REST API: SPARQL Query

Aus CTS2-LE
Zur Navigation springen Zur Suche springen

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>