Simple static SPARQL query page using @sib-swiss/sparql-editor and a custom examples sidebar.
The editor is configured for:
https://linked.rism.io/api
- Add query files to
examples/with extension.rq. - First non-empty line must be:
# Title: Your Example Title
- Remaining file content is used as query text.
- Compile examples:
./scripts/compile-examples.shThis generates examples.json, which the page loads at runtime.
After generating examples.json, serve the folder with a local web server:
python -m http.serverThen open http://localhost:8000.
- This implementation intentionally does not use the
examples-repositoryfeature fromsparql-editor. - Sidebar actions:
Load: inserts query into the editor as a new tab.Copy: copies query text to clipboard.