mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-13 07:12:27 +00:00
feat: independent property graphs and graph writes from the client
A property graph definition now carries its mode. Independent graphs are defined by node and edge types with Arrow schemas and take rows through insert_into_property_graph; materialized view graphs are defined over tables as before and brought up to them with refresh_property_graph. rollback_property_graph returns either to its previous commit, and descriptions report the mode and the current and previous commits.
This commit is contained in:
@@ -204,12 +204,23 @@ listing a storage directory.
|
||||
|
||||
## Property Graphs
|
||||
|
||||
A property graph reads tables as the nodes and edges of a graph. Manage one
|
||||
with [create_property_graph][lancedb.DBConnection.create_property_graph],
|
||||
A property graph is read as nodes and edges, in one of two modes. An
|
||||
independent graph holds its own rows: define it with node and edge types, and
|
||||
write it with
|
||||
[insert_into_property_graph][lancedb.DBConnection.insert_into_property_graph].
|
||||
A materialized view graph reads tables: define it with node and edge tables,
|
||||
and bring it up to them with
|
||||
[refresh_property_graph][lancedb.DBConnection.refresh_property_graph]. Manage
|
||||
either with [create_property_graph][lancedb.DBConnection.create_property_graph],
|
||||
[describe_property_graph][lancedb.DBConnection.describe_property_graph],
|
||||
[rollback_property_graph][lancedb.DBConnection.rollback_property_graph],
|
||||
[list_property_graphs][lancedb.DBConnection.list_property_graphs] and
|
||||
[drop_property_graph][lancedb.DBConnection.drop_property_graph].
|
||||
|
||||
::: lancedb.graph.NodeType
|
||||
|
||||
::: lancedb.graph.EdgeType
|
||||
|
||||
::: lancedb.graph.NodeTable
|
||||
|
||||
::: lancedb.graph.EdgeTable
|
||||
|
||||
Reference in New Issue
Block a user