{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://obligationfirst.org/v1/schema/tombstone.schema.json",
  "title": "Tombstone",
  "description": "A queryable compatibility record for a retired adopter IRI. A Tombstone preserves identifier history without pretending that the former representation is still a live domain entity.",
  "type": "object",
  "required": ["@type", "@id", "deprecated", "former_type"],
  "properties": {
    "@context": { "type": ["string", "array", "object"] },
    "@id": { "type": "string", "format": "uri" },
    "@type": { "const": "of:Tombstone" },
    "deprecated": { "const": true },
    "former_type": { "type": "string", "minLength": 1 },
    "replaced_by": { "$ref": "https://obligationfirst.org/v1/schema/common.schema.json#/$defs/iriSet" },
    "describesSameEntityAs": { "$ref": "https://obligationfirst.org/v1/schema/common.schema.json#/$defs/iriSet" },
    "source": { "type": "string", "format": "uri" },
    "source_citation": { "type": "string" },
    "source_locator": { "type": "string" },
    "source_version": { "type": "string" },
    "language": { "type": "string" },
    "evidence_type": { "type": "string" },
    "verified": { "type": "string", "format": "date" },
    "retrieved": { "type": "string", "format": "date" },
    "asserted_by_adopter": { "type": "string", "format": "uri" },
    "notes": { "type": "string" }
  },
  "additionalProperties": true
}
