{
  "id": "ojreference",
  "kind": "datatype",
  "status": "stable",
  "name": "Official Journal reference",
  "doc": "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.",
  "is_pii": false,
  "categories": [
    "government"
  ],
  "country": [
    "EU"
  ],
  "langs": [
    "en"
  ],
  "classification": "identifier",
  "regexp": "^OJ/S\\s?\\d{1,4}/\\d{1,4}$",
  "examples": [
    {
      "value": "OJ/S 123/456",
      "description": "Official Journal reference with space and 3-digit numbers",
      "valid": true
    },
    {
      "value": "OJ/S123/456",
      "description": "Official Journal reference without space and 3-digit numbers",
      "valid": true
    },
    {
      "value": "OJ/S 1/2024",
      "description": "Official Journal reference with single digit and year",
      "valid": true
    },
    {
      "value": "OJ/S1234/1",
      "description": "Official Journal reference with 4-digit notice number",
      "valid": true
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://eur-lex.europa.eu/oj/direct-access.html"
    },
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Official_Journal_of_the_European_Union"
    }
  ],
  "translations": {
    "en": {
      "name": "Official Journal Reference"
    },
    "fr": {
      "name": "Référence du Journal Officiel"
    },
    "de": {
      "name": "Amtsblatt-Referenz"
    },
    "es": {
      "name": "Referencia del Diario Oficial"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "ojreferencefield",
        "type": "field",
        "match": "text",
        "file": "eu/eu_procurement.yaml"
      },
      {
        "rule": "ojreferencevalue",
        "type": "data",
        "match": "ppr",
        "file": "eu/eu_procurement.yaml"
      }
    ]
  },
  "quality": {
    "score": 85,
    "missing": [
      "negative example",
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/EU/government/ojreference.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/EU/government/ojreference.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/EU/government/ojreference.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/ojreference",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/ojreference.json"
  }
}