---
id: "ojreference"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["government"]
country: ["EU"]
langs: ["en"]
quality: 85
url: "http://registry.apicrafter.io/datatype/ojreference"
---

# Official Journal reference (`ojreference`)

EU datatype for 'Official Journal reference' (ojreference) from rules in context 'government'. The Official Journal reference is a unique identifier used to reference notices and documents published in the Official Journal of the European Union. The format consists of the prefix 'OJ/S' followed by an optional space, then 1 to 4 digits representing the notice number, a forward slash, and 1 to 4 digits representing the year or sequence number.

- Personal data (PII): no
- Categories: Government related (government)
- Countries: European Union (EU)
- Languages: English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^OJ/S\s?\d{1,4}/\d{1,4}$
```

## Examples

- `OJ/S 123/456` — Official Journal reference with space and 3-digit numbers
- `OJ/S123/456` — Official Journal reference without space and 3-digit numbers
- `OJ/S 1/2024` — Official Journal reference with single digit and year
- `OJ/S1234/1` — Official Journal reference with 4-digit notice number

## Metacrafter rules

2 rules: 1 match the field name, 1 match values.

- `ojreferencefield` (field, `eu/eu_procurement.yaml`)
- `ojreferencevalue` (data, `eu/eu_procurement.yaml`)

## Supported by tools

- `metacrafter`

## Translations

- en: Official Journal Reference
- fr: Référence du Journal Officiel
- de: Amtsblatt-Referenz
- es: Referencia del Diario Oficial

## Sources

- doc: <https://eur-lex.europa.eu/oj/direct-access.html>
- wikipedia: <https://en.wikipedia.org/wiki/Official_Journal_of_the_European_Union>

## Quality

Score 85/100. Missing: negative example, mapping (Wikidata, Schema.org, ...).

JSON: <http://registry.apicrafter.io/api/v1/datatypes/ojreference.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/EU/government/ojreference.yaml>
