{"action":"created","issue":{"url":"https://api.github.com/repos/json-ld/json-ld.org/issues/623","repository_url":"https://api.github.com/repos/json-ld/json-ld.org","labels_url":"https://api.github.com/repos/json-ld/json-ld.org/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/json-ld/json-ld.org/issues/623/comments","events_url":"https://api.github.com/repos/json-ld/json-ld.org/issues/623/events","html_url":"https://github.com/json-ld/json-ld.org/issues/623","id":308994756,"number":623,"title":"\"@container\": [\"@set\", \"@graph\"] not producing a set of separate graphs","user":{"login":"dlongley","id":168137,"avatar_url":"https://avatars0.githubusercontent.com/u/168137?v=4","gravatar_id":"","url":"https://api.github.com/users/dlongley","html_url":"https://github.com/dlongley","followers_url":"https://api.github.com/users/dlongley/followers","following_url":"https://api.github.com/users/dlongley/following{/other_user}","gists_url":"https://api.github.com/users/dlongley/gists{/gist_id}","starred_url":"https://api.github.com/users/dlongley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlongley/subscriptions","organizations_url":"https://api.github.com/users/dlongley/orgs","repos_url":"https://api.github.com/users/dlongley/repos","events_url":"https://api.github.com/users/dlongley/events{/privacy}","received_events_url":"https://api.github.com/users/dlongley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-27T14:30:34Z","updated_at":"2018-03-27T17:54:09Z","closed_at":null,"author_association":"OWNER","body":"```js\r\n{\r\n  \"@context\": {\r\n    \"@version\": 1.1,\r\n    \"credential\": {\"@id\": \"cred:credential\", \"@container\": [\"@set\", \"@graph\"]}\r\n  },\r\n  \"credential\": [{\r\n    \"@id\": \"foo:1\",\r\n    \"foo:bar\": \"1\"\r\n  }, {\r\n    \"@id\": \"foo:2\",\r\n    \"foo:bar\": \"2\"\r\n  }]\r\n}\r\n```\r\n\r\nN-Quads output is:\r\n\r\n```\r\n<foo:1> <foo:bar> \"1\" _:b1 .\r\n<foo:2> <foo:bar> \"2\" _:b1 .\r\n_:b0 <cred:credential> _:b1 .\r\n```\r\n\r\nExpected N-Quads output is:\r\n\r\n```\r\n<foo:1> <foo:bar> \"1\" _:b1 .\r\n<foo:2> <foo:bar> \"2\" _:b2 .\r\n_:b0 <cred:credential> _:b1 .\r\n_:b0 <cred:credential> _:b2 .\r\n```\r\n\r\nThis happens whether or not `@set` is combined with the container, i.e. if just `@graph` is used for the `@container` and more than one value is included. Each value in a `@graph` container should be a separate graph. Note that if a disjoint graph is desired, the following syntax could be used (but is also temporarily broken):\r\n\r\n```js\r\n{\r\n  \"@context\": {\r\n    \"@version\": 1.1,\r\n    \"credential\": {\"@id\": \"cred:credential\", \"@container\": [\"@set\", \"@graph\"]}\r\n  },\r\n  \"credential\": [\r\n    [\r\n      {\"@id\": \"foo:1\", \"foo:bar\": \"1\"},\r\n      {\"@id\":\"foo:3\", \"foo:bar\": \"3\"}\r\n    ],\r\n    {\r\n      \"@id\": \"foo:2\",\r\n      \"foo:bar\": \"2\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nN-Quads output is:\r\n\r\n```\r\n<foo:1> <foo:bar> \"1\" _:b1 .\r\n<foo:2> <foo:bar> \"2\" _:b1 .\r\n<foo:3> <foo:bar> \"3\" _:b1 .\r\n_:b0 <cred:credential> _:b1 .\r\n```\r\n\r\nExpected N-Quads output is:\r\n\r\n```\r\n<foo:1> <foo:bar> \"1\" _:b1 .\r\n<foo:2> <foo:bar> \"2\" _:b2 .\r\n<foo:3> <foo:bar> \"3\" _:b1 .\r\n_:b0 <cred:credential> _:b1 .\r\n_:b0 <cred:credential> _:b2 .\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/json-ld/json-ld.org/issues/comments/376616683","html_url":"https://github.com/json-ld/json-ld.org/issues/623#issuecomment-376616683","issue_url":"https://api.github.com/repos/json-ld/json-ld.org/issues/623","id":376616683,"user":{"login":"gkellogg","id":46296,"avatar_url":"https://avatars0.githubusercontent.com/u/46296?v=4","gravatar_id":"","url":"https://api.github.com/users/gkellogg","html_url":"https://github.com/gkellogg","followers_url":"https://api.github.com/users/gkellogg/followers","following_url":"https://api.github.com/users/gkellogg/following{/other_user}","gists_url":"https://api.github.com/users/gkellogg/gists{/gist_id}","starred_url":"https://api.github.com/users/gkellogg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkellogg/subscriptions","organizations_url":"https://api.github.com/users/gkellogg/orgs","repos_url":"https://api.github.com/users/gkellogg/repos","events_url":"https://api.github.com/users/gkellogg/events{/privacy}","received_events_url":"https://api.github.com/users/gkellogg/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T17:54:09Z","updated_at":"2018-03-27T17:54:09Z","author_association":"OWNER","body":"> Note that if a disjoint graph is desired, the following syntax could be used (but is also temporarily broken\r\n\r\nNot too keen on the array of arrays syntax; perhaps we simply don't support that use case? Need to explore the algorithm to see what makes the most sense."}}
{"actor":{"display_login":"gkellogg"}}