Title: Support both @view sugar AND explicit ui:view predicate · Issue #4 · JavaScriptSolidServer/solid-shim · GitHub
Open Graph Title: Support both @view sugar AND explicit ui:view predicate · Issue #4 · JavaScriptSolidServer/solid-shim
X Title: Support both @view sugar AND explicit ui:view predicate · Issue #4 · JavaScriptSolidServer/solid-shim
Description: Summary Support @view as built-in JSON-LD syntax in solid-shim, expanding to the jsonld:view predicate. Live Implementation 🚀 See it working: https://jsonos.com/examples/ Background @view should work like @type - zero context required: {...
Open Graph Description: Summary Support @view as built-in JSON-LD syntax in solid-shim, expanding to the jsonld:view predicate. Live Implementation 🚀 See it working: https://jsonos.com/examples/ Background @view should wo...
X Description: Summary Support @view as built-in JSON-LD syntax in solid-shim, expanding to the jsonld:view predicate. Live Implementation 🚀 See it working: https://jsonos.com/examples/ Background @view should wo...
Opengraph URL: https://github.com/JavaScriptSolidServer/solid-shim/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support both @view sugar AND explicit ui:view predicate","articleBody":"## Summary\n\nSupport `@view` as built-in JSON-LD syntax in solid-shim, expanding to the `jsonld:view` predicate.\n\n## Live Implementation\n\n🚀 **See it working:** https://jsonos.com/examples/\n\n## Background\n\n`@view` should work like `@type` - zero context required:\n\n```json\n{\n \"@context\": {\"schema\": \"http://schema.org/\"},\n \"@type\": \"schema:Person\",\n \"@view\": \"https://example.com/panes/person.js\",\n \"schema:name\": \"Alice\"\n}\n```\n\nJust like `@type` expands to `rdf:type`, `@view` should expand to `jsonld:view`.\n\n## Implementation\n\nWhen parsing JSON-LD, solid-shim should:\n\n1. Recognize `@view` as a reserved keyword\n2. Expand it to `http://www.w3.org/ns/json-ld#view`\n3. Store the triple: `\u003csubject\u003e jsonld:view \u003cviewUrl\u003e`\n\n```javascript\n// In parseJsonLdToStore or similar\nif (data['@view']) {\n const VIEW = $rdf.Namespace('http://www.w3.org/ns/json-ld#')\n store.add(subject, VIEW('view'), $rdf.sym(data['@view']))\n}\n```\n\n## Semantic Equivalence\n\nFor interop with Solid's ui vocabulary:\n\n```turtle\njsonld:view owl:equivalentProperty ui:view .\n```\n\nThis means queries for either predicate should match.\n\n## Why `jsonld:view`?\n\n- JSON-LD native namespace\n- W3C controlled\n- Clear path to standardization\n- Bridges to `ui:view` via equivalentProperty\n\n## Related\n\n- json-os/json-os.github.io#1 - The `@view` proposal\n- Current mashlib.min.js already handles `@view` for pane dispatch","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-01-06T22:34:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4/solid-shim/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c37444ac-5fe5-1b66-ec56-61b719a18d3e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DAF4:83DE7:E20990E:125D2B13:697730D7 |
| html-safe-nonce | 0d240c5eee6301fbb8d3f74574c5e6ce6b29a9ba1cd9b66df92109e5dbae4c91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUY0OjgzREU3OkUyMDk5MEU6MTI1RDJCMTM6Njk3NzMwRDciLCJ2aXNpdG9yX2lkIjoiODA5NDYyNzg4ODQ3NDA0MjU4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9d99fb5e6788215a3de4b65abb0d3a4a774b1f02243b2054b15b2667dc7a69e6 |
| hovercard-subject-tag | issue:3786744395 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/solid-shim/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe7f3aa29c5eae5ecf0675a940fe5198d69ee9ceb8a1ec4f07d6ce6b36f27947/JavaScriptSolidServer/solid-shim/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe7f3aa29c5eae5ecf0675a940fe5198d69ee9ceb8a1ec4f07d6ce6b36f27947/JavaScriptSolidServer/solid-shim/issues/4 |
| og:image:alt | Summary Support @view as built-in JSON-LD syntax in solid-shim, expanding to the jsonld:view predicate. Live Implementation 🚀 See it working: https://jsonos.com/examples/ Background @view should wo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/solid-shim git https://github.com/JavaScriptSolidServer/solid-shim.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 1125206031 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/solid-shim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1125206031 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/solid-shim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width