diff --git a/.gitignore b/.gitignore index f7145109cf..88ce83adff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ # Ignore Mac DS_Store files .DS_Store .backup +.idea/ \ No newline at end of file diff --git a/meta/relational/schema.graffle b/meta/relational/schema.graffle index 69b3b55bd4..f88187a146 100644 Binary files a/meta/relational/schema.graffle and b/meta/relational/schema.graffle differ diff --git a/meta/relational/schema.pdf b/meta/relational/schema.pdf index 3c35060fc2..ea9a32619c 100644 Binary files a/meta/relational/schema.pdf and b/meta/relational/schema.pdf differ diff --git a/meta/relational/schema.png b/meta/relational/schema.png index 3b303fb22b..cdd7ae7181 100644 Binary files a/meta/relational/schema.png and b/meta/relational/schema.png differ diff --git a/meta/weeknotes/feed.rss b/meta/weeknotes/feed.rss index 1b73ec02f5..6f39a08a6a 100644 --- a/meta/weeknotes/feed.rss +++ b/meta/weeknotes/feed.rss @@ -12,43 +12,43 @@ Procedure modelling notes for 2021 week 9. https://ukparliament.github.io/ontologies/meta/weeknotes/2021/09 Sun, 7 March 2021 13:30:00 GMT - + 2021 week 8 Procedure modelling notes for 2021 week 8. https://ukparliament.github.io/ontologies/meta/weeknotes/2021/08 Sun, 28 February 2021 13:30:00 GMT - + 2021 week 7 Procedure modelling notes for 2021 week 7. https://ukparliament.github.io/ontologies/meta/weeknotes/2021/07 Sun, 21 February 2021 14:45:00 GMT - + 2021 week 6 Procedure modelling notes for 2021 week 6. https://ukparliament.github.io/ontologies/meta/weeknotes/2021/06 Sun, 14 February 2021 13:45:00 GMT - + 2021 week 5 Procedure modelling notes for 2021 week 5. https://ukparliament.github.io/ontologies/meta/weeknotes/2021/05 Sun, 7 February 2021 16:45:00 GMT - + 2021 week 4 Procedure modelling notes for 2021 week 4. https://ukparliament.github.io/ontologies/meta/weeknotes/2021/04 Sun, 31 January 2021 14:30:00 GMT - + 2021 week 3 Procedure modelling notes for 2021 week 3. https://ukparliament.github.io/ontologies/meta/weeknotes/2021/03 Mon, 25 January 2021 20:00:00 GMT - + 2021 week 2 Procedure modelling notes for 2021 week 2. diff --git a/procedure/flowcharts/crag-treaties/crag-treaties.graffle b/procedure/flowcharts/crag-treaties/crag-treaties.graffle index 59d954b122..84e253764f 100644 Binary files a/procedure/flowcharts/crag-treaties/crag-treaties.graffle and b/procedure/flowcharts/crag-treaties/crag-treaties.graffle differ diff --git a/procedure/flowcharts/crag-treaties/crag-treaties.pdf b/procedure/flowcharts/crag-treaties/crag-treaties.pdf index 0cc711d773..0411a2a4f2 100644 Binary files a/procedure/flowcharts/crag-treaties/crag-treaties.pdf and b/procedure/flowcharts/crag-treaties/crag-treaties.pdf differ diff --git a/procedure/flowcharts/proposed-negative-sis/logic-gates/proposed-negative-sis.graffle b/procedure/flowcharts/proposed-negative-sis/logic-gates/proposed-negative-sis.graffle index 09752fc649..9da9558564 100644 Binary files a/procedure/flowcharts/proposed-negative-sis/logic-gates/proposed-negative-sis.graffle and b/procedure/flowcharts/proposed-negative-sis/logic-gates/proposed-negative-sis.graffle differ diff --git a/procedure/flowcharts/proposed-negative-sis/logic-gates/proposed-negative-sis.pdf b/procedure/flowcharts/proposed-negative-sis/logic-gates/proposed-negative-sis.pdf index 74c6f42c2e..0dc6220e75 100644 Binary files a/procedure/flowcharts/proposed-negative-sis/logic-gates/proposed-negative-sis.pdf and b/procedure/flowcharts/proposed-negative-sis/logic-gates/proposed-negative-sis.pdf differ diff --git a/procedure/flowcharts/proposed-negative-sis/proposed-negative-sis.graffle b/procedure/flowcharts/proposed-negative-sis/proposed-negative-sis.graffle index 8ea47c19f2..fe19e6ee6f 100644 Binary files a/procedure/flowcharts/proposed-negative-sis/proposed-negative-sis.graffle and b/procedure/flowcharts/proposed-negative-sis/proposed-negative-sis.graffle differ diff --git a/procedure/flowcharts/proposed-negative-sis/proposed-negative-sis.pdf b/procedure/flowcharts/proposed-negative-sis/proposed-negative-sis.pdf index 5da7d29c84..e56308164f 100644 Binary files a/procedure/flowcharts/proposed-negative-sis/proposed-negative-sis.pdf and b/procedure/flowcharts/proposed-negative-sis/proposed-negative-sis.pdf differ diff --git a/procedure/flowcharts/sis/draft-affirmative.graffle b/procedure/flowcharts/sis/draft-affirmative.graffle index b1ee84fc6b..caf738d2d0 100644 Binary files a/procedure/flowcharts/sis/draft-affirmative.graffle and b/procedure/flowcharts/sis/draft-affirmative.graffle differ diff --git a/procedure/flowcharts/sis/draft-affirmative.pdf b/procedure/flowcharts/sis/draft-affirmative.pdf index 2c274185ff..76afa6d1f5 100644 Binary files a/procedure/flowcharts/sis/draft-affirmative.pdf and b/procedure/flowcharts/sis/draft-affirmative.pdf differ diff --git a/procedure/flowcharts/sis/draft-composite.graffle b/procedure/flowcharts/sis/draft-composite.graffle index e398e71ce0..65e44c92c9 100644 Binary files a/procedure/flowcharts/sis/draft-composite.graffle and b/procedure/flowcharts/sis/draft-composite.graffle differ diff --git a/procedure/flowcharts/sis/draft-composite.pdf b/procedure/flowcharts/sis/draft-composite.pdf index 22399bb4e2..5e524e95e8 100644 Binary files a/procedure/flowcharts/sis/draft-composite.pdf and b/procedure/flowcharts/sis/draft-composite.pdf differ diff --git a/procedure/flowcharts/sis/draft-negative.graffle b/procedure/flowcharts/sis/draft-negative.graffle index d045b33e28..2f1410e7ef 100644 Binary files a/procedure/flowcharts/sis/draft-negative.graffle and b/procedure/flowcharts/sis/draft-negative.graffle differ diff --git a/procedure/flowcharts/sis/draft-negative.pdf b/procedure/flowcharts/sis/draft-negative.pdf index 429792b299..0e8e392049 100644 Binary files a/procedure/flowcharts/sis/draft-negative.pdf and b/procedure/flowcharts/sis/draft-negative.pdf differ diff --git a/procedure/flowcharts/sis/made-affirmative.graffle b/procedure/flowcharts/sis/made-affirmative.graffle index e47bb3975b..078c97fb92 100644 Binary files a/procedure/flowcharts/sis/made-affirmative.graffle and b/procedure/flowcharts/sis/made-affirmative.graffle differ diff --git a/procedure/flowcharts/sis/made-affirmative.pdf b/procedure/flowcharts/sis/made-affirmative.pdf index 9a5db34df5..ce67e59530 100644 Binary files a/procedure/flowcharts/sis/made-affirmative.pdf and b/procedure/flowcharts/sis/made-affirmative.pdf differ diff --git a/procedure/flowcharts/sis/made-negative.graffle b/procedure/flowcharts/sis/made-negative.graffle index 74eea2ebc4..5a08786e48 100644 Binary files a/procedure/flowcharts/sis/made-negative.graffle and b/procedure/flowcharts/sis/made-negative.graffle differ diff --git a/procedure/flowcharts/sis/made-negative.pdf b/procedure/flowcharts/sis/made-negative.pdf index aabad73fd1..e92f7b4bd4 100644 Binary files a/procedure/flowcharts/sis/made-negative.pdf and b/procedure/flowcharts/sis/made-negative.pdf differ diff --git a/procedure/flowcharts/treaties/treaties.graffle b/procedure/flowcharts/treaties/treaties.graffle new file mode 100644 index 0000000000..4eb4ac38ab Binary files /dev/null and b/procedure/flowcharts/treaties/treaties.graffle differ diff --git a/procedure/flowcharts/treaties/treaties.pdf b/procedure/flowcharts/treaties/treaties.pdf new file mode 100644 index 0000000000..c720d40103 Binary files /dev/null and b/procedure/flowcharts/treaties/treaties.pdf differ diff --git a/procedure/meta/backlog/index.md b/procedure/meta/backlog/index.md index fbe31addb6..e16ef425f0 100644 --- a/procedure/meta/backlog/index.md +++ b/procedure/meta/backlog/index.md @@ -1,6 +1,5 @@ # Data model backlog - Work | Description | Deadline | Done? Enabling Act | Point to enabling Act. Needed for new PNSIs || Logicification | Switch from route types to logic steps | N/A | diff --git a/procedure/meta/editor/schema.graffle b/procedure/meta/editor/schema.graffle index 54f8fd0ae2..e0175188b0 100644 Binary files a/procedure/meta/editor/schema.graffle and b/procedure/meta/editor/schema.graffle differ diff --git a/procedure/meta/queries/instrument-types/statutory-instruments/index.md b/procedure/meta/queries/instrument-types/statutory-instruments/index.md index c2acc17562..aaecf2b550 100644 --- a/procedure/meta/queries/instrument-types/statutory-instruments/index.md +++ b/procedure/meta/queries/instrument-types/statutory-instruments/index.md @@ -46,7 +46,6 @@ The [Non-contentious Probate (Fees) Order 2018](https://statutoryinstruments.par * [2019](https://api.parliament.uk/sparql#query=%23+This+query+uses+classes+from+UK+Parliament's+procedure+ontology%3A+https%3A%2F%2Fukparliament.github.io%2Fontologies%2Fprocedure%2Fprocedure-ontology.html.%0A%0A%23+This+query+looks+for+all+statutory+instruments+laid+in+the+2019+calendar+year.+They+were+all+laid+under+one+of+the+four+main+SI+procedures+(Made+affirmative%2C+Draft+affirmative%2C+Made+negative%2C+Draft+negative)%0A%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+%3A+%3Chttps%3A%2F%2Fid.parliament.uk%2Fschema%2F%3E%0APREFIX+id%3A+%3Chttps%3A%2F%2Fid.parliament.uk%2F%3E%0A%23+The+above+rows+describe+where+the+datasets+that+this+query+is+built+on+come+from.%0A%0Aselect+%3Fproc+%3FSI+%3FSIname+%3FStatutoryInstrumentYear+%3FlayingBodyName+%3FMadedate+%3FComesintoforceDate+%3FComesintoforceNote+%3FLink+%3FworkPackage+%3FprocStepName+%3Fdate+where+%7B%0A++++++%23+The+select+row+is+identifying+what+information+to+return+from+the+query.+These+are+all+variables+from+the+query+below.+%0A++%0A++%23+SPARQL+variables+start+with+a+%3F+and+can+match+any+node+(resource+or+literal)+in+the+RDF+dataset.++%0A%0A+%3FSI+a+%3AStatutoryInstrumentPaper+.++%0A+%23+An+SI+is+considered+a+workpackageable+thing+which+is+the+focus+of+a+workpackage.+%0A+%0A+++++%3FSI+rdfs%3Alabel+%3FSIname+%3B%0A++%3AstatutoryInstrumentPaperYear+%3FStatutoryInstrumentYear+.%0A+++%23+Year+is+an+important+part+of+a+statutory+instrument's+reference+as+they+are+numbered+sequentially+by+year.+At+the+beginning+of+the+year+the+count+starts+again.+%0A+%0A++%23++It+is+useful+to+be+able+to+have+queries+that+allow+information+to+be+added+to+the+solution+where+the+information+is+available%2C+but+do+not+reject+the+solution+because+some+part+of+the+query+pattern+does+not+match.+The+use+of+OPTIONAL+below+allows+this%2C+if+the+data+does+not+exist+then+it+will+still+include+the+SI+in+the+results.+The+reason+we+include+the+optional+for+the+variables+below+is+because+SIs+do+not+follow+a+strict+pattern+of+what+data+it+has.+Likewise%2C+there+can+also+be+a+delay+in+an+SI+being+published+on+Legislation.gov+so+we+also+say+links+are+optional+so+that+any+possible+instrument+appears+in+the+results+still.+%0A%0A++OPTIONAL+%7B+%3FSI+%3AworkPackagedThingHasWorkPackagedThingWebLink+%3FLink+.%7D%0A+++OPTIONAL+%7B+%3FSI+%3AstatutoryInstrumentPaperMadeDate+%3FMadedate+.%7D%0A++OPTIONAL+%7B+%3FSI+%3AstatutoryInstrumentPaperComingIntoForceDate+%3FComesintoforceDate+.+%7D%0A++OPTIONAL+%7B+%3FSI+%3AstatutoryInstrumentPaperComingIntoForceNote+%3FComesintoforceNote.+%7D%0A++%0A+++%09%3FSI+%3AworkPackagedThingHasWorkPackage+%3FworkPackage+.%0A++++%23+A+workpackage+is+a+group+of+business+items+under+a+procedure+or+as+determined+by+a+committee%2C+for+example%3A+business+items+considered+during+the+passage+of+a+particular+Statutory+Instrument.%0A%0A++%09%3FworkPackage+%3AworkPackageHasProcedure%2Frdfs%3Alabel+%3Fproc%0A+FILTER(%3Fproc+IN+(%22Draft+affirmative%22%2C+%22Draft+negative%22%2C+%22Made+affirmative%22%2C+%22Made+negative%22))%0A++++%23+Statutory+instruments+can+be+laid+under+a+number+of+procedures+with+all+having+different+routes+through+Parliament.+The+procedures+above+are+the+four+main+procedures+mapped+out+for+the+Statutory+Instrument+Service.++%0A%0A++%3FworkPackage+%3AworkPackageHasBusinessItem+%3FprocStep+.%0A++++++%23+A+business+item+is+an+item+of+business+conducted+either+within+or+outside+Parliament.+For+example%3A+the+tabling+of+an+early+day+motion%2C+a+laying+of+a+paper%2C+the+making+of+a+statutory+instrument+by+a+government+minister.%0A%0A+++++%3FprocStep+%3AbusinessItemDate+%3Fdate+.%0A+++++%23+The+majority+of+business+items+will+also+have+a+date+of+when+the+business+took+place.+For+the+purpose+of+this+query+the+date+will+be+the+date+the+instrument+was+laid+before+the+House+of+Commons.%0A%0A++%3FprocStep+%3AbusinessItemHasProcedureStep+id%3Acspzmb6w+.%0A++++%23+All+business+items+will+have+one+or+more+procedure+steps+attached.+All+procedure+steps+will+have+a+name+and+ID%2C+we+use+the+ID+to+search+for+the+step+as+it+is+constant+whereas+the+name+could+change.+The+ID+cspzmb6w+is+for+the+%22Laid+before+the+House+of+Commons+step%22.+%0A%0A++%3FprocStep+%3AbusinessItemHasProcedureStep%2Frdfs%3Alabel+%3FprocStepName.+++%0A+++++++%23+As+above+procedure+steps+will+always+have+a+name%2C+we+include+it+in+the+query+because+it's+more+accessible+for+users+than+the+procedure+ID.+%0A%0A++%3FprocStep+%3AlayingHasLayingBody%2F%3Aname+%3FlayingBodyName+.%0A%0A+FILTER+(+str(%3Fdate)+%3E+'2019-01-01'+%26%26+str(%3Fdate)+%3C+'2020-01-01')%0A+++%23++This+filter+limits+the+date+the+results+will+look+for.+%0A%0A%7D&contentTypeConstruct=text%2Fturtle&contentTypeSelect=application%2Fsparql-results%2Bjson&endpoint=https%3A%2F%2Fapi.parliament.uk%2Fsparql&requestMethod=POST&tabTitle=2019+calendar+year&headers=%7B%7D&outputFormat=table) - * [2018](https://api.parliament.uk/sparql#query=%23+This+query+uses+classes+from+UK+Parliament's+procedure+ontology%3A+https%3A%2F%2Fukparliament.github.io%2Fontologies%2Fprocedure%2Fprocedure-ontology.html.%0A%0A%23+This+query+looks+for+all+statutory+instruments+laid+in+the+2018+calendar+year.+They+were+all+laid+under+one+of+the+four+main+SI+procedures+(Made+affirmative%2C+Draft+affirmative%2C+Made+negative%2C+Draft+negative)%0A%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+%3A+%3Chttps%3A%2F%2Fid.parliament.uk%2Fschema%2F%3E%0APREFIX+id%3A+%3Chttps%3A%2F%2Fid.parliament.uk%2F%3E%0A%23+The+above+rows+describe+where+the+datasets+that+this+query+is+built+on+come+from.%0A%0Aselect+%3Fproc+%3FSI+%3FSIname+%3FStatutoryInstrumentYear+%3FlayingBodyName+%3FMadedate+%3FComesintoforceDate+%3FComesintoforceNote+%3FLink+%3FworkPackage+%3FprocStepName+%3Fdate+where+%7B%0A++++++%23+The+select+row+is+identifying+what+information+to+return+from+the+query.+These+are+all+variables+from+the+query+below.+%0A++%0A++%23+SPARQL+variables+start+with+a+%3F+and+can+match+any+node+(resource+or+literal)+in+the+RDF+dataset.++%0A%0A+%3FSI+a+%3AStatutoryInstrumentPaper+.++%0A+%23+An+SI+is+considered+a+workpackageable+thing+which+is+the+focus+of+a+workpackage.+%0A+%0A+++++%3FSI+rdfs%3Alabel+%3FSIname+%3B%0A++%3AstatutoryInstrumentPaperYear+%3FStatutoryInstrumentYear+.%0A+++%23+Year+is+an+important+part+of+a+statutory+instrument's+reference+as+they+are+numbered+sequentially+by+year.+At+the+beginning+of+the+year+the+count+starts+again.+%0A+%0A++%23++It+is+useful+to+be+able+to+have+queries+that+allow+information+to+be+added+to+the+solution+where+the+information+is+available%2C+but+do+not+reject+the+solution+because+some+part+of+the+query+pattern+does+not+match.+The+use+of+OPTIONAL+below+allows+this%2C+if+the+data+does+not+exist+then+it+will+still+include+the+SI+in+the+results.+The+reason+we+include+the+optional+for+the+variables+below+is+because+SIs+do+not+follow+a+strict+pattern+of+what+data+it+has.+Likewise%2C+there+can+also+be+a+delay+in+an+SI+being+published+on+Legislation.gov+so+we+also+say+links+are+optional+so+that+any+possible+instrument+appears+in+the+results+still.+%0A%0A++OPTIONAL+%7B+%3FSI+%3AworkPackagedThingHasWorkPackagedThingWebLink+%3FLink+.%7D%0A+++OPTIONAL+%7B+%3FSI+%3AstatutoryInstrumentPaperMadeDate+%3FMadedate+.%7D%0A++OPTIONAL+%7B+%3FSI+%3AstatutoryInstrumentPaperComingIntoForceDate+%3FComesintoforceDate+.+%7D%0A++OPTIONAL+%7B+%3FSI+%3AstatutoryInstrumentPaperComingIntoForceNote+%3FComesintoforceNote.+%7D%0A++%0A+++%09%3FSI+%3AworkPackagedThingHasWorkPackage+%3FworkPackage+.%0A++++%23+A+workpackage+is+a+group+of+business+items+under+a+procedure+or+as+determined+by+a+committee%2C+for+example%3A+business+items+considered+during+the+passage+of+a+particular+Statutory+Instrument.%0A%0A++%09%3FworkPackage+%3AworkPackageHasProcedure%2Frdfs%3Alabel+%3Fproc%0A+FILTER(%3Fproc+IN+(%22Draft+affirmative%22%2C+%22Draft+negative%22%2C+%22Made+affirmative%22%2C+%22Made+negative%22))%0A++++%23+Statutory+instruments+can+be+laid+under+a+number+of+procedures+with+all+having+different+routes+through+Parliament.+The+procedures+above+are+the+four+main+procedures+mapped+out+for+the+Statutory+Instrument+Service.++%0A%0A++%3FworkPackage+%3AworkPackageHasBusinessItem+%3FprocStep+.%0A++++++%23+A+business+item+is+an+item+of+business+conducted+either+within+or+outside+Parliament.+For+example%3A+the+tabling+of+an+early+day+motion%2C+a+laying+of+a+paper%2C+the+making+of+a+statutory+instrument+by+a+government+minister.%0A%0A+++++%3FprocStep+%3AbusinessItemDate+%3Fdate+.%0A+++++%23+The+majority+of+business+items+will+also+have+a+date+of+when+the+business+took+place.+For+the+purpose+of+this+query+the+date+will+be+the+date+the+instrument+was+laid+before+the+House+of+Commons.%0A%0A++%3FprocStep+%3AbusinessItemHasProcedureStep+id%3Acspzmb6w+.%0A++++%23+All+business+items+will+have+one+or+more+procedure+steps+attached.+All+procedure+steps+will+have+a+name+and+ID%2C+we+use+the+ID+to+search+for+the+step+as+it+is+constant+whereas+the+name+could+change.+The+ID+cspzmb6w+is+for+the+%22Laid+before+the+House+of+Commons+step%22.+%0A%0A++%3FprocStep+%3AbusinessItemHasProcedureStep%2Frdfs%3Alabel+%3FprocStepName.+++%0A+++++++%23+As+above+procedure+steps+will+always+have+a+name%2C+we+include+it+in+the+query+because+it's+more+accessible+for+users+than+the+procedure+ID.+%0A%0A++%3FprocStep+%3AlayingHasLayingBody%2F%3Aname+%3FlayingBodyName+.%0A%0AFILTER+(+str(%3Fdate)+%3E+'2018-01-01'+%26%26+str(%3Fdate)+%3C+'2019-01-01')%0A+++%23++This+filter+limits+the+date+the+results+will+look+for.+%0A%0A%7D&contentTypeConstruct=text%2Fturtle&contentTypeSelect=application%2Fsparql-results%2Bjson&endpoint=https%3A%2F%2Fapi.parliament.uk%2Fsparql&requestMethod=POST&tabTitle=2018+calendar+year&headers=%7B%7D&outputFormat=table) * [2017](https://api.parliament.uk/sparql#query=%23+This+query+uses+classes+from+UK+Parliament's+procedure+ontology%3A+https%3A%2F%2Fukparliament.github.io%2Fontologies%2Fprocedure%2Fprocedure-ontology.html.%0A%0A%23+This+query+looks+for+all+statutory+instruments+laid+in+the+2017+calendar+year.+They+were+all+laid+under+one+of+the+four+main+SI+procedures+(Made+affirmative%2C+Draft+affirmative%2C+Made+negative%2C+Draft+negative)%0A%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+%3A+%3Chttps%3A%2F%2Fid.parliament.uk%2Fschema%2F%3E%0APREFIX+id%3A+%3Chttps%3A%2F%2Fid.parliament.uk%2F%3E%0A%23+The+above+rows+describe+where+the+datasets+that+this+query+is+built+on+come+from.%0A%0Aselect+%3Fproc+%3FSI+%3FSIname+%3FStatutoryInstrumentYear+%3FlayingBodyName+%3FMadedate+%3FComesintoforceDate+%3FComesintoforceNote+%3FLink+%3FworkPackage+%3FprocStepName+%3Fdate+where+%7B%0A++++++%23+The+select+row+is+identifying+what+information+to+return+from+the+query.+These+are+all+variables+from+the+query+below.+%0A++%0A++%23+SPARQL+variables+start+with+a+%3F+and+can+match+any+node+(resource+or+literal)+in+the+RDF+dataset.++%0A%0A+%3FSI+a+%3AStatutoryInstrumentPaper+.++%0A+%23+An+SI+is+considered+a+workpackageable+thing+which+is+the+focus+of+a+workpackage.+%0A+%0A+++++%3FSI+rdfs%3Alabel+%3FSIname+%3B%0A++%3AstatutoryInstrumentPaperYear+%3FStatutoryInstrumentYear+.%0A+++%23+Year+is+an+important+part+of+a+statutory+instrument's+reference+as+they+are+numbered+sequentially+by+year.+At+the+beginning+of+the+year+the+count+starts+again.+%0A+%0A++%23++It+is+useful+to+be+able+to+have+queries+that+allow+information+to+be+added+to+the+solution+where+the+information+is+available%2C+but+do+not+reject+the+solution+because+some+part+of+the+query+pattern+does+not+match.+The+use+of+OPTIONAL+below+allows+this%2C+if+the+data+does+not+exist+then+it+will+still+include+the+SI+in+the+results.+The+reason+we+include+the+optional+for+the+variables+below+is+because+SIs+do+not+follow+a+strict+pattern+of+what+data+it+has.+Likewise%2C+there+can+also+be+a+delay+in+an+SI+being+published+on+Legislation.gov+so+we+also+say+links+are+optional+so+that+any+possible+instrument+appears+in+the+results+still.+%0A%0A++OPTIONAL+%7B+%3FSI+%3AworkPackagedThingHasWorkPackagedThingWebLink+%3FLink+.%7D%0A+++OPTIONAL+%7B+%3FSI+%3AstatutoryInstrumentPaperMadeDate+%3FMadedate+.%7D%0A++OPTIONAL+%7B+%3FSI+%3AstatutoryInstrumentPaperComingIntoForceDate+%3FComesintoforceDate+.+%7D%0A++OPTIONAL+%7B+%3FSI+%3AstatutoryInstrumentPaperComingIntoForceNote+%3FComesintoforceNote.+%7D%0A++%0A+++%09%3FSI+%3AworkPackagedThingHasWorkPackage+%3FworkPackage+.%0A++++%23+A+workpackage+is+a+group+of+business+items+under+a+procedure+or+as+determined+by+a+committee%2C+for+example%3A+business+items+considered+during+the+passage+of+a+particular+Statutory+Instrument.%0A%0A++%09%3FworkPackage+%3AworkPackageHasProcedure%2Frdfs%3Alabel+%3Fproc%0A+FILTER(%3Fproc+IN+(%22Draft+affirmative%22%2C+%22Draft+negative%22%2C+%22Made+affirmative%22%2C+%22Made+negative%22))%0A++++%23+Statutory+instruments+can+be+laid+under+a+number+of+procedures+with+all+having+different+routes+through+Parliament.+The+procedures+above+are+the+four+main+procedures+mapped+out+for+the+Statutory+Instrument+Service.++%0A%0A++%3FworkPackage+%3AworkPackageHasBusinessItem+%3FprocStep+.%0A++++++%23+A+business+item+is+an+item+of+business+conducted+either+within+or+outside+Parliament.+For+example%3A+the+tabling+of+an+early+day+motion%2C+a+laying+of+a+paper%2C+the+making+of+a+statutory+instrument+by+a+government+minister.%0A%0A+++++%3FprocStep+%3AbusinessItemDate+%3Fdate+.%0A+++++%23+The+majority+of+business+items+will+also+have+a+date+of+when+the+business+took+place.+For+the+purpose+of+this+query+the+date+will+be+the+date+the+instrument+was+laid+before+the+House+of+Commons.%0A%0A++%3FprocStep+%3AbusinessItemHasProcedureStep+id%3Acspzmb6w+.%0A++++%23+All+business+items+will+have+one+or+more+procedure+steps+attached.+All+procedure+steps+will+have+a+name+and+ID%2C+we+use+the+ID+to+search+for+the+step+as+it+is+constant+whereas+the+name+could+change.+The+ID+cspzmb6w+is+for+the+%22Laid+before+the+House+of+Commons+step%22.+%0A%0A++%3FprocStep+%3AbusinessItemHasProcedureStep%2Frdfs%3Alabel+%3FprocStepName.+++%0A+++++++%23+As+above+procedure+steps+will+always+have+a+name%2C+we+include+it+in+the+query+because+it's+more+accessible+for+users+than+the+procedure+ID.+%0A%0A++%3FprocStep+%3AlayingHasLayingBody%2F%3Aname+%3FlayingBodyName+.%0A%0A++FILTER+(+str(%3Fdate)+%3E+'2017-01-01'+%26%26+str(%3Fdate)+%3C+'2018-01-01')%0A+++%23++This+filter+limits+the+date+the+results+will+look+for.+%0A%0A%7D&contentTypeConstruct=text%2Fturtle&contentTypeSelect=application%2Fsparql-results%2Bjson&endpoint=https%3A%2F%2Fapi.parliament.uk%2Fsparql&requestMethod=POST&tabTitle=2017+calendar+year&headers=%7B%7D&outputFormat=table)