-
I got the JSON-LD meta-data for a number of dandisets from the API. Let's say I want to find dandisets that are about I can get the assets for a dandiset from the API and convert them with reproschema to JSON-LD or something similar. For dandiset 000004 example IDs will look like this: dandiset: Since neither contains the other's ID anywhere I think that when I feed them into my triple store they will be two unconnected graphs. What would be the intended way to connect them in a way that would allow me to answer the above question? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
we are adding a little collection file on publish (this just got merged), and we would be doing something similar in pushing draft metadata to a triplestore. here is the relevant issue: dandi/dandi-archive#399 you could temporarily, do the same for any assets you download. here is the relevant code in the api: https://github.com/dandi/dandi-api/blob/627eb4d617a9158c610cb59a0d4cb307833367ca/dandiapi/api/manifests.py#L93 effectively this information is there when you retrieve all the assets through the assets endpoint of a dandiset. also the metadata you receive from the api server for any asset or dandiset should already be jsonld, so you should not technically need to do any conversion. |
Beta Was this translation helpful? Give feedback.
we are adding a little collection file on publish (this just got merged), and we would be doing something similar in pushing draft metadata to a triplestore.
here is the relevant issue: dandi/dandi-archive#399
you could temporarily, do the same for any assets you download. here is the relevant code in the api: https://github.com/dandi/dandi-api/blob/627eb4d617a9158c610cb59a0d4cb307833367ca/dandiapi/api/manifests.py#L93
effectively this information is there when you retrieve all the assets through the assets endpoint of a dandiset. also the metadata you receive from the api server for any asset or dandiset should already be jsonld, so you should not technically need to do any conversion.