Open Pfeil opened 9 months ago
The playground and HTML examples work for me. Will need more details on what's not working to help.
As far as how they work:
documentLoader
option, which has special handling for http://schema.org/
to rewrite it to https
to avoid browser security restrictions.
documentLoader
.http
server (python3 -m http.server
). If you loaded from a https
server you would need to use a documentLoader to handle the http
URLs as https
or similar such fixes.)http[s]://schema.org/
, they use a Link
header to get processors to load JSON-LD:
link: </docs/jsonldcontext.jsonld>; rel="alternate"; type="application/ld+json"
Hi, not sure what I am doing wrong; isn't this example (representing this one) supposed to work? It also happens with compact and probably also other algorithms. Flatten works for me. Is this access really needed? How does the playground avoid it? The playground seems to use version 8.3.1, so is this example. Is there a configuration option I missed? I tried them without success so far. I also do not quite understand their meaning in every case. Furthermore, I also tried to set the Origin request header (attached below) manually without success so far, but I wouldn't know how to ask jsonld.js to set it in any case.
(probably related to https://github.com/digitalbazaar/jsonld.js/issues/451 somehow?)
Resulting request headers:
Resulting response headers:
No response body.