ontodev/gizmos

'export_terms' should return a list of dicts, not a string

Closed this issue · 2 comments

Currently export.export_terms returns the string output in the desired format. This is nice for the CLI, but as a library (especially for my use), it would be much better to return a list of dicts. This is the format that I end up turning the string into anyway.

After looking at the code, it might be a little more difficult to separate out than I thought. I can rewrite it, or we can add a JSON export format (which will be much quicker).

export.get_term_details actually returns what I need, so I'm going to close this for now.