{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "id": "http://schemata.hasdai.org/historic-persons/historic-person-entry-v1.0.0.json",
  "type": "object",
  "title": "Historic person entry",
  "additionalProperties": false,
  "properties": {
    "extra": {
      "items": {
        "properties": {
          "value": {
            "type": [
            "integer",
            "string",
            "boolean"
          ]
          },
          "field": {
          "type": "string"
          }
        },
        "type": "object"
      },
      "description": "corpus specific fields",
      "type": "array"
    },
  "transcription": {
    "type" : "object",
    "properties" : {
      "corrected": {
        "type" : "string"
      },
      "original": {
        "type" : "string"
      }
    }
  },
    "meta": {
      "properties": {
        "version": {
          "type": "integer",
          "description": "version of this record"
        },
        "partof": {
          "desctiption": "Identifier for parent dataset",
          "type": "string"
        },
        "actions": {
          "items": {
            "properties": {
              "classifiedAction": {
                "description": "local classificaiton of action",
                "type": "string"
              },
              "date": {
                "description": "date of revision",
                "type": "string"
              },
              "summary": {
                "description": "overview of action",
                "type": "string"
              },
              "actor": {
                "scheme": {
                  "description": "scheme eg ORCID/email",
                  "type": "string"
                },
                "identifier": {
                  "description": "identifier in named scheme",
                  "type": "string"
                },
                "name": {
                  "description": "name of person/tool acting on record",
                  "type": "string"
                }
              }
            },
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "organization": {
      "properties": {
        "inferred": {
          "type": "boolean",
          "description": "inferred from outside referenced annotation"
        },
        "identifier": {
          "scheme": "identifier for external scheme",
          "type": "string"
        },
        "scheme": {
          "description": "external scheme identifier",
          "type": "string"
        },
        "transcription": {
          "description": "organisation as written",
          "type": "string"
        }
      },
      "type": "object"
    },
    "occupation": {
      "type" : "array",
      "items" : {
      "properties": {
        "inferred": {
          "type": "boolean",
          "description": "inferred from outside referenced annotation"
        },
        "identifier": {
          "scheme": "identifier for external scheme",
          "type": "string"
        },
        "scheme": {
          "description": "external scheme identifier",
          "type": "string"
        },
        "transcription": {
          "description": "occupation as written",
          "type": "string"
        }
      },
      "type": "object"
    }
    },
    
    
    "$schema": {
      "type": "string",
      "description": "schema/version reference",
      "format" : "url"
    },
    "id": {
      "type": "string",
      "description": "local unique identifier"
    },
    "date": {
      "properties": {
        "ref": {
          "type": "string",
          "description": "date of reference"
        },
        "dod": {
          "type": "string",
          "description": "date of death"
        },
        "dob": {
          "type": "string",
          "description": "date of birth"
        }
      },
      "type": "object"
    },
    "status": {
      "type": "string",
      "description": "status of person"
    },
    "source": {
      "properties": {
        "selector": {
          "page": {
            "fragment": {
              "type": "string",
              "description": "IIIF URL for crop"
            },
            "number": {
              "canvas": {
                "type": "string",
                "description": "IIIF (canvas) identiier"
              },
              "type": "string",
              "description": "page number"
            }
          }
        },
        "manifest": {
          "type": "string",
          "description": "reference eg iiif manifest"
        },
        "title": {
          "type": "string",
          "description": "title of source"
        },
        "id": {
          "type": "string",
          "description": "identifier of annotation"
        }
      },
      "type": "object",
      "description": "source"
    },
    "name": {
      "properties": {
        "nee": {
          "type": "string",
          "description": "nee"
        },
        "postnominals": {
          "type": "string",
          "description": "postnominals"
        },
        "givennames": {
          "type": "string",
          "description": "given name / initial"
        },
        "familyname": {
          "type": "string",
          "description": "family name"
        },
        "title": {
          "type": "string",
          "description": "title / salutation"
        },
        "transcription": {
          "type": "string",
          "description": "name as written"
        }
      },
      "type": "object"
    },
    "location": {
      "items": {
        "properties": {
          "inferred": {
            "type": "boolean",
            "description": "inferred from outside referenced annotation"
          },
          "association": {
            "type": "string",
            "description": "description of association with the location"
          },
          "id": {
            "type": "string",
            "description": "location id"
          },
          "scheme": {
            "type": "string",
            "description": "scheme for this location entry (tgn etc)"
          },
          "transcription": {
            "type": "string",
            "description": "location information as written"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  }
}
