w3c / json-ld-syntax

JSON-LD 1.1 Specification
https://w3c.github.io/json-ld-syntax/
Other
112 stars 22 forks source link

@vocab's presence causes @foo in a value object to fail, otherwise it doesn't #259

Closed azaroth42 closed 4 years ago

azaroth42 commented 5 years ago

The following fails, as expected, but only due to the presence of @vocab.

{
  "@context": {
     "@vocab": "https://schema.org/"
  },
  "name": {
    "@value": "fish",
    "@language": "en",
    "@direction": "ltr"
  }
}

However the following ignores the @direction property:

{
  "@context": {
     "name": "https://schema.org/name"
  },
  "name": {
    "@value": "fish",
    "@language": "en",
    "@direction": "ltr"
  }
}

This bug exists in both JSON-LD 1.0 and 1.1

iherman commented 4 years ago

This issue was discussed in a meeting.