{
  "id": "filepath",
  "kind": "datatype",
  "status": "draft",
  "name": "File path",
  "doc": "Location of a file in a file system, written as directory names joined by a separator and ending with the file name. Unix-like systems and URLs use the forward slash, Windows uses the backslash. A path is absolute when it starts from the root or a drive letter such as C:, and relative when it starts from a working directory. Datasets often keep paths to images, attachments and documents. The file name alone is the datatype filename, and its suffix is file_extension.",
  "aliases": [
    "path_file"
  ],
  "is_pii": false,
  "categories": [
    "common"
  ],
  "langs": [
    "common"
  ],
  "examples": [
    {
      "value": "/var/log/syslog",
      "description": "absolute path on a Unix-like system",
      "valid": true
    },
    {
      "value": "images/2024/photo_001.jpg",
      "description": "relative path to an image",
      "valid": true
    },
    {
      "value": "C:\\Users\\Public\\Documents\\report.docx",
      "description": "absolute path on Windows, with a drive letter",
      "valid": true
    }
  ],
  "mappings": {
    "wikidata": "Q817765"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Path_(computing)"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Q817765"
    }
  ],
  "translations": {
    "ru": {
      "name": "Путь к файлу"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "pathfilebyknown",
        "type": "field",
        "match": "text",
        "file": "common/common.yaml",
        "key": "path_file"
      }
    ]
  },
  "quality": {
    "score": 75,
    "missing": [
      "regexp",
      "negative example"
    ]
  },
  "source": {
    "path": "data/datatypes/any/files/filepath.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/files/filepath.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/files/filepath.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/filepath",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/filepath.json"
  }
}