Skip to content

Add a json-ld playground - #18

Merged
xavierlacot merged 3 commits into
mainfrom
feat/json-ld-playground
Nov 23, 2026
Merged

xavierlacot merged 3 commits into
mainfrom
feat/json-ld-playground

Conversation

@xavierlacot

@xavierlacot xavierlacot commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Add a JSON-LD playground to the demo website, next to the validator, to run the W3C algorithms (expand, compact, flatten, frame, to RDF, from RDF) in the browser with the library compiled to WebAssembly.

The validator result moves to its own page, /validator/, whose frame shows before PHP answers. Also, it now validates the document again as it is typed.

Both tools write their document in the URL fragment, so a result can be shared as a link, and the menu opens each tool with the document of the other.

Checklist

  • Tests pass (castor qa:phpunit:run)
  • Coding standards applied (castor qa:cs)
  • Static analysis passes (castor qa:phpstan)
  • Tests added or updated for the change
  • Documentation updated if needed

@xavierlacot xavierlacot changed the title Feat/json ld playground Add a json-ld playground Nov 23, 2026
@xavierlacot
xavierlacot merged commit 87533d5 into main Nov 23, 2026
6 checks passed
@xavierlacot
xavierlacot deleted the feat/json-ld-playground branch November 23, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant