json-ld.org icon indicating copy to clipboard operation
json-ld.org copied to clipboard

How to provide context file for a @context value that is a DID

Open jandrieu opened this issue 10 months ago • 1 comments

The btc1 work plans on using a DID for its context value, which I'm convinced will cause the playground to fail.

Is there a way to "pre-load" a context file for a DID? Since we are expecting that getting the playground to support dereferencing an arbitrary DID to be a bit more challenging.

jandrieu avatar Mar 04 '25 15:03 jandrieu

The playground is not that smart yet. I've had such a feature in mind for years, but haven't gotten around to it. The document loader should chain through some steps and both map from URL to URL, and URL to static data, then fallback to regular browser network load. The sharing UI for that might get awkward though. Perhaps need to fix/improve the gist (or similar) support since serializing static docs into a URL to pass around might not work so well.

Hacking on the site right now is difficult so I'm not sure anyone wants to tackle this sort of feature until we update the site and change playground to use modern tooling of some sort. But if someone wants to try, go ahead.

davidlehn avatar Mar 04 '25 16:03 davidlehn