Closed jkminder closed 2 years ago
The converter newly only accepts schemas as a string. This allows the schema string to be generically generated. Futher the library provides a load_file function under rel2graph.utils to make switching to the new api as easy as possible.
load_file
rel2graph.utils
Old way:
converter = Converter(path_to_file, my_iterator, my_graph)
New way:
from rel2graph.utils import load_file converter = Converter(load_file(path_to_file), my_iterator, my_graph)
The converter newly only accepts schemas as a string. This allows the schema string to be generically generated. Futher the library provides a
load_file
function underrel2graph.utils
to make switching to the new api as easy as possible.Old way:
New way: