Skip to content

cmem_client.models.graph_insight¤

Graph Insight models for eccenca 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_snapshots, keyed by their database ID. That repository does not fetch on creation, so call fetch_data() before iterating it.

Classes:

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¤

all_graphs_synced: list[str] = Field(alias='allGraphsSynced')

database_id¤

database_id: str = Field(alias='databaseId')

get_id¤

get_id()

Get the snapshot ID.

is_valid¤

is_valid: bool = Field(alias='isValid')

main_graph_synced¤

main_graph_synced: str = Field(alias='mainGraphSynced')

model_config¤

model_config = ConfigDict(extra='allow', populate_by_name=True)

status¤

status: str

update_info_timestamp¤

update_info_timestamp: str = Field(alias='updateInfoTimestamp')

Comments