ENH: Linked data rendering in additional_display
tab
#405
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #404
This PR adds a new component to render an 'additional_tab_display' with
@context
information as per json-ld format.This update stems from the work done on the SFB1451 catalog regarding the rendering of semantic information, see:
https://github.com/psychoinformatics-de/sfb1451-projects-catalog/pull/62/files.
A new async component is introduced to encapsulate any rendering of 'additional_tab_display's that have an '@context' key in their 'content' field. The component was created to remove specific implementation details related to semantics from the overall dataset page rendering (i.e. from the
dataset-template
component). This allows for future changes to the semantic tab rendering without affecting how the component is invoked.The PR also adds test data containing semantic fields, both to the
datalad_catalog/tests/data
as test data and to the demo catalog.This work can be tested locally by checking out the PR branch, installing
datalad-catalog
, running:and navigating to http://localhost:8000/#/dataset/c475969b-2919-57b1-a3e6-71770acaa222/0.1.0