ragraph.io.grip#

Capability to import GRIP data exports.

Module Contents#

Functions#

from_grip(→ ragraph.graph.Graph)

Decode GRIP XML file, string, or element into a Graph.

parse_collection(graph, root, collection, item, kind)

parse_objectenboom(graph, root)

parse_systeemeis_edges(graph, root[, kind])

parse_object_edges(graph, root[, kind])

parse_scope_edges(graph, root[, kind])

parse_raakvlak_edges(graph, root[, kind])

ragraph.io.grip.from_grip(path: str | pathlib.Path) ragraph.graph.Graph#

Decode GRIP XML file, string, or element into a Graph.

Parameters:

path – GRIP XML file path.

Returns:

Graph object.

ragraph.io.grip.parse_collection(graph: ragraph.graph.Graph, root: lxml.etree.Element, collection: str, item: str, kind: str)#
ragraph.io.grip.parse_objectenboom(graph: ragraph.graph.Graph, root: lxml.etree.Element)#
ragraph.io.grip.parse_systeemeis_edges(graph: ragraph.graph.Graph, root: lxml.etree.Element, kind='systeemeis')#
ragraph.io.grip.parse_object_edges(graph: ragraph.graph.Graph, root: lxml.etree.Element, kind='object')#
ragraph.io.grip.parse_scope_edges(graph: ragraph.graph.Graph, root: lxml.etree.Element, kind='scope')#
ragraph.io.grip.parse_raakvlak_edges(graph: ragraph.graph.Graph, root: lxml.etree.Element, kind='raakvlak')#