PubIDPubID
EU

EU

European Union — Official Journal legal acts

The EU legal acts flavor covers the regulations, directives and decisions of the Official Journal of the European Union — CELEX sector 3, type letters R / L / D. Built for the Relaton::Eu flavor (relaton/relaton#44), whose Relaton::Db cache keys on this pubid; every act parses back from its CELEX number, its ELI URL or the printed form of the Journal.

RegionalSyntax EU identifiers follow the canonical form 'EU <Type> <a>/<b>' (Regulation, Directive, Decision). The Official Journal long form (Regulation (EU) No 1227/2011, Directive 2010/75/EU), the CELEX number (32011R1227 — sector 3, year, type letter R/L/D, number padded to 4; CELEX 32011R1227 and CELEX:32011R1227 both parse) and the ELI URL (http://data.europa.eu/eli/reg/2011/1227/oj) all parse and render canonical; Pubid.parse routes the canonical EU prefix only — call Pubid::Eu.parse for the other forms. #to_celex and #to_eli give the two official identifiers back; the EU has no URN namespace in the IANA registry, so to_urn (urn:eu:reg:2011:1227) is pubid-invented and the round-trip machine form is the pubid-scheme URN. The two-number order is spelling, not identity: before 2015 a regulation printed <number>/<year> while other acts used both orders, and 'No' always marks <number>/<year>. The builder stores number_first only when the input order differs from that rule, and equality ignores it — EU Decision 1082/2013 equals CELEX 32013D1082. When a plain print would read as another act, the renderer prints 'No <number>/<year>' (32014R2015 → EU Regulation No 2015/2014), so every print parses back to its own act. Years run 1952–2099; two-digit years (Directive 95/46/EC), joint families ((EU, Euratom)), two conflicting families (…1227/2011/EC), a pair with no plausible year (12/34) and number 0 are rejected; the author words of the Official Journal title (Commission Implementing Regulation …) are not parsed. Website →
3
Doc Types
6
Components
5
Relations
0
Stages

Document Types 3

Regulation

Regulation▼

Directive

Directive▼

Decision

Decision▼

Components 6

Structured elements that make up a EU identifier:

Publisher
Enumeration

The issuing organization — kept in the PUBLISHER constant, not an attribute; the canonical face prints the EU prefix

EU
Prefix of the canonical form; to_s(with_publisher: false) drops it (Regulation 1227/2011)
e.g.EU
Act Type
Enumeration

The legal act type — regulation, directive or decision; the leaf class of the identifier

RegulationDirectiveDecision
Word after the publisher; determines the CELEX letter (R/L/D) and the ELI segment (reg/dir/dec)
e.g.Regulation
Number
String

The act number, with CELEX zero padding stripped

32016R0679 reads as 679; the printed face can be <number>/<year> or <year>/<number>
e.g.1227
:number
Year
Year

The year of the act — identity, not an edition: 1227/2011 and 1227/2012 are two acts

1952–2099; two-digit years are rejected
e.g.2011
:year
Legal Family
Enumeration

The bracketed legal family of the Official Journal form

EUECEECEuratomCFSP
Set by the long form only (Regulation (EU) No 1227/2011); a canonical reference omits it, so a family-less reference matches a row that has one (===)
e.g.EU
:family
Number Order
Enumeration

The print order flag, set only when the input order differs from the default rule (pre-2015 regulations print <number>/<year>, everything else <year>/<number>)

truefalsenil (the default rule applies)
Spelling only: equality-ignored and a URN facet (urn:pubid:eu:dec:2013:1082:f:0.numberfirst-true)
e.g.true
:number_first

PubID Algebra 5

Relationships between EU identifiers:

RelationDescriptionSyntaxExample
Official Journal long formThe printed form of the Journal parses and renders canonical; it sets the family, which identity treats as a wildcard<Type> ([<family>]) [No] <number>/<year>[/<family>]Regulation (EU) No 1227/2011
CELEX numberThe CELEX number of the same act — sector 3, year, type letter, number padded to 4; #to_celex gives it back from any form[CELEX[:| ]]<3><year><R|L|D><number padded to 4>32011R1227
ELIThe ELI of the act as published in the Official Journal — the EU's official identifier; #to_eli gives it back from any formhttp(s)://data.europa.eu/eli/{reg|dir|dec}/<year>/<number>[/oj]http://data.europa.eu/eli/reg/2011/1227/oj
Number orderThe two numbers may print in either order; the order is spelling, not identity — equality ignores number_first, so both faces name one actEU Decision <number>/<year> ≡ <3><year>D<number>EU Decision 1082/2013 ≡ 32013D1082
pubid-scheme URNThe always-round-trip machine form; the act type is an atom-level token so a regulation and a decision with one number do not collideurn:pubid:eu:{reg|dir|dec}:<year>:<number>[:family-<f>][:f:0.numberfirst-<bool>]urn:pubid:eu:dec:2013:1082:f:0.numberfirst-true