Rules for metadata.json nodes declaration #9
NicolasCARPi
started this conversation in
General
Replies: 2 comments 2 replies
-
I would try re-specify the rules:
@mikee1976 What do you think? The current Kadi4Mat examples have grandchildren in their node-hasPart? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I was working on the first version of a validator and noticed something: I also liked to put final content into hasParts but that should not happen. If this case occurs, the validator see will through an exception and fail. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So now that we have a few examples to work with and possibly some import code in our apps, we can see some issues arising.
First, let's define the logic for importing something:
@id
=>./
. Currently I don't think we care that much about the node describing the metadata cratehaveParts
which describesDatasets
If a dataset has some other files, they should be in the
hasParts
of that dataset, BUT not mentioned in thehasParts
of the root node!So A would become B in the Kadi4Mat example:
And the idea would be for the code to recursively import the stuff present in the
hasParts
of any Dataset it finds.It means that a node gets referenced only once.
My preference goes to referencing the part with only the
@id
and then there is a root node with that@id
. But having the full node in thehasParts
is also entirely valid so we should take into account both cases.Please add your comments below :)
Beta Was this translation helpful? Give feedback.
All reactions