SPARQL

You can query standard lists using SPARQL in the box below or via our endpoint: http://sparql.esd.org.uk/ds/query.


What is this?

All standard lists, mappings and links are freely available as Open Linked Data that can be queried using the SPARQL query language.

Standards are licenced under the Open Government Licence and must be attributed to the esd-toolkit programme.

Example queries

List all lists (ie all SKOS Concept schemes)

prefix skos: <http://www.w3.org/2004/02/skos/core#>

select ?s ?label
where { 
    ?s a skos:ConceptScheme .
    ?s skos:prefLabel ?label .
}

List all services in the service list

prefix skos: <http://www.w3.org/2004/02/skos/core#>

select ?s ?label
where { 
    ?s skos:inScheme <http://id.esd.org.uk/list/services> .
    ?s skos:prefLabel ?label .
}

List all dcterms:subject (or subjectOf) links from metric types

prefix skos: <http://www.w3.org/2004/02/skos/core#>
prefix dcterms: <http://purl.org/dc/terms/>

select ?mt ?label ?identifier ?subject ?subjectLabel
where { 
    ?mt skos:inScheme <http://id.esd.org.uk/list/metricTypes> .
    ?mt skos:prefLabel ?label .
    ?mt dcterms:identifier ?identifier .
    ?mt dcterms:subject ?subject .
    ?subject skos:prefLabel ?subjectLabel .
}