Page tree
Skip to end of metadata
Go to start of metadata

Base url

http://vocabs.ceh.ac.uk/edg/tbl/sparql?

Parameters

ParameterDescriptionNotes
default-graph-uriThe graph to query

For example urn:x-evn-pub:envthes or urn:x-evn-master:CAST

formatThe output format

Available formats are:

  • xml (default)
  • json
  • json-simple
  • text/csv
  • text/tab-separated-values

And, for CONSTRUCT queries only:

  • text/turtle
  • rdf+xml 
queryA URL encoded§ SPARQL query

For example

SELECT%20*%20WHERE%20{?s%20%3Chttp://www.w3.org/2004/02/skos/core%23prefLabel%3E%20?o}

§ You must URL encode the SPARQL query string. All characters that are not a letter, digit, dash, period, underscore or tilde should be encoded, such as:

[space] encoded as %20
< encoded as %3C
> encoded as %3E
# encoded as %23

For example

SELECT * WHERE {?s <http://www.w3.org/2004/02/skos/core#prefLabel> ?o}

 becomes

SELECT%20*%20WHERE%20{?s%20%3Chttp://www.w3.org/2004/02/skos/core%23prefLabel%3E%20?o}

Examples

Output the first 100 prefLabels from the CAST vocabulary in json format  try it

http://vocabs.ceh.ac.uk/edg/tbl/sparql?default-graph-uri=urn:x-evn-master:CAST&format=json&query=SELECT%20*%20WHERE%20{?s%20%3Chttp://www.w3.org/2004/02/skos/core%23prefLabel%3E%20?o}%20LIMIT%20100


Output the first 20 triples from the EnvThes vocabulary in csv format try it

http://vocabs.ceh.ac.uk/edg/tbl/sparql?default-graph-uri=urn:x-evn-master:EnvThes&format=text/csv&query=SELECT%20*%20WHERE%20{?s%20?p%20?o}%20LIMIT%2020


CONSTRUCT an rdf document (in ttl format) from a query try it

http://vocabs.ceh.ac.uk/edg/tbl/sparql?default-graph-uri=urn:x-evn-master:CAST&query=CONSTRUCT%20{?s%20%3Chttp://www.w3.org/2004/02/skos/core%23prefLabel%3E?o.}%20WHERE%20{?s%20%3Chttp://www.w3.org/2004/02/skos/core%23prefLabel%3E?o.}LIMIT%2010&format=text/turtle



  • No labels