Applying geoscience to Australia's most important challenges
Foundation Spatial Data Framework Linked Data API

SPARQL Endpoint

This page allows you to lodge SPARQL queries against the triplestore (graph database) that stores all of this systems' vocabularies'.

Interactive UI

Enter SPARQL queries in the text box below to lodge them interactively:

Example Queries


Here is an example query for VocPrez you can copy 'n paste into the Query UI text area above to test with. It counts the number of vocabulary Concepts in the all vocabularies in this system and will return an integer:

PREFIX skos: <>

SELECT (COUNT(?c) AS ?count)
    ?c a skos:Concept .


Here is an example query for SpacePrez for use in the Query UI above. It returns most two Features' URIs and their titles.

PREFIX dcterms: <>
PREFIX geo: <>
PREFIX rdfs: <>

SELECT ?uri ?title
  ?uri a geo:Feature ;
       dcterms:title|rdfs:label ?title .

Direct Queries

Query posing and encoding

If you would like to lodge queries directly against this SPARQL endpoint without using the Query UI above, first create the query, URL-encode it, and lodge it like this:{YOUR_QUERY_URL_ENCODED}

Put you query in the box below and press 'Encode' to encode it!

The query:

PREFIX geo: <>

  ?uri a geo:Feature ;

encodes to:

Machine-readable responses

If you lodge your query as above with a web browser, the system will place it in the interactive UI text area (above) and you will see the result below that.

To obtain a machine-readable response to your query, you must supply an HTTP Accept header for the type of response you would like, in accordance with the SPARQL Protocol standard.

For example, to get a SPARQL JSON format response for {YOUR_QUERY_URL_ENCODED}, use the curl program like this:

curl{YOUR_QUERY_URL_ENCODED} -H 'Accept: application/sparql-results+json'

SPARQL response Accept Headers

The following Media Types are to be used for machine-readable responses:

  • SPARQL response formats:
    • application/sparql-results+json
    • application/sparql-results+xml
    • text/csv
    • text/tab-separated-values
  • RDF response formats:
    • text/turtle
    • application/rdf+xml
    • application/ld+json
    • text/n3
    • application/n-triples

If you omit one of the above headers, your query will be placed into this page and the result displayed interactively.

If the header you've included doesn't match the format of the SPARQL response type, you will receive that response type's default format, e.g. text/turtle for CONSTRUCT queries, application/sparql-results+json for SELECT queries.

GET & POST queries

You can lodge both GET and POST queries against this system, as per the SPARQL Protocol standard.