CARVIEW |
Select Language
HTTP/2 200
date: Fri, 10 Oct 2025 05:38:48 GMT
content-type: text/html; charset=utf-8
cache-control: max-age=0, private, must-revalidate
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
link: ; rel=preload; as=fetch; crossorigin=use-credentials
referrer-policy: no-referrer-when-downgrade
server-timing: issue_layout-fragment;desc="issue_layout fragment";dur=255.957851,issue_conversation_content-fragment;desc="issue_conversation_content fragment";dur=574.508387,nginx;desc="NGINX";dur=1.104606,glb;desc="GLB";dur=140.035562
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Accept,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: 266d7a9
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=nN9rw3O8dV7ncLVaKz%2BMCeRhNR4OR8Ou4hIQMXmCElox%2F7xMeN%2FYwfTjBOEnmBJjA1j2PFfW9AAb%2FXVt2BxsSMH9AvEO%2Fjx%2FccPCK7kBnPJ%2BqzxRdGyrbiQcWMwvfhDz%2Fls4pwSyvEJ9XkjMgqJmltfr%2Fcnr2SLVZdzs%2FZnpWDc6PLh8C7DziIy3fHd8PImqXP1Xr4eXOav7Hn7Ylh%2FAYmKgzKGmrSb%2BXECcN7y77FKbJqk9SA6ey6h4RmaiXBJuucXdW85mW0cag44ia5%2Bm%2Bg%3D%3D--EYANKZWskqOhVzlM--RFltfMDQe9nB5cmhkf3OtQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.91363469.1760074728; Path=/; Domain=github.com; Expires=Sat, 10 Oct 2026 05:38:48 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 10 Oct 2026 05:38:48 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AED2:264CB4:136ABC4:178E4F4:68E89BE8
Reframing Relationships · Issue #73 · w3c/json-ld-framing · GitHub
No one assignedNo typeShow more project fieldsNo milestoneNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
defer-future-versionDefer this issue until a future version of JSON-LDDefer this issue until a future version of JSON-LD
Description
I have the following data structure:
{
"@context": {
"ex": "https://example.org/",
"exv": "https://example.org/vocab#",
"exv:source": {"@type": "@id"},
"exv:target": {"@type": "@id"}
},
"@graph": [
{ "@id": "ex:relationship-12345",
"@type": "exv:Relationship",
"exv:relationshipType": {"@id": "exv:created"},
"exv:source": {
"@id": "ex:actor-23456",
"@type": "exv:Actor",
"exv:description": "Some odd actor."
},
"exv:target": {
"@id": "ex:event-34567",
"@type": "exv:Event",
"exv:description": "Some odd event."
}
}]
}
I would like to restructure it as:
{
"@context": {
"ex": "https://example.org/",
"exv": "https://example.org/vocab#",
"exv:source": {"@type": "@id"},
"exv:target": {"@type": "@id"}
},
"@graph": [
{ "@id": "ex:actor-23456",
"@type": "exv:Actor",
"exv:description": "Some odd actor.",
"exv:created": {
"@id": "ex:event-34567",
"@type": "exv:Event",
"exv:description": "Some odd event."
}
},
{ "@id": "ex:relationship-12345",
"@type": "exv:Relationship",
"exv:source": "ex:actor-23456",
"exv:relationshipType": {"@id": "exv:created"},
"exv:target": "ex:event-34567"
}]
}
In other words, the structure can be viewed as reifed data where:
exv:Relationship subclass of rdf:Statement
exv:source subproperty of rdf:subject
exv:relationshipType subproperty of rdf:predicate
exv:target subproperty of rdf:object
and I need to instantiate its triple:
ex:actor-23456 -- exv:created --> ex:event-34567
Some framing issues are:
- Referencing the value of a property for later use, like the "exv:relationshipType" value.
- Using a referenced value as a property, like the value of "exv:relationshipType" used as the property of the "exv:source" value.
- Matching node patterns like "ex:relationship-" + variable info
It seems wildcard matching is an all or nothing affair: match specific IRIs, everything {}, or nothing [], but not generic string matching. It would be useful for the frame matching to use regex patterns like "ex:relationship-.+". This is helpful when I don't have @type, but can create type based on the @id match.
Then, I can validate some pattern while framing. The framing could be:
{
"@context": {
"ex": "https://example.org/",
"exv": "https://example.org/vocab#",
"exv:source": {"@type": "@id"},
"exv:target": {"@type": "@id"}
},
"@graph": [
{ "@requireAll": true,
"@id": {"@regex": "ex:relationship-.+"}, <-- verifies a proper string match for a Relationship
"@type": {"@default": "exv:Relationship"}, <-- new type if it doesn't exist
"exv:relationshipType": {"@id": ?prop}, <-- reference for property
"exv:source": {
?prop: {"@default": {"@id": ?obj}} <-- new key-value pair
},
"exv:target": {"@id": ?obj}, <-- reference for value, will order matter (target before source)?
}]
}
to produce:
{
"@context": {
"ex": "https://example.org/",
"exv": "https://example.org/vocab#",
"exv:source": {"@type": "@id"},
"exv:target": {"@type": "@id"}
},
"@graph": [
{ "@id": "ex:relationship-12345",
"@type": "exv:Relationship",
"exv:relationshipType": {"@id": "exv:created"},
"exv:source": {
"@id": "ex:actor-23456",
"@type": "exv:Actor",
"exv:description": "Some odd actor.",
"exv:created": "ex:event-34567" <------ new key-value pair
},
"exv:target": {
"@id": "ex:event-34567",
"@type": "exv:Event",
"exv:description": "Some odd event."
}
}]
}
Yeah, I hate it too. It looks ugly, but I currently don't see a way around it.
Metadata
Metadata
Assignees
Labels
defer-future-versionDefer this issue until a future version of JSON-LDDefer this issue until a future version of JSON-LD
Type
Projects
Status
Future Work
Milestone
Relationships
Development
Issue actions
You can’t perform that action at this time.