Relevant context limits agentic systems
Foundation models can write code, summarize documents, and analyze data, but accurate action still depends on context.
A semantic-document alternative to Google Cloud’s Open Knowledge Format: keep the file-bundle workflow, but use RDF-Turtle, Linked Data identifiers, ontology terms, and SPARQL as the query layer.
The source article introduces OKF as Markdown plus YAML frontmatter for portable agent context. This collection shows the same idea as an RDF document bundle: Turtle files are the documents, ontology terms define the contract, and instance data carries the actual business context.
Foundation models can write code, summarize documents, and analyze data, but accurate action still depends on context.
OKF v0.1 turns a directory of Markdown files with YAML frontmatter into a portable, vendor-neutral knowledge format.
Schemas, metrics, runbooks, APIs, joins, code comments, documents, and expert memory live across incompatible surfaces.
OKF emphasizes producer and consumer independence over a new runtime, SDK, or proprietary platform.
In the v0.1 design, each Markdown file represents a concept and the file path is the concept identity.
Concept documents link to each other with Markdown links, creating richer relationships than the directory tree alone.
The specification is intentionally versioned, open, and expected to evolve as producers and consumers appear.
OKF’s Markdown design optimizes for immediate adoption. RDF-Turtle adds formal semantics, queryability, and Web-scale identity while preserving text-file portability.
Directory of Markdown files. YAML frontmatter stores type, title, description, resource, tags, and timestamp. File paths identify concepts. Markdown links create a navigable graph for agents and people.
Directory of Turtle files. HTTP IRIs identify concepts. RDF predicates type relationships. Ontology classes and properties travel with the bundle. SPARQL queries cross documents without custom parsing.
OKF Markdown: file path is identity. RDF-Turtle: HTTP IRIs identify entities independent of local storage paths.
OKF Markdown: links are readable but mostly untyped. RDF-Turtle: predicates make relationships explicit and machine-actionable.
OKF Markdown: search tools and conventions. RDF-Turtle: SPARQL over typed triples, named graphs, provenance, and ontology terms.
OKF Markdown: portable files and Git repositories. RDF-Turtle: portable files plus Web-scale entity references and graph federation.
OKF Markdown: frontmatter fields and repository rules. RDF-Turtle: parser validation plus optional SHACL and ontology constraints.
OKF Markdown: conventions evolve through spec versions. RDF-Turtle: ontologies publish classes and properties that can be extended incrementally.
OKF Markdown: familiar writing workflow. RDF-Turtle: more structured, but still text-based and readable when authored carefully.
OKF Markdown: agents parse directories and frontmatter. RDF-Turtle: agents traverse typed graphs and execute SPARQL queries.
The Turtle file declares a lightweight ontology for RDF-first OKF bundles. Each class and property axiom is linked to a concrete example resource in the RDF source.
A deployable collection of RDF documents, ontologies, instance data, and query recipes that can be consumed by humans, agents, and SPARQL engines.
A document whose identity, type, metadata, body sections, and relationships are represented as RDF triples.
A reusable unit of agent context such as a table, metric, runbook, API, dataset, join path, or concept.
A criterion used to compare OKF Markdown documents with RDF-Turtle documents.
A saved query over the RDF document collection.
A principle for naming, dereferencing, and interlinking entities on the Web.
Connects a semantic document or context atom to the entity it identifies.
Connects a bundle or document to a reusable unit of context.
Connects a bundle or entity group to a SPARQL recipe.
Connects one representation strategy to another in a comparison.
Connects an RDF document pattern to a Linked Data principle.
These examples show valid ABox usage for the custom classes and properties, including domain/range intent for each predicate.
Shows a valid bundle instance with semantic documents, context atoms, and SPARQL recipes.
Example of: RdfKnowledgeBundle
:rdfBundle a :RdfKnowledgeBundle ;
schema:hasPart :doc-sales-index ;
:hasContextAtom :atom-bigquery-table ;
:queryableBy :query-context-atoms .Shows a semantic document instance denoting a reusable context resource.
Example of: SemanticDocument
:doc-orders-table a :SemanticDocument ;
schema:name "sales/tables/orders.ttl"@en ;
:denotesResource :resource-orders-table .Shows a context atom as a reusable unit of agent context inside the RDF bundle.
Example of: ContextAtom
:atom-metric a :ContextAtom ;
schema:name "Metric"@en ;
schema:isPartOf :rdfBundle .Shows a comparison dimension contrasting the Markdown and RDF-Turtle representation patterns.
Example of: ComparisonDimension
:dim-query a :ComparisonDimension ;
schema:name "Query model"@en ;
:contrastsWith :okfMarkdownPattern, :rdfTurtlePattern .Shows a query recipe typed as both the local class and schema.org source code.
Example of: SparqlRecipe
:query-context-atoms a :SparqlRecipe, schema:SoftwareSourceCode ;
schema:programmingLanguage "SPARQL"@en ;
schema:target <https://linkeddata.uriburner.com/sparql> .Shows a Linked Data principle represented as a reusable defined term in the collection.
Example of: LinkedDataPrinciple
:principle-http-iris a :LinkedDataPrinciple ;
schema:name "Use HTTP IRIs as names"@en ;
schema:isPartOf :linkedDataPrinciples .Shows the domain/range intent: a semantic document denotes a context atom.
Example of: denotesResource
:doc-orders-table :denotesResource :resource-orders-table .Shows the domain/range intent: a bundle contains a reusable context atom.
Example of: hasContextAtom
:rdfBundle :hasContextAtom :atom-bigquery-table .Shows the domain/range intent: a bundle is queryable by a SPARQL recipe.
Example of: queryableBy
:rdfBundle :queryableBy :query-context-atoms .Shows the comparison relationship between a dimension and the two representation patterns.
Example of: contrastsWith
:dim-query :contrastsWith :okfMarkdownPattern, :rdfTurtlePattern .Shows an RDF document pattern implementing Linked Data principles.
Example of: implementsPrinciple
:rdfTurtlePattern :implementsPrinciple :principle-http-iris .These are sample semantic documents and context atoms for a sales-oriented OKF-style bundle.
Collection index for the sales context bundle.
Dataset profile for the sales orders database.
Table profile for completed customer orders.
Table profile for customer records.
Metric definition and lineage for weekly active users.
Runbook context for agent-assisted incident response.
A data warehouse table represented as a typed entity with schema, resource URL, owners, and relationships.
A collection of tables, views, or data products with ownership and usage metadata.
A reusable business measure with a formula, provenance, grain, source tables, and governance notes.
A relationship showing how two data entities are connected by keys or graph predicates.
Operational instructions that agents can retrieve, traverse, and update.
A service interface represented as a discoverable entity with operations and examples.
A trace of source, author, timestamp, and derivation for a context atom.
The payoff is not aesthetic. It is operational: context becomes identifiable, mergeable, queryable, and reusable across tools.
A table, metric, runbook, and API can be related through IRIs rather than trapped in one repository tree.
Predicates distinguish schema:about, schema:isPartOf, prov:wasDerivedFrom, okfx:denotesResource, and business-specific links.
SPARQL can ask which metrics depend on a deprecated table or which runbooks mention a failing API.
Authors, publication dates, derivations, source URLs, and generation steps can be queried rather than hidden in prose.
Agents can traverse known relationships, inspect ontology terms, and choose next actions from graph shape.
Like OKF, Turtle files can live in Git, tarballs, object stores, or WebDAV, while remaining more formally queryable.
Things should be named with HTTP IRIs so people and agents can refer to the same entity across documents and systems.
Looking up an IRI should lead to useful information about the named entity.
Descriptions should use RDF statements so data from many sources can merge into one graph.
RDF should connect entities to other IRIs so graph discovery and reuse improve over time.
SELECT queries use text/x-html+tr. DESCRIBE and CONSTRUCT use text/x-html-nice-turtle.
The recipes are represented as schema:SoftwareSourceCode entities in the Turtle graph and can be run after loading the graph into https://linkeddata.uriburner.com/sparql.
Google Cloud introduced Open Knowledge Format v0.1, an open specification for representing agent and human knowledge as Markdown documents with YAML frontmatter.
OKF addresses fragmented enterprise context: schemas, metrics, runbooks, APIs, joins, documents, and expert knowledge split across incompatible systems.
It demonstrates how the same document-collection idea can be represented as linked, typed RDF documents with ontology and instance data.
RDF links are typed predicates between identified things, so an agent can know whether a link means about, depends on, joins to, derives from, or implements.
Not necessarily. RDF can be an alternate OKF serialization, an enrichment layer, or the source-of-truth format for teams that need graph queries and Linked Data interoperability.
Linked Data makes context atoms portable beyond a local folder by using dereferenceable IRIs and RDF descriptions that can join other graphs.
SPARQL gives agents a standard way to ask graph-shaped questions across documents, types, relationships, provenance, and examples.
RDF-Turtle is more explicit and structured than Markdown, which improves machine actionability but requires more care in authoring and validation.
Turtle is a text format with prefixes, compact triples, labels, comments, and descriptions; a companion HTML view can provide the friendly reading surface.
It should contain ontology terms, typed instance documents, provenance, cross-links, glossary terms, query recipes, and a small set of conformance rules.
A Google Cloud open specification for portable Markdown-plus-frontmatter knowledge bundles for agents and humans.
A W3C graph data model based on subject, predicate, object statements.
A compact, human-readable RDF serialization suitable for text-file document collections.
A set of Web practices for naming and interlinking things with dereferenceable IRIs and RDF descriptions.
The standard query language and protocol for RDF graphs.
A published vocabulary of classes and properties that describes the meaning of graph data.
An RDF graph identified by an IRI, useful for provenance, partitioning, and query scoping.
A W3C constraints language that can validate RDF graphs against shape rules.