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 Canned Queries (SPARQL) is an instance of the CannedQuerySparql, which Encapsulates SPARQL queries into a simple REST API style service, facilitating variable substitution

You can interact with it using the following methods.

/services/queries/

Default service homepage, giving description, licence and other information.

GET

(text/html) calls function homepage()


/services/queries/schools/

All schools in Hampshire   Returns details of all schools in Hampshire from education.data.gov.uk SPARQL endpoint.

GET

(text/html, application/json, application/ld+json, application/rdf+xml, application/rdf+json, text/ntriples, text/turtle, text/csv) calls function query_details()


/services/queries/schools/type/:type/

Schools in Hampshire, of a particular type   Returns details of schools from education.data.gov.uk SPARQL endpoint. Valid types are: Nursery, Primary, Middle_Deemed_Primary, Middle_Deemed_Secondary, Secondary, 16_Plus.

GET

(text/html, application/json, application/ld+json, application/rdf+xml, application/rdf+json, text/ntriples, text/turtle, text/csv) calls function query_details()
Do it: /services/queries/schools/type//


/services/queries/status/

Default service status page.

GET

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


/services/queries/usage/

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

GET

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