Collections and temporal
Regulated corpora rarely stay still: a MiFID II filing is superseded by MiFID III, a price list updates weekly, a policy takes effect on a future date. The Knowledge Graph treats these as first-class concerns, with collections and effective windows you set, rather than something you encode in folder names.
Two kinds of time
Section titled “Two kinds of time”| Time kind | What it captures | Where it lives |
|---|---|---|
| Ingest time | When Fontana processed the file | Job timestamps; always present, whatever the source content |
| Document time | When a file is in force | The effective window (effectiveFrom / effectiveTo) you set on a folder or file; documentDate is the window’s start. A file without a window stays undated |
Retrieval shows the latest ingest view (your current source files mapped to their current derived subgraph) unless an as-of date applies: one a query sets, or one pinned on the namespace (see As-of retrieval).
Collections
Section titled “Collections”You tag a folder or an upload batch with collection metadata: a collection name (for example mifid-2 or mifid-3), an effective window, and any free-form key-value pairs you need. That metadata is stamped on every file, chunk and outline node in the batch, and inherited by the mention evidence those chunks produce.
- Retrieval scoping: every chunk-returning call accepts a collection filter and prunes to matching subgraphs, and a namespace can pin one. A query scoped to
mifid-3never pulls inmifid-2chunks. - Entities are shared across collections, deliberately:
ESMAis one entity node whichever collection mentions it, because its mentions and typed relationships each carry their own collection provenance. “What does MiFID III say about ESMA” filters the edges you see, not the entity itself. - Supersession: a collection can name the collection it supersedes, so “give me the latest” queries prefer the newest collection when scopes overlap.
kg_collectionslists a namespace’s collections with their folders (MCP).
Where collections are kept
Section titled “Where collections are kept”Collections are part of the namespace’s configuration in Fontana Files. The collection definitions live under kg.collections, and each folder’s collection and effective window under kg.folders, in the namespace’s .fontanaconfig.yaml. Saving a folder’s collection or window in KG Studio writes that file, so restoring the namespace brings them back with it.
As-of retrieval
Section titled “As-of retrieval”When you or an agent supplies an as-of date, Fontana keeps the chunks of files in force on that date: the file’s window has started (effectiveFrom, else its documentDate) and has not yet ended (effectiveTo is later than the as-of date). KG Studio’s As of slider dims the graph by the same rule. Undated files are treated as unscoped: they are included unless you ask to exclude undated files, so ordinary corpora without temporal metadata are not penalised for lacking dates they never claimed.
A namespace can pin retrieval defaults (collections, an as-of date, exclude undated) under kg.retrieval in its .fontanaconfig.yaml. Searches use them unless the call sets its own filter.
Conflict policy per relation type
Section titled “Conflict policy per relation type”For fact types your ontology marks as latest-wins (prices, ratings, statuses), an asOf value is stamped from document context, and the default retrieval view resolves conflicting same-pattern edges by picking the newest asOf or document date, while keeping older edges available for as-of queries. You declare this behaviour per relation type as latest_wins, accumulate or window, so a price override and an accumulating list of subsidiaries each behave correctly without special-case retrieval code.