https://api.parliament.uk/sparql
31
 
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 at all statutory instruments debated on the Floor of the House of Commons before the JCSI/SCSI considered them. 
4
5
PREFIX : <https://id.parliament.uk/schema/>
6
PREFIX id: <https://id.parliament.uk/>
7
# The above rows describe where the datasets that this query is built on come from. 
8
9
select ?si ?siName ?workPackage ?procedureName ?stepName ?date ?stepName2 ?date2 where {
10
    # The select row is identifying what information to return from the query. These are all variables from the query below.
11
  ?si a :StatutoryInstrumentPaper;
12
      :statutoryInstrumentPaperName ?siName;
13
                  :workPackagedThingHasWorkPackage ?workPackage.
14
  ?workPackage :workPackageHasProcedure ?procedure;
15
      :workPackageHasBusinessItem ?bi.
16
     ?procedure :procedureName ?procedureName.