Title: Profile emits bare 'Multikey' type — resolves to
Open Graph Title: Profile emits bare 'Multikey' type — resolves to
X Title: Profile emits bare 'Multikey' type — resolves to
Description: Surfaced after #416 fixed the JSON-LD → Turtle conversion to actually emit nested verificationMethod resources. Now that the VM block IS in the Turtle output, the bug in how the type is authored becomes visible. Symptom The on-disk profi...
Open Graph Description: Surfaced after #416 fixed the JSON-LD → Turtle conversion to actually emit nested verificationMethod resources. Now that the VM block IS in the Turtle output, the bug in how the type is authored be...
X Description: Surfaced after #416 fixed the JSON-LD → Turtle conversion to actually emit nested verificationMethod resources. Now that the VM block IS in the Turtle output, the bug in how the type is authored be...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/417
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Profile emits bare 'Multikey' type — resolves to \u003cpod>/profile/Multikey instead of cid:Multikey","articleBody":"Surfaced after #416 fixed the JSON-LD → Turtle conversion to actually emit nested verificationMethod resources. Now that the VM block IS in the Turtle output, the bug in how the type is authored becomes visible.\n\n## Symptom\n\nThe on-disk profile (e.g. `test.solid.social/profile/card.jsonld`) declares the verificationMethod's class as a bare `\"Multikey\"` string:\n\n```json\n\"verificationMethod\": [{\n \"id\": \".../card.jsonld#nostr-key-1\",\n \"type\": \"Multikey\",\n \"controller\": \".../card.jsonld#me\",\n \"publicKeyMultibase\": \"fe70102de7ec...\"\n}]\n```\n\nThe profile's `@context` defines `verificationMethod`, `publicKeyMultibase`, `controller`, etc. as terms — but NOT `Multikey`. So the converter (`src/rdf/turtle.js`) can't expand `\"Multikey\"` to a full IRI; it emits a relative IRI:\n\n```turtle\n\u003c.../card.jsonld#nostr-key-1> a \u003cMultikey>;\n cid:controller \u003c.../card.jsonld#me>;\n cid:publicKeyMultibase \"fe70102de7ec...\".\n```\n\n## Resolution\n\nPer RFC 3986, a Turtle parser with no `@base` directive uses the document's request URL as the base. `\u003cMultikey>` relative to `https://test.solid.social/profile/card.jsonld` resolves to:\n\n```\nhttps://test.solid.social/profile/Multikey\n```\n\n(verified: `new URL('Multikey', 'https://test.solid.social/profile/card.jsonld').href`)\n\nIntended IRI: `https://www.w3.org/ns/cid/v1#Multikey`.\n\n## Consequences\n\n- **Type queries miss**: VC validators / SPARQL endpoints querying `?s a cid:Multikey` will not find this key. The triple is `\u003c#nostr-key-1> rdf:type \u003chttps://test.solid.social/profile/Multikey>` — a fictional class on the pod's own host.\n- **Cross-pod inconsistency**: the same key on `alice.example.com` vs `bob.example.com` would emit different \"class\" IRIs (`alice.example.com/profile/Multikey` vs `bob.example.com/profile/Multikey`) — same key, two classes, no interop.\n- **Surface noise**: a generic crawler dereferencing the `Multikey` IRI hits the pod's `/profile/Multikey` (404, but logged).\n- **Spec non-compliance**: W3C CID v1 + LWS 1.0 (FPWDs 2026-04-23) require the type be the canonical `https://www.w3.org/ns/cid/v1#Multikey`. Same gap for `JsonWebKey` if/when those VMs ship.\n\n## Cause\n\nThe profile emitter (probably `src/webid/profile.js` and the seed code in `src/handlers/container.js` / `src/server.js`) writes `type: \"Multikey\"` as a bare term, expecting context expansion that the context doesn't provide.\n\n## Fix options\n\nA. **Emit pre-prefixed CURIE in the JSON-LD source**:\n```json\n\"type\": \"cid:Multikey\"\n```\nSmallest change. Works because the @context already maps `cid: https://www.w3.org/ns/cid/v1#`. Equally readable to humans.\n\nB. **Add `Multikey` (and `JsonWebKey`) as terms in the @context**:\n```json\n\"@context\": {\n ...,\n \"Multikey\": \"cid:Multikey\",\n \"JsonWebKey\": \"cid:JsonWebKey\"\n}\n```\nLets future profile-writers keep using the bare class names. More verbose context.\n\nC. **Both** — emit CURIE AND map the term, so any consumer (RDF parser via Turtle, JSON-LD processor) sees a clean class IRI regardless of which path it takes.\n\n(A) is the cheapest correct fix. (C) is the most defensive.\n\n## Acceptance test\n\nAfter the fix:\n\n```bash\ncurl -s -H 'Accept: text/turtle' https://test.solid.social/profile/card.jsonld\n```\n\nmust contain:\n\n```turtle\n\u003c.../card.jsonld#nostr-key-1> a cid:Multikey;\n ...\n```\n\n— with `cid:` (or full `\u003chttps://www.w3.org/ns/cid/v1#Multikey>`) — never a bare `\u003cMultikey>`.\n\n## Refs\n\n- #416 — the Turtle converter fix that made this visible (closed/merged)\n- #386, #319 — LWS 1.0 alignment (parent of this gap)\n- W3C CID v1 — `https://www.w3.org/ns/cid/v1`, `Multikey` class\n- Profile emission: likely `src/webid/profile.js`, `src/handlers/container.js`","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-10T09:55:04Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/417"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:43a157f2-009b-82cc-57c7-0da4fe4c483f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BCC:D405E:11C3C70:168CE5B:6B0390F3 |
| html-safe-nonce | 92691cfcfb21452af68f1c7de280c24d51bc7f6799577580b378ac41af3de09c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkNDOkQ0MDVFOjExQzNDNzA6MTY4Q0U1Qjo2QjAzOTBGMyIsInZpc2l0b3JfaWQiOiI4NDU1MTUzNzk5ODc3ODU3NTIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5cff19cf7ac0baafd7e13cb6d02f303844e81e5768e7454150c45e3d577db777 |
| hovercard-subject-tag | issue:4415289117 |
| 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/JavaScriptSolidServer/417/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dc905a20d3f5e64f4fdb2a78f39e4f329dcbc5927aee826c70382273831c043b/JavaScriptSolidServer/JavaScriptSolidServer/issues/417 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dc905a20d3f5e64f4fdb2a78f39e4f329dcbc5927aee826c70382273831c043b/JavaScriptSolidServer/JavaScriptSolidServer/issues/417 |
| og:image:alt | Surfaced after #416 fixed the JSON-LD → Turtle conversion to actually emit nested verificationMethod resources. Now that the VM block IS in the Turtle output, the bug in how the type is authored be... |
| 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 | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width