You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When browsing to an HTML page like https://jsonos.com/examples/organization.html, the browser shows nothing because rdflib's Fetcher doesn't extract JSON-LD data islands from HTML responses.
Renders with appropriate pane (or @view if specified)
Background
JSON-LD data islands are part of the JSON-LD spec and widely used (Google's structured data, schema.org markup, etc.). The browser should handle them natively.
Proposed Solution
Hook into rdflib's Fetcher or add a custom handler:
// When fetching a URLconstresponse=awaitfetch(url)constcontentType=response.headers.get('content-type')if(contentType?.includes('text/html')){consthtml=awaitresponse.text()constdoc=newDOMParser().parseFromString(html,'text/html')constjsonLdScript=doc.querySelector('script[type="application/ld+json"]')if(jsonLdScript){constdata=JSON.parse(jsonLdScript.textContent)parseJsonLdToStore(data,url,store)// Render with @view or type-based pane}}
Result: Works functionally, but causes noticeable loading delays even with:
2s timeout via AbortController
Only triggering for .html URLs
Conclusion: This needs to be done properly in solid-shim by hooking into the Fetcher, so it's part of the normal data loading flow rather than an extra fetch.
Activity
melvincarvalho commentedon Jan 6, 2026
Attempted browser-side fix
Tried implementing this directly in the jsonos browser by intercepting
go():Result: Works functionally, but causes noticeable loading delays even with:
.htmlURLsConclusion: This needs to be done properly in solid-shim by hooking into the Fetcher, so it's part of the normal data loading flow rather than an extra fetch.
Reverted in json-os/json-os.github.io@aedba90