https://api.parliament.uk/sparql
36
 
1
# This query uses classes from UK Parliament's procedure ontology: https://ukparliament.github.io/ontologies/procedure/procedure-ontology.html.
2
3
# This query looks for all published drafts under Paragraph 14 of Schedule 8 to the European Union (Withdrawal) Act 2018 where the minister provided a written statement to the House of Commons notifying them of publication. 
4
5
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
6
PREFIX : <https://id.parliament.uk/schema/>
7
PREFIX id: <https://id.parliament.uk/>
8
# The above rows describe where the datasets that this query is built on come from. 
9
10
select distinct ?proc ?procedureName ?publishedDraft ?publishedDraftname ?Link ?workPackage ?statement ?statementdate ?statementLink where {
11
  # The select row is identifying what information to return from the query. These are all variables from the query below.
12
  
13
# SPARQL variables start with a ? and can match any node (resource or literal) in the RDF dataset.   
14
  
15
  ?publishedDraft a :PublishedDraftUnderEUWA .  
16
       ?publishedDraft rdfs:label ?publishedDraftname .