Skip to content

Instantly share code, notes, and snippets.

View robertbrook's full-sized avatar

Robert Brook robertbrook

View GitHub Profile
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX : <https://id.parliament.uk/schema/>
PREFIX id: <https://id.parliament.uk/>
select ?SI ?SIname ?StatutoryInstrumentYear ?Number where {
?SI a :StatutoryInstrumentPaper .
?SI rdfs:label ?SIname ;
:statutoryInstrumentPaperYear ?StatutoryInstrumentYear .
<a href="javascript:(function()%7Bvar%20url%20%3D%20document.URL%20%3B%0A%0Aconst%20myUrl%20%3D%20new%20URL(url)%3B%0A%0Awindow.location.href%20%3D%20%22https%3A%2F%2Fagile-tonsil.glitch.me%22%20%2B%20myUrl.pathname%7D)()%3B">LegReader</a>
javascript:(function()%7Bvar%20url%20%3D%20document.URL%20%3B%0A%0Aconst%20myUrl%20%3D%20new%20URL(url)%3B%0A%0Awindow.location.href%20%3D%20%22https%3A%2F%2Fagile-tonsil.glitch.me%22%20%2B%20myUrl.pathname%7D)()%3B
var url = document.URL ;
const myUrl = new URL(url);
window.location.href = "https://agile-tonsil.glitch.me" + myUrl.pathname
# This query uses classes from UK Parliament's procedure ontology: https://ukparliament.github.io/ontologies/procedure/procedure-ontology.html.
# This query looks for all proposed negative statutory instruments laid by the Department for Environment, Food and Rural Affairs.
PREFIX : <https://id.parliament.uk/schema/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX id: <https://id.parliament.uk/>
# The above rows describe where the datasets that this query is built on come from.
select distinct ?PNSI ?PNSIname ?layingBodyName ?workPackage ?Link ?LaidDate where {
# This query uses classes from UK Parliament's procedure ontology: https://ukparliament.github.io/ontologies/procedure/procedure-ontology.html.
# This query looks for all proposed negative statutory instruments currently before Parliament. Proposed negative statutory instruments lay before Parliament for 10 days where they will be considered by the European Statutory Instrument Committee and the Secondary Legislation Scrutiny Committee.
PREFIX : <https://id.parliament.uk/schema/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX id: <https://id.parliament.uk/>
# The above rows describe where the datasets that this query is built on come from.
select distinct ?PNSI ?PNSIname ?workPackage ?layingBodyName ?LaidDate ?Link ?SiftingEnds ?date where {
# This query uses classes from UK Parliament's procedure ontology: https://ukparliament.github.io/ontologies/procedure/procedure-ontology.html.
# This query looks for all proposed negative statutory instruments laid before Parliament since 2017-19. Proposed negative statutory instruments lay before Parliament for 10 days where they will be considered by the European Statutory Instrument Committee and the Secondary Legislation Scrutiny Committee.
PREFIX : <https://id.parliament.uk/schema/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX id: <https://id.parliament.uk/>
# The above rows describe where the datasets that this query is built on come from.
select distinct ?PNSI ?PNSIname ?workPackage ?layingBodyName ?LaidDate ?Link ?SiftingEnds ?date where {
# This query uses classes from UK Parliament's procedure ontology: https://ukparliament.github.io/ontologies/procedure/procedure-ontology.html.
# Following work done by Jeni Tennison, the following query looks for instruments that implement local coronavirus lockdowns in areas of England.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX : <https://id.parliament.uk/schema/>
PREFIX id: <https://id.parliament.uk/>
# The above rows describe where the datasets that this query is built on come from.
# This query uses classes from UK Parliament's procedure ontology: https://ukparliament.github.io/ontologies/procedure/procedure-ontology.html.
# This query looks for all proposed negative statutory instruments laid before Parliament since June 2017
PREFIX : <https://id.parliament.uk/schema/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX id: <https://id.parliament.uk/>
select distinct ?PNSI ?PNSIname ?workPackage ?layingBodyName ?LaidDate ?Link where {
?PNSI a :ProposedNegativeStatutoryInstrumentPaper .
<img alt="SI Tracker" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAF1CAYAAAAeOhj3AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAB9KADAAQAAAABAAABdQAAAAD76FeiAAA6h0lEQVR4Ae2dB9Q0RbW1BclR4gcIfGS4JBVFMrxEwYSSxQASDBgQA+IVBZHwi4Eg6CUjwiWZQOADRHklKUgGRUAkSwbJGe7e+rZ/01RP556emeestVfPVFedqnp6Zk6fTvOGN2AQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAA