Title: Context serialization created using JSONLD_FRAME_FLAT setting @set for @type results in an invalid Context · Issue #337 · jsonld-java/jsonld-java · GitHub
Open Graph Title: Context serialization created using JSONLD_FRAME_FLAT setting @set for @type results in an invalid Context · Issue #337 · jsonld-java/jsonld-java
X Title: Context serialization created using JSONLD_FRAME_FLAT setting @set for @type results in an invalid Context · Issue #337 · jsonld-java/jsonld-java
Description: Given a context like: "@context": { "@vocab": "https://example.org", "@type": { "@container": "@set" } } When using the serialization for framing, the term's definition value for @id is used and added to the context resulting in: "@conte...
Open Graph Description: Given a context like: "@context": { "@vocab": "https://example.org", "@type": { "@container": "@set" } } When using the serialization for framing, the term's definition value for @id is used and ad...
X Description: Given a context like: "@context": { "@vocab": "https://example.org", "@type": { "@container": "@set" } } When using the serialization for...
Opengraph URL: https://github.com/jsonld-java/jsonld-java/issues/337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Context serialization created using JSONLD_FRAME_FLAT setting @set for @type results in an invalid Context","articleBody":"Given a context like:\r\n```\r\n\"@context\": {\r\n \"@vocab\": \"https://example.org\",\r\n \"@type\": {\r\n \"@container\": \"@set\"\r\n }\r\n}\r\n```\r\nWhen using the serialization for framing, the term's definition value for @id is used and added to the context resulting in:\r\n```\r\n\"@context\": {\r\n \"@vocab\": \"https://example.org\",\r\n \"@type\": {\r\n \"@id\": \"type\"\r\n \"@container\": \"@set\"\r\n }\r\n}\r\n```\r\n\r\nThis goes against the de-serialization rules:\r\nhttps://github.com/jsonld-java/jsonld-java/blob/7a6cd6272367c6a6da41cd6b5483ea9df5277b16/core/src/main/java/com/github/jsonldjava/core/Context.java#L324-L328\r\n\r\nThe type's @id definition was added in change: https://github.com/jsonld-java/jsonld-java/commit/673dac2ef4c70eeed532ff69ee2399312084a483 and seems like it was tested with compact serialization. \r\n\r\n### Serialization references:\r\n\r\nhttps://github.com/jsonld-java/jsonld-java/blob/7a6cd6272367c6a6da41cd6b5483ea9df5277b16/core/src/main/java/com/github/jsonldjava/core/Context.java#L470-L472\r\n\r\nhttps://github.com/jsonld-java/jsonld-java/blob/7a6cd6272367c6a6da41cd6b5483ea9df5277b16/core/src/main/java/com/github/jsonldjava/core/Context.java#L1173-L1178\r\n\r\nhttps://github.com/jsonld-java/jsonld-java/blob/7a6cd6272367c6a6da41cd6b5483ea9df5277b16/core/src/main/java/com/github/jsonldjava/core/JsonLdProcessor.java#L329\r\n\r\n\r\n","author":{"url":"https://github.com/dnx2710","@type":"Person","name":"dnx2710"},"datePublished":"2023-03-16T11:59:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/337/jsonld-java/issues/337"}
| 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:85557a6c-d482-ce04-fdbd-9945b28a86c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C76A:34227F:6D6C2A:994FBF:69721BDE |
| html-safe-nonce | d60b359a2605b21b56d5e5cb882684033531623db266ee20a95859621b2dcf11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzZBOjM0MjI3Rjo2RDZDMkE6OTk0RkJGOjY5NzIxQkRFIiwidmlzaXRvcl9pZCI6IjczODE5ODU4NjUwODY2NzE4MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 426da11fd0092d5e9e8f775d5b581c1fd695cfa53006ca7cdf95d92ff33a613f |
| hovercard-subject-tag | issue:1627327309 |
| 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/jsonld-java/jsonld-java/337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/173943306fa94f0d6d3446fd8f6963509c7991504e4a190d7038cad0fd30bace/jsonld-java/jsonld-java/issues/337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/173943306fa94f0d6d3446fd8f6963509c7991504e4a190d7038cad0fd30bace/jsonld-java/jsonld-java/issues/337 |
| og:image:alt | Given a context like: "@context": { "@vocab": "https://example.org", "@type": { "@container": "@set" } } When using the serialization for framing, the term's definition value for @id is used and ad... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dnx2710 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7aea209b12f15b5742ac38170cf1d21874bf205eb5ad0cac666cd92599fc4cbc |
| turbo-cache-control | no-preview |
| go-import | github.com/jsonld-java/jsonld-java git https://github.com/jsonld-java/jsonld-java.git |
| octolytics-dimension-user_id | 4359856 |
| octolytics-dimension-user_login | jsonld-java |
| octolytics-dimension-repository_id | 2988730 |
| octolytics-dimension-repository_nwo | jsonld-java/jsonld-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2988730 |
| octolytics-dimension-repository_network_root_nwo | jsonld-java/jsonld-java |
| 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 | 3ff289e97142545d3d22ade4ca0ecba5005b7322 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width