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 API queries 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/carparks/clearview-visitors/

Clearview Visitors sensors   Returns details of all visitors space sensors at Clearview HQ

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/carparks/guildford-sensors/

Guildford on-street sensors   Returns details of all on-street sensors in Guildford

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/carparks/guildford-sensors/location/

Guildford on-street sensor locations   Returns locations of all on-street sensors in Guildford

GET

(text/html, text/csv, application/json, application/ld+json, application/sparql-results+xml, application/sparql-results+json) calls function query_variablebindings()


/services/queries/carparks/in-region/:region/details/

Car Parks in region (details)   Returns details of all car parks within specified region

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/carparks/in-region//details/


/services/queries/carparks/in-region/:region/list/

Car Parks in region (list)   Returns list of all car parks within specified region

GET

(text/html, application/json, application/ld+json, application/rdf+xml, application/rdf+json, text/turtle, text/ntriples, text/plain, text/csv) calls function query_index()
Do it: /services/queries/carparks/in-region//list/


/services/queries/carparks/in-region/:region/locations/

Car Parks in region (locations)   Returns locations of all car parks within specified region

GET

(text/html, text/csv, application/json, application/ld+json, application/sparql-results+xml, application/sparql-results+json) calls function query_variablebindings()
Do it: /services/queries/carparks/in-region//locations/


/services/queries/carparks/locations/

Car Park Locations   Returns locations of all car parks

GET

(text/html, text/csv, application/json, application/ld+json, application/sparql-results+xml, application/sparql-results+json) calls function query_variablebindings()


/services/queries/carparks/locations/sensors-only/

Car Park Locations (sensors only)   Returns locations of all car parks with sensors

GET

(text/html, text/csv, application/json, application/ld+json, application/sparql-results+xml, application/sparql-results+json) calls function query_variablebindings()


/services/queries/carparks/occupancy/by-region/

Overall Live Occupancy (by region)   Returns occupancy of all car parks / lots, aggregated by region

GET

(text/html, text/csv, application/json, application/ld+json, application/sparql-results+xml, application/sparql-results+json) calls function query_variablebindings()


/services/queries/carparks/occupancy/by-type/

Overall Live Occupancy (by space type)   Returns occupanct of car parks / lots, aggregated by space type

GET

(text/html, text/csv, application/json, application/ld+json, application/sparql-results+xml, application/sparql-results+json) calls function query_variablebindings()


/services/queries/carparks/occupancy/latest/

Current Live Occupancy   Returns info indicating regarding current occupancy of each car park / lot

GET

(text/html, text/csv, application/json, application/ld+json, application/sparql-results+xml, application/sparql-results+json) calls function query_variablebindings()


/services/queries/carparks/occupancy/latest/:region/

Current Live Occupancy in Region   Returns info indicating regarding current occupancy of each car park / lot in the given :region

GET

(text/html, text/csv, application/json, application/ld+json, application/sparql-results+xml, application/sparql-results+json) calls function query_variablebindings()
Do it: /services/queries/carparks/occupancy/latest//


/services/queries/carparks/reading-sensors/

Reading on-street sensors   Returns details of all on-street sensors in Guildford

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/regions/

Regions   Regions for which we have data

GET

(text/html, text/csv, application/json, application/ld+json, application/sparql-results+xml, application/sparql-results+json) calls function query_variablebindings()


/services/queries/regions/sensors-only/

Regions (with sensors)   Regions for which we have occupancy data

GET

(text/html, text/csv, application/json, application/ld+json, application/sparql-results+xml, application/sparql-results+json) calls function query_variablebindings()


/services/queries/usage/

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

GET

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