Skip to content

Getting key-value-pairs from the context. #241

@AndreasMeier12

Description

@AndreasMeier12

I am working with an RO-Crate that has key value pairs in the context. I am using version 1.1 of this library.

I cannot find a way to access them. Internally, they are kept in the CrateMetadataContext, I don't see any method returning this type.
Specifically, I am looking at this particular Ro-Crate.
This is a pared down example of what the ro-crate-metadata.json looks like:

{
  "@context": [
    "https://w3id.org/ro/crate/1.1/context",
    {

      "scicat": "_:"
    }
  ],
  "@graph": []
}

I would like to read the pair "scicat": "_:" out of the context.
Is there a way of doing this without getting the CrateMetadataContext directly?
It's possible to extract this from the JsonMetaData but I wouldn't say no to a more convenient way.

If not would it be possible to add this functionality?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions