json-ld / json-ld.org

JSON for Linked Data's documentation and playground site
https://json-ld.org/
Other
856 stars 152 forks source link

Playground hangs doing expansion #722

Closed azaroth42 closed 4 years ago

azaroth42 commented 4 years ago

From https://github.com/IIIF/api/issues/1929

This document:

{
  "@context": "http://iiif.io/api/presentation/3/context.json",
  "id": "https://example.org/iiif/book1/annotation/p0001-image",
  "type": "Annotation",
  "motivation": "painting",
  "body": {
    "id": "https://example.org/iiif/book1/page1/full/max/0/default.jpg",
    "type": "Image",
    "label": { "en": [ "Page 1" ], "es": [ "Página 1" ] },
    "format": "image/jpeg",
    "service": [
      {
        "id": "https://example.org/iiif/book1/page1",
        "type": "ImageService3",
        "profile": "level2"
      }
    ],
    "height": 2000,
    "width": 1500
  },
  "target": "https://example.org/iiif/book1/canvas/p1"
}

causes the playground to hang.

Not sure if its due to the type scoped context, which is then overridden, or some other cause:

    "Annotation": {
      "@id": "oa:Annotation",
      "@context": [
        "http://www.w3.org/ns/anno.jsonld",
        {
          "label": {
            "@id": "rdfs:label",
            "@container": ["@language", "@set"],
            "@context": {
              "none": "@none"
            }
          }          
        }
      ]
    }
gkellogg commented 4 years ago

One of the recent fixes, yet to be deployed IIRC deals with infinite recursion in context loading. @davidlehn would know, and presumably will redeploy once all 1.1 PRs have been completed.

davidlehn commented 4 years ago

Playground updated with jsonld.js 3.1.0 which should fix the issue.

gkellogg commented 4 years ago

Working now.