Skip to content
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

add schema.org and DCAT in the context? #12

Open
sharifX opened this issue May 3, 2024 · 2 comments
Open

add schema.org and DCAT in the context? #12

sharifX opened this issue May 3, 2024 · 2 comments
Assignees
Labels

Comments

@sharifX
Copy link
Collaborator

sharifX commented May 3, 2024

some of the examples include terms from schema.org and DCAT
temporalCoverage https://schema.org/temporalCoverage
temporalResolution https://www.w3.org/TR/vocab-dcat-2/#Property:dataset_temporal

should these be in the context?

@stain
Copy link

stain commented Jul 9, 2024

temporalCoverage is in https://www.researchobject.org/ro-crate/1.1/context.jsonld but temporalResolution is only in DCAT.

@juliancervos
Copy link
Collaborator

Most terms from Schema.org are included in the RO-Crate context, so that shouldn't be a problem. I guess the newest terms added to Schema.org might be missing. @stain, do you know how or when newer terms are added to the RO-Crate context?

For other terms not included in the RO-Crate context, such as DCAT, you can add them to the JSON-LD context like this:

{
  "@context": [ 
    "https://w3id.org/ro/crate/1.1/context",
    {"temporalResolution": "https://www.w3.org/ns/dcat#temporalResolution"},
  ],
  "@graph": [
    {
      "@id": "...",
      "temporalResolution": "...",
    }
  ]
}

See this page from the docs for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants