cmem_client.models.graph_insight¤
Graph Insight models for Corporate Memory.
Graph Insight is the semspect extension, which keeps its own indexed snapshot of the
graphs it explores. The snapshots are the items of client.graph_insights, keyed by
their database ID. That repository does not fetch on creation, so call fetch_data()
before iterating it.
Classes:
- GraphInsightSnapshot – A single Graph Insight snapshot from the semspect extension.
GraphInsightSnapshot¤
Bases: ReadRepositoryItem
A single Graph Insight snapshot from the semspect extension.
Attributes:
- database_id (
str) – Identifier of the snapshot database. This is the key of the repository. - main_graph_synced (
str) – IRI of the graph the snapshot was built from. - all_graphs_synced (
list[str]) – IRIs of every graph included in the snapshot, which covers the main graph and the graphs it imports. - update_info_timestamp (
str) – When the snapshot was last updated, as reported by the extension. - status (
str) – State of the snapshot, e.g. whether it is ready or still being built. - is_valid (
bool) – Whether the snapshot is still in sync with the graphs it was built from. A stale snapshot needs to be rebuilt before it is queried again.
Functions:
- get_id – Get the snapshot ID.
all_graphs_synced¤
database_id¤
get_id¤
Get the snapshot ID.