| { |
| "$schema": "https://json-schema.org/draft/2020-12/schema", |
| "$id": "https://huggingface.co/datasets/egobowwow/universal-annotations/resolve/v1.0.0/schemas/universal-annotation-projection.schema.json", |
| "title": "Loss-audited Universal Annotation projection", |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["schema_version", "source_packet_id", "adapter_id", "target_schema_id", "target_record", "coverage", "adapter_digest", "projection_id"], |
| "properties": { |
| "schema_version": {"const": "1.0.0"}, |
| "source_packet_id": {"type": "string", "pattern": "^uap:sha256:[0-9a-f]{64}$"}, |
| "adapter_id": {"type": "string", "minLength": 1}, |
| "target_schema_id": {"type": "string", "minLength": 1}, |
| "target_record": {"type": "object"}, |
| "coverage": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["represented_claim_ids", "omitted_claim_ids", "required_missing_fields", "loss_status"], |
| "properties": { |
| "represented_claim_ids": {"type": "array", "uniqueItems": true, "items": {"type": "string"}}, |
| "omitted_claim_ids": {"type": "array", "uniqueItems": true, "items": {"type": "string"}}, |
| "required_missing_fields": {"type": "array", "uniqueItems": true, "items": {"type": "string"}}, |
| "loss_status": {"enum": ["exact", "lossy", "blocked"]} |
| } |
| }, |
| "adapter_digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"}, |
| "projection_id": {"type": "string", "pattern": "^uap-projection:sha256:[0-9a-f]{64}$"} |
| } |
| } |
|
|