activitystreams
activitystreams copied to clipboard
Incorrect JSON-LD: Missing '#' from the end of @vocab param in Core Example 2
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.
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) …
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