https://api.parliament.uk/sparql
39
 
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 paper types laid before Parliament that were laid, or in the case of treaties lead, by the Department of Health and Social Care. Papers include all statutory instruments subject to the main four procedures, proposed negative statutory instruments, published drafts under EUWA18 and treaties subject to the CRaG procedure. 
4
5
6
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
7
PREFIX : <https://id.parliament.uk/schema/>
8
PREFIX id: <https://id.parliament.uk/>
9
# The above rows describe the datasets for this query. 
10
select distinct ?procedure ?Paper ?Papername ?layingBodyName ?LaidDate ?LeadOrgName ?URL where {
11
# The select row is identifying what information to return from the query. These are all variables from the query below. SPARQL variables start with a ? and can match any node (resource or literal) in the RDF dataset. 
12
13
?Paper a :WorkPackagedThing .  
14
# Statutory instruments, proposed negative instruments and treaties are all considered work packaged things. In Parliament's dataset they are considered a thing which is the focus of a work package.
15
     ?Paper rdfs:label ?Papername.
16
     { ?Paper:laidThingHasLaying/:layingHasLayingBody ?layingBody.