content-explorer/contracts/snapshot.schema.json
2026-10-12 18:28:16 +02:00

177 lines
3.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Content Explorer compact snapshot v0.1",
"type": "object",
"required": [
"schemaVersion",
"dataspace",
"kinds",
"entities",
"relations",
"sources"
],
"properties": {
"schemaVersion": {
"const": "0.1"
},
"dataspace": {
"type": "object",
"required": [
"id",
"title",
"description"
],
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
}
}
},
"kinds": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"label",
"plural"
],
"properties": {
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"plural": {
"type": "string"
},
"facets": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"entities": {
"type": "array",
"items": {
"type": "object",
"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"
}
}
}
},
"relations": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"predicate",
"from",
"to"
],
"properties": {
"id": {
"type": "string"
},
"predicate": {
"type": "string"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"sourceRefs": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"sources": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"uri",
"title",
"license"
],
"properties": {
"id": {
"type": "string"
},
"uri": {
"type": "string"
},
"title": {
"type": "string"
},
"license": {
"type": "string"
},
"attribution": {
"type": "string"
}
}
}
}
},
"additionalProperties": false
}