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 JSON-LD Context Document for Data Package #874

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

nichtich
Copy link
Contributor

This adds a JSON-LD context for data-package.json with unit test as started to discuss on #869.

@dafeder
Copy link
Contributor

dafeder commented Apr 25, 2024

This seems like a good first step but I would think it's of limited usefulness without a namespace for data package itself so that the properties and classes that do not come from other vocabularies can be referenced elsewhere? But maybe outside the scope of this issue?

@nichtich
Copy link
Contributor Author

The JSON-LD Context does not cover all elements because not all have been mapped to RDF. Limitations are mentioned in README.md. I'd prefer to start with a 80% solution than aiming for 100% first.

@roll
Copy link
Member

roll commented May 7, 2024

@nichtich
Great! But as a user, how can I use it? What is the use case and the way to discover it cc @peterdesmet

@nichtich
Copy link
Contributor Author

nichtich commented May 8, 2024

The JSON-LD context is used to generate RDF from a Data Package file. Authors of package files should include a reference to it via key @context. This first requires an official location where to host the context file. People using RDF will know how to make use of it but I can also write a short tutorial if needed to show how an example Data Package is represented in RDF. The general use case is data integration: having multiple Data Packages in RDF merged into one graph it's possible to query e.g. all packages by same publisher.

Copy link
Contributor

@dafeder dafeder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some language cleanup suggestions 😃

schemas/context/README.md Outdated Show resolved Hide resolved
@roll
Copy link
Member

roll commented May 13, 2024

@nichtich
Shall it be mentioned somewhere in the user-facing part of the site?

@nichtich
Copy link
Contributor Author

The schema should be referenced from https://specs.frictionlessdata.io/data-package/ but this should better be done after publication of the context document at https://specs.frictionlessdata.io/. I guess this requires some addition to build.js. Better do it step by step, starting with this pull request.

@roll roll merged commit 2e24c6a into frictionlessdata:master Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants