All checks were successful
synthetic / suite (push) Successful in 56s
The single-operator pilot keeps static projection. Local OnCo use requires a CC BY-NC origin notice, and the slice stays out of public CI. Assistant: grok Assistant-Session: 01a15378-f601-7fe2-a143-8e1500a1d59c
113 lines
3.9 KiB
JSON
113 lines
3.9 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://content-explorer.local/schemas/snapshot-0.1.json",
|
|
"title": "Content Explorer snapshot v0.1",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["schemaVersion", "dataspace", "kinds", "entities", "relations", "sources", "claims"],
|
|
"properties": {
|
|
"schemaVersion": {"const": "0.1"},
|
|
"dataspace": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["id", "title", "description"],
|
|
"properties": {
|
|
"id": {"type": "string", "pattern": "^[a-z0-9-]+$"},
|
|
"title": {"type": "string", "minLength": 1},
|
|
"description": {"type": "string", "minLength": 1}
|
|
}
|
|
},
|
|
"kinds": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["id", "label", "plural"],
|
|
"properties": {
|
|
"id": {"type": "string", "pattern": "^[a-z0-9-]+$"},
|
|
"label": {"type": "string"},
|
|
"plural": {"type": "string"}
|
|
}
|
|
}
|
|
},
|
|
"entities": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["id", "kindId", "title", "tldr", "summary", "sourceRefs"],
|
|
"properties": {
|
|
"id": {"type": "string", "pattern": "^urn:ce:[a-z0-9-]+:[a-z0-9-]+:[a-z0-9-]+$"},
|
|
"kindId": {"type": "string"},
|
|
"title": {"type": "string"},
|
|
"tldr": {"type": "string"},
|
|
"summary": {"type": "string"},
|
|
"aliases": {"type": "array", "items": {"type": "string"}},
|
|
"tags": {"type": "array", "items": {"type": "string"}},
|
|
"properties": {"type": "object"},
|
|
"sourceRefs": {"type": "array", "items": {"type": "string"}},
|
|
"claimRefs": {"type": "array", "items": {"type": "string"}},
|
|
"asOf": {"type": "string", "format": "date"},
|
|
"state": {
|
|
"enum": ["present", "missing", "unknown", "redacted", "stale", "contradicted", "not-applicable"]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"relations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["id", "predicate", "from", "to", "sourceRefs"],
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"predicate": {"type": "string", "pattern": "^[a-z0-9-]+$"},
|
|
"from": {"type": "string"},
|
|
"to": {"type": "string"},
|
|
"sourceRefs": {"type": "array", "items": {"type": "string"}, "minItems": 1},
|
|
"asOf": {"type": "string", "format": "date"}
|
|
}
|
|
}
|
|
},
|
|
"sources": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["id", "uri", "title", "license"],
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"uri": {"type": "string"},
|
|
"title": {"type": "string"},
|
|
"license": {"type": "string"},
|
|
"attribution": {"type": "string"},
|
|
"licenseUrl": {"type": "string"},
|
|
"originSha": {"type": "string"},
|
|
"modificationNotice": {"type": "string"},
|
|
"retrievedAt": {"type": "string", "format": "date"}
|
|
}
|
|
}
|
|
},
|
|
"claims": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["id", "subjectId", "key", "status", "evidenceRefs"],
|
|
"properties": {
|
|
"id": {"type": "string"},
|
|
"subjectId": {"type": "string"},
|
|
"key": {"type": "string"},
|
|
"value": {},
|
|
"status": {"enum": ["asserted", "unknown", "contested", "withheld"]},
|
|
"preferred": {"type": "boolean"},
|
|
"evidenceRefs": {"type": "array", "items": {"type": "string"}, "minItems": 1},
|
|
"observedAt": {"type": "string", "format": "date"}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|