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

Update JSON-LD to 1.1? #47

Closed
azaroth42 opened this issue Sep 21, 2021 · 5 comments
Closed

Update JSON-LD to 1.1? #47

azaroth42 opened this issue Sep 21, 2021 · 5 comments

Comments

@azaroth42
Copy link

W3C.REC-json-ld-20140116 --> W3C.REC-json-ld11-20200716

If you then use the scoped context feature from 1.1, it would be possible (I believe without having actually done the definition) to avoid the confusion for linkset used in different parts of the document structure. Happy to help with the context definition if that would be useful.

@azaroth42
Copy link
Author

Here it is:

  "@context": {
    "@version": 1.1,
    "@vocab": "http://ietf.org/relation/",
    "dcterms": "http://purl.org/dc/terms/",
    "linkset": {"@id": "@graph", "@context": {"linkset": "linkset"}},
    "anchor": "@id",
    "href": "@id",
    "language": "@language",
    "value":    "@value",
    "author": "dcterms:creator",
    "title": "dcterms:title",
    "title*": "dcterms:title",
    "type": "dcterms:format",
    "datetime": "dcterms:date",
    "hreflang": {
      "@id":        "dcterms:language",
      "@container": "@set"
    }
  },

And an example in the json-ld playground

@hvdsomp
Copy link
Collaborator

hvdsomp commented Sep 21, 2021

Thanks a lot @azaroth42. We will follow your guidance when updating Appendix A as described in #45. And we'll add you to the Acknowledgments, of course!

hvdsomp added a commit that referenced this issue Oct 5, 2021
Reworked Appendix A with a new example that does not leverage IANA-registered link relation types as per the discussion in #45. Also adding the JSON-LD 1.1 solution to the problem of not being able to use "linkset" links in link sets when mapping to JSON-LD as provided by @azaroth42 in #47. Unfortunately, as things stand with not being able to express IANA-registered link relation types as HTTP URIs (see also #45) it will not be possible to use "linkset" links (or any other IANA-registered link types) in link sets that need to be mapped to JSON-LD until a solution is found with that regard.
@hvdsomp
Copy link
Collaborator

hvdsomp commented Oct 5, 2021

Addressed in 0838136

@philarcher
Copy link

Propose this issue be closed as it's been dealt with

@hvdsomp
Copy link
Collaborator

hvdsomp commented Oct 7, 2021

@hvdsomp hvdsomp closed this as completed Oct 7, 2021
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

No branches or pull requests

3 participants