Remove reference to RO-Crate context from the JSON(LD) files #28
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.
This form of the JSON(LD) files:
Is a leftover of the first JSON files I generated when I initially wrote the Python script. The intention back then was to generate something that one could copy and paste in their
ro-crate-metadata.json
(possibly with a manual change of the RO-Crate version tag), but now we have actually valid context files that one can reference in their own context:Unfortunately the above does not work, since the RO-Crate context is referenced twice: directly and then indirectly through the workflow-run context. This makes the workflow-run context unusable with RO-Crate versions other than the hardcoded one. Even if the RO-Crate version is the same, including the RO-Crate context leads to "recursive context inclusion" crashes with rdflib. See RDFLib/rdflib#2778.
This PR modifies the context files as well as the Python script that generates them to remove the reference to the RO-Crate context, so that they can be safely referenced in RO-Crates.