SMART Base
0.3.0 - ci-build

SMART Base, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.3.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/litlfred/smart-base/ and changes regularly. See the Directory of published versions

Logical Model: KGGraphDocument - Detailed Descriptions

Active as of 2026-10-06

Definitions for the KGGraphDocument logical model.

Guidance on how to interpret the contents of this table can be foundhere

0. KGGraphDocument
Definition

One L1 knowledge-graph document: typed nodes and reified edges, provenance-pinned to the sources it was extracted from. In JSON the context element is written @context.

ShortKnowledge graph L1: graph document
Control0..*
Is Modifierfalse
Logical ModelInstances of this logical model are not marked to be the target of a Reference
2. KGGraphDocument.context
Definition

The JSON-LD context (written @context in JSON).

ShortContext
Control1..1
Typeuri
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
4. KGGraphDocument.id
Definition

IRI of this graph document.

ShortID
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
6. KGGraphDocument.type
Definition

Always Entity (prov:Entity).

ShortType
Control1..1
Typecode
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
8. KGGraphDocument.ontologyVersion
Definition

schemaVersion of the ontology this graph was built against.

ShortOntology version
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
10. KGGraphDocument.generatedAt
Definition

When the document was generated.

ShortGenerated at
Control1..1
TypedateTime
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
12. KGGraphDocument.wasDerivedFrom
Definition

The sources this graph was extracted from, each pinned by hash.

ShortDerived from
Control0..*
Typehttp://smart.who.int/base/StructureDefinition/KGProvenanceSource
14. KGGraphDocument.nodes
Definition

The nodes.

ShortNodes
Control0..*
Typehttp://smart.who.int/base/StructureDefinition/KGNode
16. KGGraphDocument.edges
Definition

The edges.

ShortEdges
Control0..*
Typehttp://smart.who.int/base/StructureDefinition/KGEdge
18. KGGraphDocument.dak
Definition

The DAK envelope: the fields of the DAK logical model.

ShortDAK
Control0..1
TypeBackboneElement

Guidance on how to interpret the contents of this table can be foundhere

0. KGGraphDocument
Definition

One L1 knowledge-graph document: typed nodes and reified edges, provenance-pinned to the sources it was extracted from. In JSON the context element is written @context.

ShortKnowledge graph L1: graph document
Logical ModelInstances of this logical model are not marked to be the target of a Reference
2. KGGraphDocument.context
Definition

The JSON-LD context (written @context in JSON).

ShortContext
Control1..1
Typeuri
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
4. KGGraphDocument.id
Definition

IRI of this graph document.

ShortID
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
6. KGGraphDocument.type
Definition

Always Entity (prov:Entity).

ShortType
Control1..1
Typecode
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
8. KGGraphDocument.ontologyVersion
Definition

schemaVersion of the ontology this graph was built against.

ShortOntology version
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
10. KGGraphDocument.generatedAt
Definition

When the document was generated.

ShortGenerated at
Control1..1
TypedateTime
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
12. KGGraphDocument.wasDerivedFrom
Definition

The sources this graph was extracted from, each pinned by hash.

ShortDerived from
Control0..*
Typehttp://smart.who.int/base/StructureDefinition/KGProvenanceSource
14. KGGraphDocument.nodes
Definition

The nodes.

ShortNodes
Control0..*
Typehttp://smart.who.int/base/StructureDefinition/KGNode
16. KGGraphDocument.edges
Definition

The edges.

ShortEdges
Control0..*
Typehttp://smart.who.int/base/StructureDefinition/KGEdge
18. KGGraphDocument.dak
Definition

The DAK envelope: the fields of the DAK logical model.

ShortDAK
Control0..1
TypeBackboneElement

Guidance on how to interpret the contents of this table can be foundhere

0. KGGraphDocument
Definition

One L1 knowledge-graph document: typed nodes and reified edges, provenance-pinned to the sources it was extracted from. In JSON the context element is written @context.

ShortKnowledge graph L1: graph document
Control0..*
Is Modifierfalse
Logical ModelInstances of this logical model are not marked to be the target of a Reference
2. KGGraphDocument.context
Definition

The JSON-LD context (written @context in JSON).

ShortContext
Control1..1
Typeuri
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
4. KGGraphDocument.id
Definition

IRI of this graph document.

ShortID
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
6. KGGraphDocument.type
Definition

Always Entity (prov:Entity).

ShortType
Control1..1
Typecode
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
8. KGGraphDocument.ontologyVersion
Definition

schemaVersion of the ontology this graph was built against.

ShortOntology version
Control1..1
Typestring
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
10. KGGraphDocument.generatedAt
Definition

When the document was generated.

ShortGenerated at
Control1..1
TypedateTime
Primitive ValueThis primitive element may be present, or absent, or replaced by an extension
12. KGGraphDocument.wasDerivedFrom
Definition

The sources this graph was extracted from, each pinned by hash.

ShortDerived from
Control0..*
Typehttp://smart.who.int/base/StructureDefinition/KGProvenanceSource
14. KGGraphDocument.nodes
Definition

The nodes.

ShortNodes
Control0..*
Typehttp://smart.who.int/base/StructureDefinition/KGNode
16. KGGraphDocument.edges
Definition

The edges.

ShortEdges
Control0..*
Typehttp://smart.who.int/base/StructureDefinition/KGEdge
18. KGGraphDocument.dak
Definition

The DAK envelope: the fields of the DAK logical model.

ShortDAK
Control0..1
TypeBackboneElement