KnowledgeGraph.export_layers()
Export selected layers to a .kg file.
Usage
KnowledgeGraph.export_layers(
layers,
path,
*,
description="",
author="",
)The .kg file is a self-contained SQLite database with the same schema as a live graph, plus a _manifest table for metadata.
Parameters
layers: list[GraphLayer]-
Which layers to include.
path: str | Path-
Destination file path.
description: str = ""-
Optional description embedded in the manifest.
author: str = ""- Optional author name.
Returns
Path- The resolved output path.