Path: / {BASE} / sparql / select

Execute a SPARQL 1.1 tuple query on the LMF triple store using the query passed as query parameter to the GET request. Result will be formatted using the result type passed as argument (either "html", "json" or "xml").

see SPARQL 1.1 Query syntax at http://www.w3.org/TR/sparql11-query/


Method Summary
ResourceDescription
GET /{BASE}/sparql/select?query=…&output=…Execute a SPARQL 1.1 tuple query on the LMF triple store using the query passed as query parameter to the GET request.
POST /{BASE}/sparql/select?output=…Execute a SPARQL 1.1 tuple query on the LMF triple store using the query passed as form parameter to the POST request.
POST /{BASE}/sparql/select?output=…Execute a SPARQL 1.1 tuple query on the LMF triple store using the query passed in the body of the POST request.

Method Detail
HTTP Example:
GET /{BASE}/sparql/select?query=…&output=…

API Example:

SparqlWebService.selectGet({'query': /* query the SPARQL 1.1 Query as a string parameter */,
  'output': /* resultType the format for serializing the query results ("html", "json", or "xml") */});

Execute a SPARQL 1.1 tuple query on the LMF triple store using the query passed as query parameter to the GET request. Result will be formatted using the result type passed as argument (either "html", "json" or "xml").

see SPARQL 1.1 Query syntax at http://www.w3.org/TR/sparql11-query/

Output:
javax.ws.rs.core.Response - the query result in the format passed as argument
Query parameters:
query - the SPARQL 1.1 Query as a string parameter
output - the format for serializing the query results ("html", "json", or "xml")
HTTP return codes:
200 - in case the query was executed successfully
500 - in case there was an error during the query evaluation
HTTP Example:
POST /{BASE}/sparql/select?output=…

query=…
API Example:

SparqlWebService.selectPostForm({'output': /* resultType the format for serializing the query results ("html", "json", or "xml") */,
  'query': /* query the SPARQL 1.1 Query as a string parameter */});

Execute a SPARQL 1.1 tuple query on the LMF triple store using the query passed as form parameter to the POST request. Result will be formatted using the result type passed as argument (either "html", "json" or "xml").

see SPARQL 1.1 Query syntax at http://www.w3.org/TR/sparql11-query/

Output:
javax.ws.rs.core.Response - the query result in the format passed as argument
Query parameters:
output - the format for serializing the query results ("html", "json", or "xml")
Form parameters:
query - the SPARQL 1.1 Query as a string parameter
Consumes:
application/x-www-url-form-urlencoded
application/x-www-form-urlencoded
HTTP return codes:
200 - in case the query was executed successfully
500 - in case there was an error during the query evaluation
HTTP Example:
POST /{BASE}/sparql/select?output=…

API Example:

SparqlWebService.selectPost({'output': /* resultType the format for serializing the query results ("html", "json", or "xml") */});

Execute a SPARQL 1.1 tuple query on the LMF triple store using the query passed in the body of the POST request. Result will be formatted using the result type passed as argument (either "html", "json" or "xml").

see SPARQL 1.1 Query syntax at http://www.w3.org/TR/sparql11-query/

Output:
javax.ws.rs.core.Response - the query result in the format passed as argument
Query parameters:
output - the format for serializing the query results ("html", "json", or "xml")
HTTP return codes:
200 - in case the query was executed successfully
500 - in case there was an error during the query evaluation