{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/SubjectMatchAssertion.schema.json",
  "title": "SubjectMatchAssertion",
  "description": "A reviewed or automated judgement about whether a source record describes a given subject, with the method used and the accountable organization. It does not merge records or declare two identities interchangeable everywhere.",
  "type": "object",
  "properties": {
    "matched_source": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/RecordReference.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The record that the match judgement concerns."
    },
    "matched_subject": {
      "type": "string",
      "format": "uri",
      "description": "The subject that the record is judged to describe, or judged not to describe."
    },
    "match_outcome": {
      "type": "string",
      "enum": [
        "match",
        "possible_match",
        "non_match"
      ],
      "$comment": "https://publicschema.org/vocab/match-outcome",
      "description": "Whether the record was judged to describe the subject, possibly to describe it, or not to describe it."
    },
    "match_method": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The method used to reach the judgement, such as manual review or a deterministic or probabilistic rule."
    },
    "assertion_authority": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/Organization.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The organization accountable for this statement, which can differ from the person or software that entered it."
    },
    "recorded_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the statement or event was entered into its source record. It can differ from when the fact took effect."
    },
    "evidence_assertions": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/EvidenceAssertion.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "Statements identifying sources that support or contradict this statement."
      }
    }
  }
}
