How to remodel hierarchical data as flat relationships with Datomic/Datascript?

See these related topics:

As an alternative to the proposed solutions, you could also store each node under its own key in the element model: :element/node_1, :element/node_2, etc … and use :element/kind to guide you in determining what are the keys to look for. Then you might want to write some rules or generators to directly use arrays in your queries.

Oh and this: http://www.hypergraphdb.org/

1 Like