w3c / json-ld-framing

JSON-LD 1.1 Framing Specification
https://w3c.github.io/json-ld-framing/
Other
24 stars 20 forks source link

Correction for 2.3.2 Explicit inclusion flag #72

Closed AtesComp closed 4 years ago

AtesComp commented 4 years ago

The documentation for the exclusion flag lists Example 12 with the pair "creator": "Plato",. However, the exclusion flag should have removed this pair. The playground produces the following corrected output on the Example 3 input and Example 11 framing:

{
  "@context": {
    "@vocab": "http://example.org/"
  },
  "@graph": [
    {
      "@id": "http://example.org/library",
      "@type": "Library",
      "contains": {
        "@id": "http://example.org/library/the-republic",
        "@type": "Book",
        "contains": {
          "@id": "http://example.org/library/the-republic#introduction",
          "@type": "Chapter",
          "description": "An introductory chapter on The Republic.",
          "title": "The Introduction"
        },
        "title": "The Republic"
      },
      "description": null
    }
  ]
}
AtesComp commented 4 years ago

Err... There is no link from the 2018 documentation to the latest 2019 draft. Closing as the 2019 draft contains the correction.