{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.alexanarch.org/datasets/argument-as-dataset/schema.json",
  "title": "argument as dataset — five tables",
  "description": "A paper cluster translated out of prose: atomic claims, evidence objects (including measurement gaps), typed relations between them, specified tests, and defined terms. The document survives only as provenance (source_document, version, section, locus). No claim carries a synthetic confidence; the support topology is preserved so a consumer can see, per claim, what is measured, what is literature, what is model, what is missing.",
  "type": "object",
  "additionalProperties": false,
  "required": ["claims", "evidence", "relations", "tests", "terms"],
  "$defs": {
    "prov": {"type": "object", "additionalProperties": false, "required": ["source_document", "source_version", "source_section"], "properties": {"source_document": {"type": "string"}, "source_version": {"type": "string"}, "source_section": {"type": "string"}, "source_locus": {"type": "string"}, "deposit": {"type": ["integer", "null"]}, "axn": {"type": ["string", "null"]}}},
    "epistemic_status": {"type": "string", "enum": ["measured_internal", "measured_external", "literature_claim", "model_implication", "hypothesis", "model_consequence", "specified_test", "strategic_corollary", "structural_reading", "definition", "falsified_in_test", "ruling"]}
  },
  "properties": {
    "claims": {"type": "array", "items": {"type": "object", "additionalProperties": false, "required": ["claim_id", "claim", "claim_class", "epistemic_status", "provenance"], "properties": {"claim_id": {"type": "string", "pattern": "^C-[A-Z0-9-]+$"}, "claim": {"type": "string"}, "claim_class": {"type": "string", "enum": ["thesis", "mechanism", "finding", "conjecture", "consequence", "scope", "interpretation", "corollary", "self_application", "limit"]}, "epistemic_status": {"$ref": "#/$defs/epistemic_status"}, "scope": {"type": "string"}, "conditions": {"type": "array", "items": {"type": "string"}}, "level": {"type": "string", "enum": ["measured", "classical_model", "contemporary_hypothesis", "model_consequence", "strategic", "structural", "definitional", "self"]}, "provenance": {"$ref": "#/$defs/prov"}, "superseded_by": {"type": ["string", "null"]}, "note": {"type": "string"}}}},
    "evidence": {"type": "array", "items": {"type": "object", "additionalProperties": false, "required": ["evidence_id", "evidence_type", "statement", "provenance"], "properties": {"evidence_id": {"type": "string", "pattern": "^E-[A-Z0-9-]+$"}, "evidence_type": {"type": "string", "enum": ["topology_measurement", "registry_observation", "capture_specimen", "external_study", "literature_definition", "policy_text", "measurement_gap", "archive_record"]}, "statement": {"type": "string"}, "variable": {"type": "string"}, "value": {"type": ["number", "string", "null"]}, "unit": {"type": "string"}, "measurement_date": {"type": "string"}, "status": {"type": "string", "enum": ["measured", "reported_by_others", "unmeasured", "unreachable"]}, "capture_ids": {"type": "array", "items": {"type": "string"}}, "provenance": {"$ref": "#/$defs/prov"}, "note": {"type": "string"}}}},
    "relations": {"type": "array", "items": {"type": "object", "additionalProperties": false, "required": ["subject_id", "relation", "object_id"], "properties": {"subject_id": {"type": "string"}, "relation": {"type": "string", "enum": ["supports", "constrains", "depends_on", "entails_under_model", "contradicts", "qualifies", "illustrates", "operationalizes", "formalizes", "tests", "falsifies_if", "revises", "analogizes", "instantiates", "scopes", "measures_gap_of", "reads_against", "names"]}, "object_id": {"type": "string"}, "note": {"type": "string"}}}},
    "tests": {"type": "array", "items": {"type": "object", "additionalProperties": false, "required": ["test_id", "name", "tests_claims", "prediction", "status"], "properties": {"test_id": {"type": "string", "pattern": "^T-[A-Z0-9-]+$"}, "name": {"type": "string"}, "tests_claims": {"type": "array", "items": {"type": "string"}}, "input": {"type": "object"}, "prediction": {"type": "object"}, "falsifies_if": {"type": "string"}, "status": {"type": "string", "enum": ["specified_not_run", "run", "partially_run", "blocked"]}, "result": {"type": ["string", "null"]}, "result_date": {"type": "string"}, "result_evidence": {"type": "array", "items": {"type": "string"}}, "provenance": {"$ref": "#/$defs/prov"}}}},
    "terms": {"type": "array", "items": {"type": "object", "additionalProperties": false, "required": ["term_id", "term", "definition", "introduced_in"], "properties": {"term_id": {"type": "string", "pattern": "^TERM-[A-Z0-9-]+$"}, "term": {"type": "string"}, "definition": {"type": "string"}, "introduced_in": {"type": "string"}, "prior_articulation": {"type": ["string", "null"], "description": "an earlier archive record that named the phenomenon, if the term is a refinement or a duplicate"}, "status_kind": {"$ref": "#/$defs/epistemic_status"}}}}
  }
}
