jkminder / data2neo

Data2Neo is a library that simplifies the conversion of data in relational format to a graph knowledge database.
https://data2neo.jkminder.ch
Apache License 2.0
14 stars 0 forks source link

Converter string schema #9

Closed jkminder closed 2 years ago

jkminder commented 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.

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)