ontocast.onto.facts¶
Attributes¶
Classes¶
Facts
¶
Bases: BaseModel
A lightweight wrapper around an RDF graph of extracted facts.
Facts are expected to use the fixed cd: namespace as produced by the
facts rendering prompts.
Source code in ontocast/onto/facts.py
Attributes¶
facts_namespace = Field(default=DEFAULT_IRI, description='Base namespace for `cd:` entities in this facts graph.')
class-attribute
instance-attribute
¶
graph = Field(default_factory=RDFGraph)
class-attribute
instance-attribute
¶
hash = Field(default=None, description='Hash/version of the facts graph (optional).')
class-attribute
instance-attribute
¶
iri = Field(default=DEFAULT_IRI, description='Facts graph IRI (for stable source identity).')
class-attribute
instance-attribute
¶
model_config = ConfigDict(arbitrary_types_allowed=True)
class-attribute
instance-attribute
¶
ontology_id = Field(default=None, description='Optional source identifier (e.g., document/chunk id).')
class-attribute
instance-attribute
¶
version = Field(default='1.0.0', description='Semantic version of the facts graph.')
class-attribute
instance-attribute
¶
version_key
property
¶
A facts graph has no stored versions; atoms fall back on hash.