w3c / activitystreams

Activity Streams 2.0
https://www.w3.org/TR/activitystreams-core/
Other
276 stars 60 forks source link

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

Open TGNThump opened 3 years ago

TGNThump commented 3 years ago

Please Indicate One:

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.

sebilasse commented 2 years ago

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) …

evanp commented 10 months ago

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