cmem_client.models.graph¤
RDF graph models for eccenca 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. GraphFileSerialization describes an RDF serialization the graphs repository imports and exports.
Classes:
- Graph – A graph
- GraphFileSerialization – Supported graph format description
- 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. - di_project_graph (
bool) – Whether the graph is a DataIntegration project graph. - system_resource (
bool) – Whether the graph is a system resource, e.g. a shape or query catalog graph. - label (
GraphLabel | None) – Label of the graph, orNoneif it carries none.
Functions:
- get_id – Get the IRI of the graph
assigned_classes¤
di_project_graph¤
get_id¤
Get the IRI of the graph
iri¤
label¤
model_config¤
system_resource¤
writeable¤
GraphFileSerialization¤
Bases: Model
Supported graph format description
Attributes:
- mime_type (
str) – MIME type of the serialization, sent asContent-Typeon import and asAccepton export. - file_extensions (
list[str]) – File extensions mapped to this serialization, used byguess_file_type()to detect the format of a path. - encoding (
str | None) – Content encoding of the file, sent asContent-Encodingon import when set. - known_not_supporters (
list[str]) – Store types known not to support this serialization, matched against the type reported by the graph store. The client does not enforce this; the test suite uses it to skip combinations a store cannot handle. - export_supported (
bool) – Whether graphs can be exported in this serialization. - import_supported (
bool) – Whether graphs can be imported from this serialization.
encoding¤
export_supported¤
file_extensions¤
import_supported¤
known_not_supporters¤
mime_type¤
model_config¤
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.