w3c / json-ld-syntax

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

Example 63 is still hard to understand #248

Closed azaroth42 closed 4 years ago

azaroth42 commented 5 years ago

I know that this was the original example, as submitted, but the use of "fred" as a property rather than a resource makes it more complicated than necessary to see what is going on.

Changing it slightly to follow the previous examples of social networking would help with comprehension:

{
  "@context": {
    "@base": "http://example1.com/",
    "@vocab": "http://example2.com/",
    "knows": {"@type": "@vocab"}
  },
  "knows": [
    {"@id": "barney", "name": "barney"},
    "barney"
  ]
}

And similar through to example 65