Skip to content
โ—‡ AirawatOS Developer
๐Ÿšง Under development โ€” this portal is being built track by track. Content will keep growing, and some sections are still placeholders.

Reference

โ† Schema catalogue

knowledge.document

domain: knowledge

A registry record for an INGESTED document โ€” a law, act, government order, notification, standard, guideline, court judgment, or general reference. The raw bytes live in the content-addressed filestore (`blob` = their sha2-256), so this record is metadata + a digest, never the payload. The document-variety axes are ORTHOGONAL, not one flat type: `doc_class` (what kind), `legal_force` (the axis that changes decisions โ€” mandatory law vs advisory guideline vs adjudicative order vs informational reference), `issuer`/`jurisdiction`/temporal validity, and `citation_style` (how to cite it: section/clause vs table/row vs paragraph). Its versions/chunks (the Merkle-manifest corpus) are separate records (knowledge.version / knowledge.chunk) that reference this doc.

FieldTypeRequiredDescription
schemaโ€”โœ“
idstringโœ“
doc_idstringโœ“
titlestringโœ“
doc_classstringโœ“the kind of instrument (a governed vocabulary in the full model)
legal_forcestringโœ“the axis that drives decision strength: a binding law โ‡’ mandatory rules; a guideline โ‡’ advisory; a court order โ‡’ adjudicative; general knowledge โ‡’ reference
issuerstringthe authority that issued it, e.g. CPCB, CAQM, Parliament, High Court โ€” ties to ref.source
jurisdictionobjectwhere it applies, e.g. {level: national|state|local, code: ...}
effective_fromstring
effective_tostring/null
supersedesstring/nulldoc_id this replaces/amends
citation_stylestringhow to cite it: 'section' | 'clause' | 'table' | 'paragraph' | 'page' โ€” drives the chunk locator + citation format
formatstringโœ“the raw bytes' format (drives the S3 extractor)
blobstringโœ“sha2-256 filestore id of the raw document bytes (content-addressed)
checksumstring= blob (the digest is the integrity check)
sourceobjectprovenance of acquisition: {url, retrieved_at} or {upload: true}
current_versionstring/nullknowledge.version id of the latest chunked/embedded version (set by S3)
statusstringacquired | chunked | indexed
tenantstring