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: patch-diff.githubusercontent.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:a21845be-2ae1-afeb-44b9-ef4dc8663769 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C270:10BAD6:1222689:1964B09:697202BD |
| html-safe-nonce | 967a45cb7c711959751f4788cb0d50e03de8195a1935f59eae2c2fddeac33fdd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjcwOjEwQkFENjoxMjIyNjg5OjE5NjRCMDk6Njk3MjAyQkQiLCJ2aXNpdG9yX2lkIjoiMjM1NDU1MTA4Mjc3NzMyMDI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 44b9767660bf0b62778c453a0ac7b71fe281bab0b8a0132064dcc1805c37c7b4 |
| 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 | 5d01a3551afdd1a0e12e78acaf3ba43a9a1f7dcb518695d6ed59db76a9290f13 |
| 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 | 062b05dcdf64ee7a3dad7acabb746494ae0982cc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width