Freeze the v0.1 contract and the local ingest connector.
The snapshot and manifest schemas, both example dataspaces, and the shared text renderer now pass the fixture validator and the negative contract tests. JSON, NDJSON, and Markdown frontmatter publish a snapshot only when rights, identity, and references allow it. CONTENT-WP-0001 and CONTENT-WP-0003 are marked finished against those artifacts. CONTENT-WP-0000-T04 stays open. SCOPE.md and the 19:05 scope-against-intent note record the stop. Assistant: grok Assistant-Session: 01a130f1-abfb-7d71-9cd6-a8b75ec7f95a
This commit is contained in:
parent
2b1706559b
commit
072a7fa550
30 changed files with 1896 additions and 264 deletions
|
|
@ -1,63 +1,33 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Content Explorer compact snapshot v0.1",
|
||||
"$id": "https://content-explorer.local/schemas/snapshot-0.1.json",
|
||||
"title": "Content Explorer snapshot v0.1",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"schemaVersion",
|
||||
"dataspace",
|
||||
"kinds",
|
||||
"entities",
|
||||
"relations",
|
||||
"sources"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"required": ["schemaVersion", "dataspace", "kinds", "entities", "relations", "sources", "claims"],
|
||||
"properties": {
|
||||
"schemaVersion": {
|
||||
"const": "0.1"
|
||||
},
|
||||
"schemaVersion": {"const": "0.1"},
|
||||
"dataspace": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"title",
|
||||
"description"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "title", "description"],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
}
|
||||
"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",
|
||||
"required": [
|
||||
"id",
|
||||
"label",
|
||||
"plural"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "label", "plural"],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"type": "string"
|
||||
},
|
||||
"plural": {
|
||||
"type": "string"
|
||||
},
|
||||
"facets": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
"id": {"type": "string", "pattern": "^[a-z0-9-]+$"},
|
||||
"label": {"type": "string"},
|
||||
"plural": {"type": "string"}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -65,48 +35,22 @@
|
|||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"kindId",
|
||||
"title",
|
||||
"tldr",
|
||||
"summary",
|
||||
"sourceRefs"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "kindId", "title", "tldr", "summary", "sourceRefs"],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"kindId": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"tldr": {
|
||||
"type": "string"
|
||||
},
|
||||
"summary": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"type": "object"
|
||||
},
|
||||
"sourceRefs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"asOf": {
|
||||
"type": "string",
|
||||
"format": "date"
|
||||
"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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -115,63 +59,52 @@
|
|||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"predicate",
|
||||
"from",
|
||||
"to"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "predicate", "from", "to", "sourceRefs"],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"predicate": {
|
||||
"type": "string"
|
||||
},
|
||||
"from": {
|
||||
"type": "string"
|
||||
},
|
||||
"to": {
|
||||
"type": "string"
|
||||
},
|
||||
"sourceRefs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
"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",
|
||||
"required": [
|
||||
"id",
|
||||
"uri",
|
||||
"title",
|
||||
"license"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "uri", "title", "license"],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"uri": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"license": {
|
||||
"type": "string"
|
||||
},
|
||||
"attribution": {
|
||||
"type": "string"
|
||||
}
|
||||
"id": {"type": "string"},
|
||||
"uri": {"type": "string"},
|
||||
"title": {"type": "string"},
|
||||
"license": {"type": "string"},
|
||||
"attribution": {"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"}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue