Open marcolarosa opened 3 years ago
Yes please. I always forget to index()
and freak out
I am thinking about a v2 library that actually builds a linked (circular not tree) data structure on ingest - it would keep track of what items it already has in a object (the index) and would thus automatically index a crate on start up. Code that consumes crates such as renderers could be made much simpler as all values would be arrays of either strings or other items.
In the short term there's probably not that much harm in automatically indexing except a performance penalty on software that does an index - so if you go fix the other tools of ours like ro-crate-html-js etc I say go for it!
When instantiating an ROCrate object if a json structure is passed in can the index method be triggered automatically?