Title: JSON-LD 1.1 missing scoped context support · Issue #288 · jsonld-java/jsonld-java · GitHub
Open Graph Title: JSON-LD 1.1 missing scoped context support · Issue #288 · jsonld-java/jsonld-java
X Title: JSON-LD 1.1 missing scoped context support · Issue #288 · jsonld-java/jsonld-java
Description: I'm testing the current implementation of JSON-LD 1.1 which is still in PR #284 and not merged to master. This implementation is missing support for the scoped contexts. I'm providing a minimal example here. Simple input JSON-LD: { "@gra...
Open Graph Description: I'm testing the current implementation of JSON-LD 1.1 which is still in PR #284 and not merged to master. This implementation is missing support for the scoped contexts. I'm providing a minimal exa...
X Description: I'm testing the current implementation of JSON-LD 1.1 which is still in PR #284 and not merged to master. This implementation is missing support for the scoped contexts. I'm providing a min...
Opengraph URL: https://github.com/jsonld-java/jsonld-java/issues/288
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JSON-LD 1.1 missing scoped context support","articleBody":"I'm testing the current implementation of JSON-LD 1.1 which is still in PR https://github.com/jsonld-java/jsonld-java/pull/284 and not merged to master. This implementation is missing support for the scoped contexts. I'm providing a minimal example here.\r\n\r\nSimple input JSON-LD:\r\n```\r\n{\r\n \"@graph\": [\r\n {\r\n \"@id\": \"http://www.example.com/id/ABC\",\r\n \"http://schema.org/name\": \"ABC\",\r\n \"http://www.example.com/def/P_ABC139\": {\r\n \"@id\": \"http://www.example.com/def/V_AAA953\"\r\n }\r\n },\r\n {\r\n \"@id\": \"http://www.example.com/def/V_AAA953\"\r\n }\r\n ]\r\n}\r\n```\r\n\r\nSimple JSON-LD context with scoped context:\r\n```\r\n{\r\n \"@context\": {\r\n \"@version\": 1.1,\r\n \"id\": \"@id\",\r\n \"ex\": \"http://www.example.com/def/\",\r\n \"@vocab\": \"http://schema.org/\",\r\n \"usingScopedContext\": {\r\n \"@id\": \"http://www.example.com/def/P_ABC139\",\r\n \"@type\": \"@vocab\",\r\n \"@context\": {\r\n \"S\": \"http://www.example.com/def/V_AAA953\",\r\n \"P\": \"http://www.example.com/def/V_AAA952\"\r\n }\r\n }\r\n }\r\n}\r\n```\r\n\r\nExpected compacted output (taken from JSON-LD playground - https://json-ld.org/playground/):\r\n```\r\n{\r\n \"@context\": {\r\n \"@version\": 1.1,\r\n \"id\": \"@id\",\r\n \"ex\": \"http://www.example.com/def/\",\r\n \"@vocab\": \"http://schema.org/\",\r\n \"usingScopedContext\": {\r\n \"@id\": \"http://www.example.com/def/P_ABC139\",\r\n \"@type\": \"@vocab\",\r\n \"@context\": {\r\n \"S\": \"http://www.example.com/def/V_AAA953\",\r\n \"P\": \"http://www.example.com/def/V_AAA952\"\r\n }\r\n }\r\n },\r\n \"id\": \"http://www.example.com/id/ABC\",\r\n \"name\": \"ABC\",\r\n \"usingScopedContext\": \"S\"\r\n}\r\n```\r\n\r\nActual output of jsonld-java library:\r\n```\r\n{\r\n \"id\" : \"http://www.example.com/id/ABC\",\r\n \"name\" : \"ABC\",\r\n \"usingScopedContext\" : \"ex:V_AAA953\",\r\n \"@context\" : {\r\n \"@version\" : 1.1,\r\n \"id\" : \"@id\",\r\n \"ex\" : \"http://www.example.com/def/\",\r\n \"@vocab\" : \"http://schema.org/\",\r\n \"usingScopedContext\" : {\r\n \"@id\" : \"http://www.example.com/def/P_ABC139\",\r\n \"@type\" : \"@vocab\",\r\n \"@context\" : {\r\n \"S\" : \"http://www.example.com/def/V_AAA953\",\r\n \"P\" : \"http://www.example.com/def/V_AAA952\"\r\n }\r\n }\r\n }\r\n}\r\n```\r\n\r\nSo the problematic part is that ` \"usingScopedContext\" : \"ex:V_AAA953\",` is not expanded properly into `\"usingScopedContext\": \"S\"`.","author":{"url":"https://github.com/lagivan","@type":"Person","name":"lagivan"},"datePublished":"2020-05-27T11:52:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/288/jsonld-java/issues/288"}
| 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:15c6ff40-d000-85bf-5564-0fab6caaf4af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B406:3A56:880A60:BC3325:69721B2F |
| html-safe-nonce | 631a28d488bb6e8a8a38a7d3c05e632e1fb9e4680197d82875293c55dff9597d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDA2OjNBNTY6ODgwQTYwOkJDMzMyNTo2OTcyMUIyRiIsInZpc2l0b3JfaWQiOiIzNDgxODIxNDUwNTE3NzQ4NTI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bcd273961224fb13e4aae703a05f6705950a837c045b5de83c734c5cbf0fbaa0 |
| hovercard-subject-tag | issue:625628900 |
| 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/288/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b83eb72666b4661888504cc00ff64cf19ffda988e0c4ca0457734b57d42470f/jsonld-java/jsonld-java/issues/288 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b83eb72666b4661888504cc00ff64cf19ffda988e0c4ca0457734b57d42470f/jsonld-java/jsonld-java/issues/288 |
| og:image:alt | I'm testing the current implementation of JSON-LD 1.1 which is still in PR #284 and not merged to master. This implementation is missing support for the scoped contexts. I'm providing a minimal exa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lagivan |
| 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