Add very basic Playground to harden contexts.#81
Conversation
|
@rubensworks I wrote this because I'm finding many projects use a very high number of CURIEs in their context files (presumably primarily for the typing convenience). I found this library extremely helpful to quickly "harden" a context to use full URLs and thereby avoid the "risk" of CURIEs being used in the content. The risk being that the term space remains wide open, so people using a context that uses them have the "freedom" to mint their own terms beyond what was expected/intended by the context. This may not be of concern in many scenarios (like the SEO use case where "failing" isn't fatal), but it is a concern in environments where constrained contents are a deliberate design feature--such as Verifiable Credentials, API extensions (ex: ActivityPub), and Web of Things. Essentially anywhere one might want to use the Thanks again for building this library! Cheers, |
|
Thanks @BigBlueHat, this is very useful! Would you be open to tweaking the PR so it builds the bundle in a GH workflow and deploys to GH pages? |
Are you OK if they continue to use the |
|
Sure, |
The playground is build with `petite-vue` with the parser bundled via `esbuild index.ts --format=esm --bundle --outfile=docs/bundle.js` (see `npm run bundle`). The `docs/` folder is intended to be hosted via GitHub Pages.
Sorry that took a bit! Hopefully the provide workflow does what you need! Completely untested at this point...just FYI. |
Coverage Report for CI Build 24574374751Coverage remained the same at 99.85%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
The playground is build with
petite-vuewith the parser bundled viaesbuild index.ts --format=esm --bundle --outfile=docs/bundle.jsThe
docs/folder is intended to be hosted via GitHub Pages.Here's a demo hosted via GitHub Pages on my fork: https://bigbluehat.github.io/jsonld-context-parser.js/
Relates to w3c/json-ld-bp#19