Services within the Seme4 Platform generally operate in accordance with the principles of RESTful web services and/or Linked Data best practices for accessing structured data on the web.

The SPARQL Endpoint is an instance of the SparqlService, which A wrapper around a SPARQL endpoint

You can interact with it using the following methods.

/sparql/

SPARQL query page

GET

(text/html) calls function homepage()


/sparql/endpoint/

The SPARQL endpoint

GET

(text/html, application/sparql-results+xml, application/sparql-results+json, text/plain, application/rdf+xml) calls function query_get()
Make a query via GET request, specifying ?query=...

POST

(text/html, application/sparql-results+xml, application/sparql-results+json, text/plain, application/rdf+xml) calls function query_post()
Make a query via POST request, specifying query=... in the request body


/sparql/models/:wildcard

Methods to allow you to add/remove data from the SPARQL endpoint

GET

(text/html, application/rdf+xml, text/turtle, text/ntriples) calls function model_get()
Retrieve the model specified by :wildcard
Note: this method requires authentication
Do it: /sparql/models/

DELETE

(text/html, application/sparql-results+xml, application/sparql-results+json, text/plain, application/rdf+xml) calls function model_delete()
Remove the model specified by :wildcard
Note: this method requires authentication
Do it: /sparql/models/

PUT

(text/html, application/sparql-results+xml, application/sparql-results+json, text/plain, application/rdf+xml) calls function model_put()
Replace the contents of the model specified by :wildcard with that supplied in the request body
Note: this method requires authentication
Do it: /sparql/models/


/sparql/status/

Default service status page.

GET

(text/html, application/json) calls function show_status()


/sparql/usage/

Usage page - renders the description you are currently reading :)

GET

(text/html, application/json) calls function usage()