Nesting vs. using references #23
Replies: 4 comments 5 replies
-
I would agree with always using an About the Kadi4Mat example specifically, after discussing it again with @jmanideep, we also agree that we should simply use the |
Beta Was this translation helpful? Give feedback.
-
@FlorianRhiem could you point me to where the missing |
Beta Was this translation helpful? Give feedback.
-
If anyone wants to take a look, the latest Kadi4Mat example (https://github.com/TheELNConsortium/TheELNFileFormat/tree/master/examples/kadi4mat) now uses a flattened form for all entities, namely authors, licenses and even the organization used for the publisher. |
Beta Was this translation helpful? Give feedback.
-
Hey @nicobrandt @FlorianRhiem , So I have done these changes: an author is now a node with an
|
Beta Was this translation helpful? Give feedback.
-
Various nodes have a relationship to other nodes, e.g. a comment will have an author, a dataset has parts, etc. These can either be represented in a nested way, e.g. like this:
or they can only contain the
@id
of another node in the graph and serve as references:The examples in the RO Crate spec use the reference form (unless I missed one?) and that form has the advantage that there can be no conflicting information for a node. However examples for elabftw and kadi4mat use the nested form, in the case of elabftw even without an "@id" so that it is difficult to detect duplicates.
Is this intentional? If yes, what is the motivation behind it? If not, could we perhaps agree on using the reference form to avoid duplicates altogether and make parsing easier, or at least require the use of an
@id
to make sure duplicates can be detected reliably?Beta Was this translation helpful? Give feedback.
All reactions