doxa-matched-coverage / contracts /context_packet.schema.json
Giuliocc's picture
Release source-grounded context, event references and study evidence with exact rights and annotation status
193be2c verified
Raw History Blame Contribute Delete
2.78 kB
{
"$id": "doxa-context-packet-v1",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Focal and adjacent text are preserved exactly. Packet source_text_sha256 hashes the full upstream document; annotation review source_text_sha256 hashes the reviewed record's focal text. This revision contains nominations only, not training gold.",
"properties": {
"annotation_status": {
"const": "unannotated"
},
"authors": {
"items": {
"type": "string"
},
"type": "array"
},
"context_after": {
"type": "string"
},
"context_after_end": {
"minimum": 1,
"type": "integer"
},
"context_before": {
"type": "string"
},
"context_before_start": {
"minimum": 0,
"type": "integer"
},
"document_group": {
"type": "string"
},
"evaluation_eligible": {
"const": false
},
"gold_label": {
"type": "null"
},
"human_review_count": {
"const": 0
},
"id": {
"minLength": 1,
"type": "string"
},
"license": {
"required": [
"identifier",
"source_url"
],
"type": "object"
},
"offset_unit": {
"const": "unicode_code_points"
},
"reserved_split": {
"enum": [
"train",
"validation",
"test"
]
},
"schema_version": {
"const": "doxa-context-packet-v1"
},
"source_document_id": {
"minLength": 1,
"type": "string"
},
"source_text_end": {
"minimum": 1,
"type": "integer"
},
"source_text_sha256": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"source_text_start": {
"minimum": 0,
"type": "integer"
},
"source_xml_sha256": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"source_xpath": {
"minLength": 1,
"type": "string"
},
"text": {
"minLength": 1,
"type": "string"
},
"text_sha256": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"training_eligible": {
"const": false
}
},
"required": [
"id",
"schema_version",
"text",
"text_sha256",
"context_before",
"context_after",
"source_document_id",
"source_text_start",
"source_text_end",
"context_before_start",
"context_after_end",
"source_text_sha256",
"source_xml_sha256",
"source_xpath",
"offset_unit",
"authors",
"license",
"document_group",
"reserved_split",
"annotation_status",
"gold_label",
"human_review_count",
"training_eligible",
"evaluation_eligible"
],
"title": "DOXA exact research paragraph and source context nomination",
"type": "object"
}