-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accept and render JSON-LD metadata #341
Comments
Another idea: The schema can accept additional fields without failing to validate. This means that metadata containing new fields can be passed to the catalog without having to update the catalog schema. If e.g. an extra property For example, let's say we have
then the agent creating this metadata item could also include another property
Both |
Relatedly, the whole context of the original metadata item before it was translated into the catalog schema could also be passed to the catalog as part of the metadata record, e.g. in the property |
I think "sample (organism)" and similar are the natural candidate for this approach. Here, we were starting with either a code (NCBITaxon:9237) or an equivalent IRI (http://purl.obolibrary.org/obo/NCBITaxon_9237). AFAIK, the current "additional display" can only show strings (or repr of an object, which is still a string). I found no way to display an URL. FTR, "Adelie penguin (Pygoscelis adeliae; NCBITaxon_9238)" was created from "NCBITaxon:9238" by a basic request-response API query to Ontology Lookup Service while translating incoming data to catalog schema. I think catalog should not do any such queries, but it could allow displaying URLs as links. Maybe we could have a way to pass a (specifically formatted?) object containing text and url to additional display that would be rendered as a hyperlink? |
Some of this is now addressed with #347. Although indeed, URLs will still not render as links. I agree we should get that to work. There are two ways of approaching it:
|
I do however think it might be a nifty feature for a user to be able to query the definition of a term instead of (or in addition to) being presented with an uninformative link. This doesn't have to happen automatically, rather after specific user input, e.g. clicking on an info icon. |
The following issue cannot be transferred here, but is highly applicable in that it started discussing thoughts of catalog rendering from a semantic data view: sfb1451/metadata-catalog#46 |
Relevant issue related to |
This has since been incorporated into the main branch of this repo. In addition, I think it would be useful for existing catalog instances to have a new and separate field in the dataset schema, something like "semantic properties", somewhat similar to the "relation" field used in datalad-concepts. This would be a good place for any property of the dataset that can be expressed semantically and is typically some relation, e.g. "sameas", "homepage", "study field" |
It would be ideal if datalad's whole metadata handling and rendering stack could work with JSON-LD data in a seamless way.
An example use-case is the tabby-to-catalog pipeline: if we have JSON-LD records coming out of
tabby
files, how do we handle these records in order to have the rich semantic information rendered sensibly in a catalog?Let's use the current catalog schema, here a part of the specific schema for a dataset, as an example to work from:
The dataset schema has several properties that can be contained in an incoming metadata record, and a minimal amount of properties are required. There are properties that expect specific fields and formats (e.g.
author
, which should havegivenName
,familyName
, etc) and there are properties that can receive generic key-value pairs (e.g.additional_display
andtop_display
).How should we approach updates to such a schema in order to allow JSON-LD data through
Idea 1
If we want to define catalog schema terms ourselves, i.e. turn it into a semantic schema, we could for example add a
definition
field to each property which would contain a definition URL from some accessible ontology.Idea 2
We could add another generic key-value property to the schema, something like
semantic_metadata
, which would allow for passing the term definitions along with the key and value, for multiple records. This could then get a dedicated display area in a catalog's dataset page.Idea 3
Perhaps the catalog should somehow evolve into something that can just interpret and render any JSON-LD document, or at least those adhering to some convention as described by a given context. This whole concept needs further exploration, and possible a paradigm shift in terms of how metadata is added to a catalog and rendered by it.
The text was updated successfully, but these errors were encountered: