{
  "id": "fr_rfn_line_code",
  "kind": "datatype",
  "status": "draft",
  "name": "French railway line code (code ligne RFN)",
  "doc": "Six-digit code of a line of the French national rail network (réseau ferré national) in the datasets of SNCF Réseau: 830000 Paris-Lyon à Marseille-St-Charles, 420000 Paris-Montparnasse à Brest, 570000 Paris-Austerlitz à Bordeaux-St-Jean, 005000 Paris à Strasbourg (LGV). A position on the line is given by the code and a kilometre point. Files that store it as a number lose the leading zeros (5000).",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "transport"
  ],
  "country": [
    "FR"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^\\d{6}$",
  "examples": [
    {
      "value": "830000",
      "description": "Ligne de Paris-Lyon à Marseille-St-Charles",
      "valid": true
    },
    {
      "value": "420000",
      "description": "Ligne de Paris-Montparnasse à Brest",
      "valid": true
    },
    {
      "value": "005000",
      "description": "Ligne de Paris à Strasbourg (LGV)",
      "valid": true
    },
    {
      "value": "87543207",
      "description": "A UIC station code (uiccode)",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://ressources.data.sncf.com/explore/dataset/lignes-par-statut/"
    }
  ],
  "translations": {
    "fr": {
      "name": "Code ligne du réseau ferré national"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "frrfnlinecodebyname",
        "type": "field",
        "match": "regex",
        "file": "fr/fr_transport.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/FR/transport/fr_rfn_line_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/FR/transport/fr_rfn_line_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/FR/transport/fr_rfn_line_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/fr_rfn_line_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/fr_rfn_line_code.json"
  }
}