activitystreams icon indicating copy to clipboard operation
activitystreams copied to clipboard

Incorrect JSON-LD: Missing '#' from the end of @vocab param in Core Example 2

Open TGNThump opened this issue 5 years ago • 4 comments

Please Indicate One:

  • [ ] Editorial
  • [ ] Question
  • [ ] Feedback
  • [ ] Blocking Issue
  • [x] Non-Blocking Issue

Please Describe the Issue:

https://www.w3.org/TR/activitystreams-core/#ex2-context should be

{
  "@context": {
     "@vocab": "https://www.w3.org/ns/activitystreams#",
     "ext": "https://canine-extension.example/terms/",
     "@language": "en"
  },
  "summary": "A note",
  "type": "Note",
  "content": "My dog has fleas.",
  "ext:nose": 0,
  "ext:smell": "terrible"
}

instead of

{
  "@context": {
     "@vocab": "https://www.w3.org/ns/activitystreams",
     "ext": "https://canine-extension.example/terms/",
     "@language": "en"
  },
  "summary": "A note",
  "type": "Note",
  "content": "My dog has fleas.",
  "ext:nose": 0,
  "ext:smell": "terrible"
}

as it does not expand correctly as JSON-LD without the # on the end of the @vocab context parameter.

TGNThump avatar Jul 19 '20 11:07 TGNThump

Yes. Mentioned it recently in a socialhub discussion. There seem to be some places in the spec. having the wrong namespace unfortunately. Multiple examples (also 1 or 3) …

sebilasse avatar Jun 14 '22 23:06 sebilasse

Based on this conversation and review, I've made an update to the ERRATA.md to note that this vocab value is incorrect. Please comment further on this PR:

https://github.com/w3c/activitystreams/pull/545

evanp avatar Aug 30 '23 15:08 evanp