Closed jmfernandez closed 11 months ago
Right now, it is possible to add additional terms from other contexts to the top level contexts through the attached Metadata instance, using the extra_terms dictionary:
Metadata
extra_terms
a_crate = ROCrate(gen_preview=False) a_crate.metadata.extra_terms.update( { "sha256": "https://w3id.org/ro/terms/workflow-run#sha256" } )
which leads to
{ "@context": [ "https://w3id.org/ro/crate/1.1/context", { "sha256": "https://w3id.org/ro/terms/workflow-run#sha256" } ], "@graph": [
but there is no method nor provision in the current implementation to add additional contexts, in order to get something like:
{ "@context": [ "https://w3id.org/ro/crate/1.1/context", "https://w3id.org/ro/terms/workflow-run" ], "@graph": [
Could you add such method, please?
Thanks!
Right now, it is possible to add additional terms from other contexts to the top level contexts through the attached
Metadata
instance, using theextra_terms
dictionary:which leads to
but there is no method nor provision in the current implementation to add additional contexts, in order to get something like:
Could you add such method, please?