core/packs/common/schema/sense.schema.json

29 lines
960 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "CORE Sense Record",
"description": "A scoped semantic sense for a lemma, mapping it to a specific CORE field primitive target under stated constraints.",
"type": "object",
"required": ["sense_id", "lemma_id", "field_target"],
"properties": {
"sense_id": {
"type": "string",
"description": "Unique identifier in the form '<lemma_id>:<semantic_label>'."
},
"lemma_id": {
"type": "string"
},
"field_target": {
"type": "string",
"description": "The CORE field primitive this sense lifts into. Dot-separated path. Example: 'logos.articulation.spoken'."
},
"constraints": {
"type": "array",
"items": { "type": "string" }
},
"rank": {
"type": ["number", "integer"],
"description": "Priority rank among senses for the same lemma. 1 is most primary."
}
},
"additionalProperties": false
}