{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Archival Document",
  "description": "A `digital-representation` constrained to archival document formats \u2014 PDF/A or LIDO/XML \u2014 with\na mandatory persistent identifier, for long-term archival reference (D8.2 profile C).\n",
  "allOf": [
    {
      "$ref": "https://ogcincubator.github.io/bblocks-heritage/build/annotated/heritage/digital-representation/schema.json"
    },
    {
      "type": "object",
      "required": [
        "mediaType",
        "persistentIdentifier"
      ],
      "properties": {
        "hdtoType": {
          "const": "hdto:HC5_Digital_Representation",
          "description": "Pins the inherited hdtoType (from digital-representation, otherwise an enum of HC5/HC7/HC8) to plain HC5 \u2014 a digitised archival document has no more specific HC5-family class in D7.1."
        },
        "mediaType": {
          "type": "string",
          "enum": [
            "application/pdf",
            "text/xml",
            "application/dwg",
            "image/vnd.dxf"
          ],
          "description": "`application/pdf` for a PDF/A document (ISO 19005), `text/xml` for a LIDO/XML record, `application/dwg` for an AutoCAD DWG architectural drawing, or `image/vnd.dxf` for a DXF drawing exchange file."
        }
      }
    }
  ]
}