owmeta_core.graph_serialization module¶
Utilies for graph serialization
- owmeta_core.graph_serialization.write_canonical_to_file(graph, file_name)[source]¶
Write a graph to a file such that the contents would only differ if the set of triples in the graph were different. The serialization format is N-Triples.
- Parameters
- graph
rdflib.graph.Graph
The graph to write
- file_name
str
The name of the file to write to
- graph