René's URL Explorer Experiment


Title: rdf/turtle: nested verificationMethod objects dropped from Turtle output · Issue #415 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: rdf/turtle: nested verificationMethod objects dropped from Turtle output · Issue #415 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: rdf/turtle: nested verificationMethod objects dropped from Turtle output · Issue #415 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Sibling of #389 (array-context) and #390 (@type: '@json'). Surfaced when checking whether test.solid.social's JSON-LD profile and its conneg-converted Turtle form match. Symptom When a JSON-LD profile contains a predicate whose values ar...

Open Graph Description: Sibling of #389 (array-context) and #390 (@type: '@json'). Surfaced when checking whether test.solid.social's JSON-LD profile and its conneg-converted Turtle form match. Symptom When a JSON-LD prof...

X Description: Sibling of #389 (array-context) and #390 (@type: '@json'). Surfaced when checking whether test.solid.social's JSON-LD profile and its conneg-converted Turtle form match. Symptom When a ...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"rdf/turtle: nested verificationMethod objects dropped from Turtle output","articleBody":"Sibling of #389 (array-context) and #390 (`@type: '@json'`). Surfaced when checking whether `test.solid.social`'s JSON-LD profile and its conneg-converted Turtle form match.\n\n## Symptom\n\nWhen a JSON-LD profile contains a predicate whose values are **inline objects** (rather than flat IRI references), the conneg-emitted Turtle drops:\n1. The predicate triple connecting the subject to the inline objects\n2. The inline objects' own triples (their `@id`, `@type`, attributes)\n\nThe `authentication` predicate survives because it points at a flat IRI. The `verificationMethod` predicate disappears because its values are full inline-object descriptions.\n\n## Reproduction\n\nThe on-disk profile at `test.solid.social/profile/card.jsonld` contains:\n\n```json\n{\n  \"@context\": { \"...\": \"...\", \"verificationMethod\": { \"@id\": \"cid:verificationMethod\", \"@container\": \"@set\" }, \"publicKeyMultibase\": { \"@id\": \"cid:publicKeyMultibase\" }, ... },\n  \"@id\": \"https://test.solid.social/profile/card.jsonld#me\",\n  \"verificationMethod\": [{\n    \"id\": \".../card.jsonld#nostr-key-1\",\n    \"type\": \"Multikey\",\n    \"controller\": \".../card.jsonld#me\",\n    \"publicKeyMultibase\": \"fe70102de7ec...\"\n  }],\n  \"authentication\": [\".../card.jsonld#nostr-key-1\"]\n}\n```\n\nAsking JSS for Turtle:\n\n```bash\ncurl -H 'Accept: text/turtle' https://test.solid.social/profile/card.jsonld\n```\n\nreturns (excerpt):\n\n```turtle\n\u003chttps://test.solid.social/profile/card.jsonld#me> a foaf:Person, schema:Person;\n    ...\n    \u003chttps://www.w3.org/ns/cid/v1#controller> \u003c.../card.jsonld#me>;\n    \u003chttps://www.w3.org/ns/cid/v1#service> \u003c.../card.jsonld#oidc>;\n    \u003chttps://www.w3.org/ns/cid/v1#authentication> \u003c.../card.jsonld#nostr-key-1>.\n\u003chttps://test.solid.social/profile/card.jsonld#oidc> a \u003chttps://www.w3.org/ns/lws#OpenIdProvider>;\n    \u003chttps://www.w3.org/ns/cid/v1#serviceEndpoint> \u003chttps://solid.social/>.\n```\n\nNote:\n\n- ❌ No `cid:verificationMethod` predicate on `#me` at all\n- ❌ No description of `#nostr-key-1` (no `a Multikey`, no controller, no publicKeyMultibase)\n- ✅ `cid:authentication \u003c.../card.jsonld#nostr-key-1>` survives (flat IRI)\n- ✅ `cid:service \u003c.../card.jsonld#oidc>` survives, AND the `#oidc` resource IS described (because it's referenced as a flat IRI from the subject AND its description is at the top level of the doc, not nested inside `service`)\n\nSo the rule seems to be: predicates whose values are inline objects (vs. flat IRI references with the resource described at the document root) get dropped.\n\n## Why this matters\n\n- **JSS's own backend works** because the resource-side LWS10-CID verifier (`src/auth/nostr.js` / `src/auth/cid-doc-fetch.js`) requests `application/ld+json`. The CID-VM check path is unaffected.\n- **Third-party Turtle consumers** see a profile with `cid:authentication \u003c#nostr-key-1>` but ZERO triples about `#nostr-key-1`. They can't find the key material — RDF-store integrations, SPARQL endpoints, CID validators that prefer Turtle, generic Solid clients that default to text/turtle.\n- This is the \"JSON-LD and Turtle profiles match\" property that #386 / #388 (LWS 1.0 alignment) implicitly relies on. Right now they don't match for any pod with a Nostr/Schnorr verificationMethod.\n\n## Likely root cause\n\n`src/rdf/turtle.js`'s emitter probably walks the JSON-LD object's top-level keys and emits a triple per predicate-value pair, but doesn't recursively descend into inline-object values to:\n\n1. Emit the predicate referencing the inline object's `@id`\n2. Recursively emit the inline object's own triples\n\nCompare to how `service` works (and survives): the JSON-LD likely has `service: [\".../card.jsonld#oidc\"]` as a flat-IRI list AND a top-level `#oidc` block describing the service endpoint. Two parallel descriptions. The Multikey VM is only declared as an inline object inside `verificationMethod` — there's no top-level `#nostr-key-1` block to fall back to.\n\n## Possible fixes\n\nA. **Hoist + flatten on serialize**: when emitting Turtle, replace inline objects with flat IRI references AND emit a top-level resource block per inline object. This is the standard JSON-LD → flat-N-Quads transformation.\n\nB. **Recursive emission**: walk inline-object values, emit them as anonymous (or named, if `@id` present) resource blocks alongside the parent.\n\nC. **Switch to a real JSON-LD library**: `jsonld.js` (digitalbazaar) handles this correctly out of the box. JSS's deliberate choice to avoid remote-context fetches (#389) is preserved by passing a pre-resolved local context map.\n\n(C) is the most robust but biggest change. (A) or (B) would unblock the immediate use case.\n\n## Acceptance test\n\nAfter the fix, the Turtle conversion of the test profile must contain:\n\n```turtle\n\u003c.../card.jsonld#me>\n    cid:verificationMethod \u003c.../card.jsonld#nostr-key-1>;\n    cid:authentication \u003c.../card.jsonld#nostr-key-1>.\n\n\u003c.../card.jsonld#nostr-key-1>\n    a cid:Multikey;\n    cid:controller \u003c.../card.jsonld#me>;\n    cid:publicKeyMultibase \"fe70102de7ec...\".\n```\n\n(Whitespace + prefix-vs-IRI formatting may vary; the triple set must match.)\n\n## Refs\n\n- #386 / #388 — LWS 1.0 + W3C CID v1 alignment (the work that put this VM into the profile)\n- #389 — sibling Turtle bug (array-context loses term expansion)\n- #390 — sibling Turtle bug (`@type: '@json'` literals not emitted — relevant when VMs use `publicKeyJwk` instead of `publicKeyMultibase`)\n- #408 — well-known did:nostr endpoint (uses the same VM data, but reads JSON-LD only)","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-10T08:45:09Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a29a72ac-0d75-b337-95aa-6722593ad131
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8524:146A3D:2A88CF8:37F7A2D:6B0389B8
html-safe-nonce86b09cdee67e7e89ca960664e1d98377042b01084cc8cb5f5c7d5ae92ae8b1be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTI0OjE0NkEzRDoyQTg4Q0Y4OjM3RjdBMkQ6NkIwMzg5QjgiLCJ2aXNpdG9yX2lkIjoiMjYxNjMwMTkzNDU2NjY3MjgyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacacc46bd1097da3a9e6839dede65e0d4869919275b7cd3a77a8967bf52da60786
hovercard-subject-tagissue:4415145984
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/415/issue_layout
twitter:imagehttps://opengraph.githubassets.com/63a495ea15cff95727fbccf010d26f081a646635d6de07b3e992c8324e53fff0/JavaScriptSolidServer/JavaScriptSolidServer/issues/415
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/63a495ea15cff95727fbccf010d26f081a646635d6de07b3e992c8324e53fff0/JavaScriptSolidServer/JavaScriptSolidServer/issues/415
og:image:altSibling of #389 (array-context) and #390 (@type: '@json'). Surfaced when checking whether test.solid.social's JSON-LD profile and its conneg-converted Turtle form match. Symptom When a JSON-LD prof...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemelvincarvalho
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F415
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F415
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Codehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues165 (165)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests14 (14)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actionshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projectshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insightshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/insights
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415
#416https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/416
rdf/turtle: nested verificationMethod objects dropped from Turtle outputhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415#top
#416https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/416
bugSomething isn't workinghttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on May 10, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415#issue-4415145984
#389https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/389
#390https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/390
Profile-to-key linking aligned with LWS 1.0 (FPWDs 2026-04-23) via W3C Controlled Identifiers v1.0 #386https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/386
profile: emit CID v1 controller + prep verificationMethod context (#386 Phase A) #388https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/388
#389https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/389
Profile-to-key linking aligned with LWS 1.0 (FPWDs 2026-04-23) via W3C Controlled Identifiers v1.0 #386https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/386
profile: emit CID v1 controller + prep verificationMethod context (#386 Phase A) #388https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/388
rdf/turtle: JSON-LD @context array form not handled — locally-resolvable contexts only #389https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/389
rdf/turtle: emit @type:'@json' literal values (rdf:JSON datatype) — Phase B blocker for CID publicKeyJwk #390https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/390
auth: serve /.well-known/did/nostr/.json (#407) #408https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/408
melvincarvalhohttps://github.com/melvincarvalho
bugSomething isn't workinghttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22bug%22
on May 10, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415#event-25350975387
melvincarvalhohttps://github.com/melvincarvalho
on May 10, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415#event-25351150953
rdf/turtle: accept JSON-LD id/type aliases on nested objects (#415) (#…https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/fd9420fc4e8c6f2c995919f5896638b8bcfaaf9e
#415https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415
#…https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/416
fd9420fhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/fd9420fc4e8c6f2c995919f5896638b8bcfaaf9e
melvincarvalhohttps://github.com/melvincarvalho
completedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#416https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/416
on May 10, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415#event-25351150991
melvincarvalhohttps://github.com/melvincarvalho
on May 10, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415#event-25352107821
rdf/turtle: emit a space before ';' and '.' terminators (#419) (#420)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/002044472dd6caced44f0830a870da2bb32a30bf
#419https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/419
#420https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/420
0020444https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/002044472dd6caced44f0830a870da2bb32a30bf
Sign up for freehttps://github.com/signup?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415
Sign in to commenthttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/415
bugSomething isn't workinghttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.