With the new W3C RDF 1.2 standard, knowledge graphs can be easily extended to include time, provenance, and confidence statements to form a (temporal) context graph . This article describes the fundamentals, several use cases, and the features of the prototype. The prototype provides visualization, import and export capabilities, as well as query and validation options using a SPARQL 1.2 engine and a SHACL validator.
A classic knowledge graph answers the question “What is related to what?”, represented as a directed graph consisting of nodes and edges. A context graph supplements these statements with additional dimensions related to the context of the node, for example:
- valid-time — When was the statement valid in the real world?
- transaction-time — when was it recorded, confirmed, or revised?
- Provenance and Confidence — Where does this information come from, and how reliable is this statement?
Using the W3C RDF 1.2 standard, this can be specified very effectively using the annotation block syntax —with curly braces and pipe characters—as shown here for a sequoia in the floodplain forest, which was measured on September 1, 2015, at a height of 57.1 m.
wst:tree-auenwald ws:heightMeters "57.1"^^xsd:decimal {|
ws:validFrom "2015-09-01"^^xsd:date ;
ws:source wsb:post-hoechster-mammutbaum-deutschlands ;
ws:certainty "bestaetigt" ;
ws:confidence "1.0"^^xsd:decimal ;
ws:recordedAt "2015-10-01T12:00:00Z"^^xsd:dateTime
|} .
This extension of the Knowledge Graph provides significant added value, for example, in the context of the product development process, the Digital Product Passport (DPP), or when managing historical or regulated data —data changes at specific points in time, sources change, and new or expanded regulations come into effect. With the Context Graph, all of this can be fully documented and later utilized for querying and validation.
For the prototype, a context graph was generated from each of two different sources.
- Wilhelma Seed — Publications on a nature project documenting the historic mountain sequoias of the “Wilhelma Seed” planted by King Wilhelm I of Württemberg (in 1864). The Context Graph contains 897 triples with 65 annotations, documenting the time period from 1781 to 2026. ( https://www.wilhelma-saat.de )
- KMAIC Blog — the blog on the KMAIC website, with each post including timestamps for its initial publication and modifications. The Context Graph contains 780 triples with 72 annotations. ( https://www.km-sc.de )
The Prototype can import context graphs in RDF format and visualize them as a graph or timeline. The built-in SPARQL engine allows you to query the details, and the built-in SHACL engine allows you to validate them as well.




Outlook
A context graph is the logical evolution of the knowledge graph. Its added value lies in situations where static statements without an additional dimension are insufficient. Additional applications and use cases also appear to be useful in the following areas:
- Regulatory requirements (DPP, ESPR, Battery Regulation 2023/1542) mandate traceable data provenance and timeliness—both of which can be directly modeled as annotations, queried using SPARQL, and validated using SHACL.
- Product management, digital twins, and product carbon footprints require tracking when product characteristics change over time (maintenance status, recycled content, CO₂ footprint, etc.).
- Modern AI-based knowledge management systems benefit from provenance and confidence annotations when statements generated by GraphRAG coexist alongside validated statements from a domain expert—the Context Graph can specify which source provides which statement at what time and how trustworthy it is.




