{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hieropedia.org/schemas/hmif-record-1.0.schema.json",
  "type": "object",
  "required": [
    "@context",
    "@type",
    "hmifVersion",
    "recordId",
    "canonicalUrl",
    "name",
    "objectType",
    "status",
    "summary",
    "articleVersion",
    "publishedOnOrBefore",
    "lastReviewed",
    "sourceLanguage",
    "humanEditions",
    "machineEdition",
    "citationMetadata",
    "claimMap",
    "taxonomy",
    "subjectState",
    "asOf",
    "provenanceRelations",
    "sources"
  ],
  "properties": {
    "@context": {
      "const": "https://hieropedia.org/vocab/context.jsonld"
    },
    "@type": {
      "const": "HieropediaRecord"
    },
    "hmifVersion": {
      "const": "1.0"
    },
    "recordId": {
      "type": "string",
      "pattern": "^hp:"
    },
    "canonicalUrl": {
      "type": "string",
      "format": "uri"
    },
    "name": {
      "type": "string"
    },
    "objectType": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "attributes": {
      "type": "array"
    },
    "relations": {
      "type": "array"
    },
    "evidenceStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "classificationConfidence": {
      "type": [
        "string",
        "null"
      ]
    },
    "classificationRationale": {
      "type": [
        "string",
        "null"
      ]
    },
    "sourceLimitations": {
      "type": [
        "string",
        "null"
      ]
    },
    "articleVersion": {
      "type": "string"
    },
    "publishedOnOrBefore": {
      "type": "string",
      "format": "date"
    },
    "lastReviewed": {
      "type": "string",
      "format": "date"
    },
    "sourceLanguage": {
      "const": "en"
    },
    "humanEditions": {
      "type": "array",
      "minItems": 6,
      "maxItems": 6,
      "items": {
        "type": "object",
        "required": [
          "language",
          "url",
          "sourceVersion",
          "translationVersion",
          "revisedOn",
          "state",
          "method",
          "completeness"
        ],
        "properties": {
          "language": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "sourceVersion": {
            "type": "string"
          },
          "translationVersion": {
            "type": "string"
          },
          "revisedOn": {
            "type": "string",
            "format": "date"
          },
          "state": {
            "enum": [
              "source",
              "current",
              "stale",
              "review-needed",
              "missing"
            ]
          },
          "method": {
            "type": "string"
          },
          "completeness": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "machineEdition": {
      "type": "string",
      "format": "uri"
    },
    "citationMetadata": {
      "type": "string",
      "format": "uri"
    },
    "claimMap": {
      "type": "string",
      "format": "uri"
    },
    "evidenceDossier": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ]
    },
    "sourcePreservation": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ]
    },
    "editorialDisclosures": {
      "type": "string"
    },
    "sourceProfileNotice": {
      "type": "object"
    },
    "taxonomy": {
      "type": "object"
    },
    "subjectState": {
      "type": "string"
    },
    "asOf": {
      "type": "string",
      "format": "date"
    },
    "provenanceRelations": {
      "type": "array"
    },
    "sources": {
      "type": "array"
    }
  },
  "additionalProperties": false
}
