Title: Duplicate resource in JSON-LD frame output with embed=LAST · Issue #332 · jsonld-java/jsonld-java · GitHub
Open Graph Title: Duplicate resource in JSON-LD frame output with embed=LAST · Issue #332 · jsonld-java/jsonld-java
X Title: Duplicate resource in JSON-LD frame output with embed=LAST · Issue #332 · jsonld-java/jsonld-java
Description: The framing algorithm sometime keeps two occurrences of the resource with all attributes even if embed=LAST. Json-LD input { "@context" : { "@vocab" : "http://www.example.net/" }, "@id": "#doc", "@type": "Document", "content": { "@list":...
Open Graph Description: The framing algorithm sometime keeps two occurrences of the resource with all attributes even if embed=LAST. Json-LD input { "@context" : { "@vocab" : "http://www.example.net/" }, "@id": "#doc", "@...
X Description: The framing algorithm sometime keeps two occurrences of the resource with all attributes even if embed=LAST. Json-LD input { "@context" : { "@vocab" : "http://www.example.n...
Opengraph URL: https://github.com/jsonld-java/jsonld-java/issues/332
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Duplicate resource in JSON-LD frame output with embed=LAST","articleBody":"The framing algorithm sometime keeps two occurrences of the resource with all attributes even if embed=LAST.\r\nJson-LD input\r\n```\r\n{\r\n\t\"@context\" : {\r\n\t\t\"@vocab\" : \"http://www.example.net/\"\r\n\t},\r\n\t\"@id\": \"#doc\",\r\n\t\"@type\": \"Document\",\r\n\t\"content\": {\r\n\t\t\"@list\": [\r\n\t\t\t{\r\n\t\t\t\t\"@id\": \"#question\",\r\n\t\t\t\t\"@type\": \"Question\",\r\n\t\t\t\t\"label\" : \"Why am I here twice?\"\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"@id\": \"#block\",\r\n\t\t\t\t\"predicate\": {\r\n\t\t\t\t\t\"@id\": \"#question\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n}\r\n```\r\nFrame:\r\n```\r\n{\r\n\t\"@context\" : {\r\n\t\t\"@vocab\" : \"http://www.example.net/\"\r\n\t},\r\n\t\"@type\" : \"Document\"\r\n}\r\n```\r\nCuttent buggy output:\r\n```\r\n{\r\n \"@context\" : {\r\n \"@vocab\" : \"http://www.example.net/\"\r\n },\r\n \"@graph\" : [ {\r\n \"@id\" : \"#doc\",\r\n \"@type\" : \"Document\",\r\n \"content\" : {\r\n \"@list\" : [ {\r\n \"@id\" : \"#question\",\r\n \"@type\" : \"Question\", //This attr should not be here, it is printed later\r\n \"label\" : \"Why am I here twice?\" //This attr should not be here, it is printed later\r\n }, {\r\n \"@id\" : \"#block\",\r\n \"predicate\" : {\r\n \"@id\" : \"#question\",\r\n \"@type\" : \"Question\",\r\n \"label\" : \"Why am I here twice?\"\r\n }\r\n } ]\r\n }\r\n } ]\r\n}\r\n\r\n```\r\nI will make PR with failing test case soon and link it here","author":{"url":"https://github.com/pvojtechovsky","@type":"Person","name":"pvojtechovsky"},"datePublished":"2022-08-02T06:42:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/332/jsonld-java/issues/332"}
| 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:76de0fe8-97ad-b92a-ce52-e3e71c043308 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF6A:E31A4:8FAC2A:BE2A9D:69731178 |
| html-safe-nonce | ac2af922edd01da0449fcea157d0cabec72a2f76874c132987ecd9f287d441e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjZBOkUzMUE0OjhGQUMyQTpCRTJBOUQ6Njk3MzExNzgiLCJ2aXNpdG9yX2lkIjoiODY4MDE3NDMzMDU1OTI3MTI4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 53d78069885654b640901e9df06d86bdaba3f3470f8d02f90c09e31d1de518a9 |
| hovercard-subject-tag | issue:1325362895 |
| 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/332/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b5d765bca6f1a09c3141723bbfc4728b79a5b74799fea918cefb8badcce090cc/jsonld-java/jsonld-java/issues/332 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b5d765bca6f1a09c3141723bbfc4728b79a5b74799fea918cefb8badcce090cc/jsonld-java/jsonld-java/issues/332 |
| og:image:alt | The framing algorithm sometime keeps two occurrences of the resource with all attributes even if embed=LAST. Json-LD input { "@context" : { "@vocab" : "http://www.example.net/" }, "@id": "#doc", "@... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pvojtechovsky |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| 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 | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width