Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

JSON-LD context for datapackage.json #869

Closed
nichtich opened this issue Jan 17, 2024 · 4 comments
Closed

JSON-LD context for datapackage.json #869

nichtich opened this issue Jan 17, 2024 · 4 comments

Comments

@nichtich
Copy link
Contributor

This has been discussed in #218 but the discussion is quite old and we should better separate JSON-LD context for Data Package because its easier to solve. In short we have 14 fields, some of which can be mapped directly to RDF. The RDF properties should be aligned with DCAT ontology because DCAT and Data Package have large overlap in their use case, so a JSON-LD context for datapackage.json would allow to serve both from one data source.

First draft of a mapping of Data Package to RDF:

  • homepage = foaf:homepage
  • id = dct:identifier
  • image = foaf:img
  • title = dct:title
  • contributors = dct:contributor (also mentioned in DCAT) a foaf:Agent
    • title = foaf:name ?
    • path = foaf:homepage ?
    • email = foaf:mbox
    • role = ?
    • organization = ?
  • created = dct:created (also mentioned in DCAT)
  • description = dct:description
  • keywords = dct:keyword
  • licenses = dct:license
    • name can be converted to an URI
    • path = foaf:homepage ?
    • title = dct:title ?
  • name = foaf:name ?
  • profile should not be included
  • resources does not need to be included until there is a JSON-LD context for Data Resource (another issue, can be done later)
  • sources = prov:wasDerivedFrom ?
    • title = dct:title
    • path = URI or homepage of the source?
    • email = foaf:mbox ?
  • version = dct:version
@roll
Copy link
Member

roll commented Jan 25, 2024

@nichtich
Copy link
Contributor Author

have you seen this work bootstrapped on the implementation level

Thanks! How come the list of properties differs from https://datapackage.org/specifications/data-package/?

@roll
Copy link
Member

roll commented Jan 26, 2024

@nichtich
That's the DCAT model and the mapper to/from the Data Package model - https://github.com/frictionlessdata/dplib-py/blob/main/dplib/models/package/package.py

@nichtich
Copy link
Contributor Author

As mentioned in README.md of the pull request, local file pathes cannot be mapped to RDF resources. At least the root level id element must hold an URI instead any "globally unique identifier". The UUID example b03ec84-77fd-4270-813b-0c698943f7ce could be written as urn:uuid:b03ec84-77fd-4270-813b-0c698943f7ce to fulfill this requirement.

@frictionlessdata frictionlessdata locked and limited conversation to collaborators Oct 21, 2024
@roll roll converted this issue into discussion #1025 Oct 21, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants