Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions api/publication-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ The fields that appear in Publication Log entries are:

|Field|Representing element|Meaning|
|---|---|---|
|Entry ID|`<atom:id>`|{::nomarkdown}<p>A unique identifier for the event.<p><strong>Note:</strong> the Publication Log records the (dis)association of a UK Impact Assessment with an item of legislation as two separate entries (one for the UKIA-legislation association, and one for the legislation-UKIA association). These entries have the same Entry ID, but different Item IDs (one for the legislation item and the other for the UKIA){:/}|
|Entry ID|`<atom:id>`|{::nomarkdown}<p>A unique identifier for the event.</p><p><strong>Note:</strong> the Publication Log records the (dis)association of a UK Impact Assessment with an item of legislation as two separate entries (one for the UKIA-legislation association, and one for the legislation-UKIA association). These entries have the same Entry ID, but different Item IDs (one for the legislation item and the other for the UKIA)</p>{:/}|
|Item ID|`<dc:identifier>`|The identifier of the item of legislation or UK Impact Assessment which the resource manifests or to which it is associated.|
|Updated|`<atom:updated>`|The date and time at which the event (publication or withdrawal) occurred.|
|Published|`<atom:published>`|{::nomarkdown}<p>If present, the first date and time at which a resource was published at this URI.<p><strong>Note:</strong> Due to deficiencies in the admin log, which recorded publication events before the Publication Log was released, some resources were published to legislation.gov.uk without a log entry. If this field is absent, it means that the resource was not previously published on or after 5<sup>th</sup> July 2023, but might have been published before that date. If this field is present, the date may not be the true date and time of original publication if it is on or after 5<sup>th</sup> July 2023.{:/}|
|Published|`<atom:published>`|{::nomarkdown}<p>If present, the first date and time at which a resource was published at this URI.</p><p><strong>Note:</strong> Due to deficiencies in the admin log, which recorded publication events before the Publication Log was released, some resources were published to legislation.gov.uk without a log entry. If this field is absent, it means that the resource was not previously published on or after 5<sup>th</sup> July 2023, but might have been published before that date. If this field is present, the date may not be the true date and time of original publication if it is on or after 5<sup>th</sup> July 2023.</p>{:/}|
|Title|`<atom:title>`|The title of the resource. This is usually the title of the legislation item, but for associated documents it will normally be the title of the associated legislation item followed by the type of the associated document.|
|Author|`<atom:author>`|{::nomarkdown}<p>The publisher of the resource.<p><strong>Note:</strong> the Publication Log always shows the author for XML versions of revised legislation as <code>editorial.legislation.gov.uk</code>, but in the XML for the revised legislation itself the value of <code>dc:publisher</code> is usually <code>Statute Law Database</code>.{:/}|
|Author|`<atom:author>`|{::nomarkdown}<p>The publisher of the resource.</p><p><strong>Note:</strong> the Publication Log always shows the author for XML versions of revised legislation as <code>editorial.legislation.gov.uk</code>, but in the XML for the revised legislation itself the value of <code>dc:publisher</code> is usually <code>Statute Law Database</code>.</p>{:/}|
|Content type|`<pbl:ContentType>`|The type of content being published or withdrawn (`legislation`, `draft`, `associated-documents` or `changes`).|
|Event|`<pbl:Event>`|The type of event (`published` or `withdrawn`).|
|Republished|`<pbl:Republished>`|{::nomarkdown}<p>Indicates whether the resource has ever previously been published at this URI.<p><strong>Note:</strong> Due to deficiencies in the admin log, which recorded publication events before the Publication Log was released, some resources were published to legislation.gov.uk without a log entry. If the value of this field is `false`, it means that the resource was not previously published on or after 5<sup>th</sup> July 2023, but might have been published before that date{:/}|
|Republished|`<pbl:Republished>`|{::nomarkdown}<p>Indicates whether the resource has ever previously been published at this URI.</p><p><strong>Note:</strong> Due to deficiencies in the admin log, which recorded publication events before the Publication Log was released, some resources were published to legislation.gov.uk without a log entry. If the value of this field is `false`, it means that the resource was not previously published on or after 5<sup>th</sup> July 2023, but might have been published before that date</p>{:/}|
|New|`<pbl:New>`|Indicates whether the item of legislation existed on legislation.gov.uk before this publication event.|
|Newly issued|`<pbl:NewlyIssued>`|Indicates whether a new item of legislation has just been issued (is actually “new”), or whether it was issued in the past but has only just been uploaded.|
|Document|`<pbl:Document>`|The [expression](../model/legislation.md#frbr-functional-requirements-for-bibliographic-records) (version) of the item that the resource manifests. For associated documents, this will normally be the same as the Item.|
|Link|`<atom:link>`|For XML resources, a link to an alternate representation of the resource.|
|Item|{::nomarkdown}<code>&lt;pbl:Item_Published&gt;</code><br><code>&lt;pbl:Item_Withdrawn&gt;</code>{:/}|The URI of the resource being published or withdrawn.|
|Item|{::nomarkdown}<code>&lt;pbl:Item_Published&gt;</code><br/><code>&lt;pbl:Item_Withdrawn&gt;</code>{:/}|The URI of the resource being published or withdrawn.|
|Format|`<pbl:Format>`|The format of the resource (`xml`, `pdf` or `html5`).|
|Print|`<pbl:Print>`|Indicates whether a legislation PDF represents the version of the document that is to be printed.|
|Direction|`<pbl:Direction>`|For changes, indicates whether the effects were updated for the affecting or affected item.|
Expand All @@ -56,8 +56,8 @@ The fields that appear in Publication Log entries are:
|Year|`<ukm:Year>`|The year of the item to which the resource relates.|
|Number|`<ukm:Number>`|The number of the item (in its primary numbering series) to which the resource relates.|
|ISBN|`<ukm:ISBN>`|For legislation items that are not numbered, the ISBN of the item of legislation to which the resource relates.|
|Alternative number|`<ukm:AlternativeNumber>`|{::nomarkdown}<p>A number in an alternative numbering series for the item to which the resource relates.<p><strong>Note:</strong> this field does not appear for entries for associated documents or changes, even if it applies to the related item of legislation.{:/}|
|Supersedes|`<ukm:Supersedes>`|{::nomarkdown}<p>For legislation that supersedes other legislation, the item of legislation superseded by the item to which the resource relates.<p><strong>Note:</strong> this field does not appear for entries for associated documents or changes, even if it applies to the related item of legislation.{:/}|
|Alternative number|`<ukm:AlternativeNumber>`|{::nomarkdown}<p>A number in an alternative numbering series for the item to which the resource relates.</p><p><strong>Note:</strong> this field does not appear for entries for associated documents or changes, even if it applies to the related item of legislation.</p>{:/}|
|Supersedes|`<ukm:Supersedes>`|{::nomarkdown}<p>For legislation that supersedes other legislation, the item of legislation superseded by the item to which the resource relates.</p><p><strong>Note:</strong> this field does not appear for entries for associated documents or changes, even if it applies to the related item of legislation.</p>{:/}|

## Filtering

Expand All @@ -70,11 +70,11 @@ The Publication Log feeds support the following path parameters:
|Parameter|Filters|Permitted values|Examples|
|---|---|---|---|
|Date|The date on which the event occurred (from the `<atom:published>` field)|A date in `yyyy-mm-dd` format|[https://www.legislation.gov.uk/update/2023-07-07/data.feed](https://www.legislation.gov.uk/update/2023-07-07/data.feed)|
|Content type|The type of content to which the event relates|{::nomarkdown}One of the following values:<ul><li><code>legislation</code><li><code>draft</code><li><code>associated-documents</code><li><code>changes</code></li>{:/}|[https://www.legislation.gov.uk/update/draft/data.feed](https://www.legislation.gov.uk/update/draft/data.feed)|
|Direction|**For effects only:** Whether the effects were recorded against the affecting item or the affected item|{::nomarkdown}One of the following values:<ul><li><code>affecting</code><li><code>affected</code></li>{:/}|[https://www.legislation.gov.uk/update/changes/affected/data.feed](https://www.legislation.gov.uk/update/changes/affected/data.feed)|
|Document category|**For legislation and associated documents:** The category of legislation|{::nomarkdown}One of the following values:<ul><li><code>primary</code><li><code>secondary</code><li><code>eu-origin</code></li>{:/}|[https://www.legislation.gov.uk/update/legislation/eu-origin/data.feed](https://www.legislation.gov.uk/update/legislation/eu-origin/data.feed)|
|Content type|The type of content to which the event relates|{::nomarkdown}One of the following values:<ul><li><code>legislation</code></li><li><code>draft</code></li><li><code>associated-documents</code></li><li><code>changes</code></li></ul>{:/}|[https://www.legislation.gov.uk/update/draft/data.feed](https://www.legislation.gov.uk/update/draft/data.feed)|
|Direction|**For effects only:** Whether the effects were recorded against the affecting item or the affected item|{::nomarkdown}One of the following values:<ul><li><code>affecting</code></li><li><code>affected</code></li></ul>{:/}|[https://www.legislation.gov.uk/update/changes/affected/data.feed](https://www.legislation.gov.uk/update/changes/affected/data.feed)|
|Document category|**For legislation and associated documents:** The category of legislation|{::nomarkdown}One of the following values:<ul><li><code>primary</code></li><li><code>secondary</code></li><li><code>eu-origin</code></li></ul>{:/}|[https://www.legislation.gov.uk/update/legislation/eu-origin/data.feed](https://www.legislation.gov.uk/update/legislation/eu-origin/data.feed)|
|Document main type|The type of the document to which the resource relates|One of the values in the “Document Main Type” column of the [legislation types](../model/uris.md#legislation-types) table|[https://www.legislation.gov.uk/update/2023-07-05/wsi/data.feed](https://www.legislation.gov.uk/update/2023-07-05/wsi/data.feed) (Document main type = wsi)|
|Treaty name|**For EU treaties only:** The short name of the EU treaty|{::nomarkdown}One of the following values:<ul><li><code>teec</code><li><code>euratom</code><li><code>teu</code><li><code>eea-agreement</code><li><code>withdrawal-agreement</code></li>{:/}|[https://www.legislation.gov.uk/update/eut/withdrawal-agreement/data.feed](https://www.legislation.gov.uk/update/eut/withdrawal-agreement/data.feed)|
|Treaty name|**For EU treaties only:** The short name of the EU treaty|{::nomarkdown}One of the following values:<ul><li><code>teec</code></li><li><code>euratom</code></li><li><code>teu</code></li><li><code>eea-agreement</code></li><li><code>withdrawal-agreement</code></li></ul>{:/}|[https://www.legislation.gov.uk/update/eut/withdrawal-agreement/data.feed](https://www.legislation.gov.uk/update/eut/withdrawal-agreement/data.feed)|
|Year|The year assigned to the document|A four digit year|[https://www.legislation.gov.uk/update/2014/data.feed](https://www.legislation.gov.uk/update/2014/data.feed)|
|Regnal year|**For regnal year-numbered items only:** The monarch and session assigned to the document|A regnal year string (see examples)|[https://www.legislation.gov.uk/update/legislation/ukpga/Eliz2/6-7/51/data.feed](https://www.legislation.gov.uk/update/legislation/ukpga/Eliz2/6-7/51/data.feed) (Regnal = Eliz2/6-7)|
|Number|The number assigned to the document in its main numbering series|A whole number greater than or equal to 0|[https://www.legislation.gov.uk/update/2023-07-06/2022/231/data.feed](https://www.legislation.gov.uk/update/2023-07-06/2022/231/data.feed) (Number = 231)|
Expand All @@ -86,7 +86,7 @@ The Publication Log feeds support the following query parameters:
|Parameter|Filters|Permitted values|
|---|---|---|
|event|The type of event|`published` or `withdrawn`|
|new|{::nomarkdown}<p><strong>For items of legislation and UK Impact Assessments:</strong> whether the item of legislation or UK Impact Assessment associated with the event is new to legislation.gov.uk.<p><strong>For other associated documents:</strong> whether the associated document has been published before at this URI.{:/}|`true` or `false`|
|new|{::nomarkdown}<p><strong>For items of legislation and UK Impact Assessments:</strong> whether the item of legislation or UK Impact Assessment associated with the event is new to legislation.gov.uk.</p><p><strong>For other associated documents:</strong> whether the associated document has been published before at this URI.</p>{:/}|`true` or `false`|
|format|The format of the resource.|`xml`, `pdf` or `html5`|
|language|A language of the resource.|`en` or `cy` (dual-language resources will match either value)|
|title|The title of the resource or the document to which it is associated, or any contiguous sequence of words within its title.|Any text string|
Expand Down
2 changes: 1 addition & 1 deletion api/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ You can specify the following sort orders for a legislation search/list using th

|Name|Order|
|---|---|
|`published`|{::nomarkdown}<p>Sort by first publication date/time descending\*, then category (EU, then primary, then secondary), then year descending, then number descending, then enacted/made date descending <p>(\* If a correction slip has been issued for a document, the first publication date will be treated as the issuance date of the most recent correction slip for the document, not the date the document was originally published.){:/}|
|`published`|{::nomarkdown}<p>Sort by first publication date/time descending\\\*, then category (EU, then primary, then secondary), then year descending, then number descending, then enacted/made date descending </p><p>(\\\* If a correction slip has been issued for a document, the first publication date will be treated as the issuance date of the most recent correction slip for the document, not the date the document was originally published.)</p>{:/}|
|`title`|Sort by title ascending in alphabetical order, then category (EU, then primary, then secondary), then year descending, then number descending, then enacted/made date descending|
|`modified`|Sort by last modified date descending, then category (EU, then primary, then secondary), then year descending, then number descending, then enacted/made date descending|
|`created`|Sort by category (EU, then primary, then secondary), then year descending, then enacted/made date descending|
Expand Down
4 changes: 2 additions & 2 deletions what-we-have.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ There are some types of legislation for which we do not record all changes (eith
|Scottish Statutory Instruments (1999–)|{::nomarkdown}<p>All Scottish Statutory Instruments, except for Local Statutory Instruments and non-prints (all except Local and non-prints available as XML, most available as King’s Printer PDF)</p><p>All Local and non-print Scottish Statutory Instruments since 2007 (only available as King’s Printer PDFs)</p>{:/}|Yes, but only where available as XML|Yes|Yes|
|Northern Ireland Statutory Rules (1974–)|{::nomarkdown}<p>All Northern Ireland Statutory Rules since 1996, except for Local Statutory Instruments and non-prints (all except Local and non-prints available as XML, most available as King’s Printer PDF)</p><p>All Local and non-print Northern Ireland Statutory Rules since 2011 (only available as King’s Printer PDFs)</p>{:/}|Yes, but only where available as XML|Yes, but only for Northern Ireland Statutory Rules made from 1994 onwards|Yes|
|UK Ministerial Directions (2023–)|All UK Ministerial Directions from 2023 onwards (only available as King’s Printer PDFs)|No|Yes|Yes|
|UK Ministerial Orders (1953–)|{::nomarkdown}<p>All UK Ministerial Orders from 2013 onwards (only available as King’s Printer PDFs)<p>Select UK Ministerial Orders from 1972 to 2012 (only available as King’s Printer PDFs){:/}|No|No|No|
|UK Ministerial Orders (1953–)|{::nomarkdown}<p>All UK Ministerial Orders from 2013 onwards (only available as King’s Printer PDFs)</p><p>Select UK Ministerial Orders from 1972 to 2012 (only available as King’s Printer PDFs)</p>{:/}|No|No|No|

### Historical legislation types

Expand Down Expand Up @@ -98,7 +98,7 @@ There are some types of legislation for which we do not record all changes (eith

## Limitations

<!-- TODO: Re-add when history is ready As shown in the History of our Data Collection and Data Completeness sections, the --> Our database is both large and complex, with more than 300,000 items of legislation from data collections deriving from different sources. As a result, the content held within the database has some limitations.
Our database is both large and complex, with more than 300,000 items of legislation from data collections deriving from different sources. As a result, the content held within the database has some limitations.<!-- TODO: Re-add when history is ready As shown in the History of our Data Collection and Data Completeness sections, the -->

### Missing legislation

Expand Down