cmem_client.models.graph¤
RDF graph models for Corporate Memory knowledge graphs.
This module defines models for representing RDF graphs in Corporate Memory’s DataPlatform (explore) environment. Graphs contain semantic data and are the primary storage units for knowledge graphs.
The Graph model includes metadata about graph permissions, assigned semantic classes, and access control, providing the foundation for graph-based operations in the explore APIs.
Classes:
- Graph – A graph
- GraphLabel – Label metadata for a graph returned by the /graphs/list endpoint.
Graph¤
Bases: Model, ReadRepositoryItem
A graph
Attributes:
- iri (
str) – IRI of the graph. This is the key of the repository. - writeable (
bool) – Whether the authenticated account may write to the graph. Access is decided by the access conditions of the deployment. - assigned_classes (
list[str]) – IRIs of the classes assigned to the graph, which is how Corporate Memory tells a vocabulary from a data graph or a shape graph. - label (
GraphLabel | None) – Label of the graph, orNoneif it carries none.
Functions:
- get_id – Get the IRI of the graph
assigned_classes¤
get_id¤
Get the IRI of the graph
iri¤
label¤
model_config¤
writeable¤
GraphLabel¤
Bases: Model
Label metadata for a graph returned by the /graphs/list endpoint.
Attributes:
- title (
str) – Text of the label. - lang (
str | None) – Language tag of the label, e.g.en, orNonefor a label without one.