{"action":"created","issue":{"url":"https://api.github.com/repos/digitalbazaar/jsonld.js/issues/277","repository_url":"https://api.github.com/repos/digitalbazaar/jsonld.js","labels_url":"https://api.github.com/repos/digitalbazaar/jsonld.js/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/digitalbazaar/jsonld.js/issues/277/comments","events_url":"https://api.github.com/repos/digitalbazaar/jsonld.js/issues/277/events","html_url":"https://github.com/digitalbazaar/jsonld.js/issues/277","id":388639383,"node_id":"MDU6SXNzdWUzODg2MzkzODM=","number":277,"title":"Inline @type: @vocab inconsistent with context","user":{"login":"rubensworks","id":440384,"node_id":"MDQ6VXNlcjQ0MDM4NA==","avatar_url":"https://avatars1.githubusercontent.com/u/440384?v=4","gravatar_id":"","url":"https://api.github.com/users/rubensworks","html_url":"https://github.com/rubensworks","followers_url":"https://api.github.com/users/rubensworks/followers","following_url":"https://api.github.com/users/rubensworks/following{/other_user}","gists_url":"https://api.github.com/users/rubensworks/gists{/gist_id}","starred_url":"https://api.github.com/users/rubensworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubensworks/subscriptions","organizations_url":"https://api.github.com/users/rubensworks/orgs","repos_url":"https://api.github.com/users/rubensworks/repos","events_url":"https://api.github.com/users/rubensworks/events{/privacy}","received_events_url":"https://api.github.com/users/rubensworks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-07T12:41:35Z","updated_at":"2018-12-10T07:46:41Z","closed_at":null,"author_association":"NONE","body":"```json\r\n{\r\n  \"@context\": {\r\n    \"@base\": \"http://base.org/\",\r\n    \"@vocab\": \"http://vocab.org/\",\r\n    \"p\": { \"@id\": \"http://ex.org/predicate\" }\r\n  },\r\n  \"p\": { \"@id\": \"abc\", \"@type\": \"@vocab\" }\r\n}\r\n```\r\n\r\nThis outputs:\r\n```\r\n_:b0 <http://ex.org/predicate> <http://base.org/abc> .\r\n```\r\n\r\nHowever, I would expect this to output the same as:\r\n```json\r\n{\r\n  \"@context\": {\r\n    \"@base\": \"http://base.org/\",\r\n    \"@vocab\": \"http://vocab.org/\",\r\n    \"p\": { \"@id\": \"http://ex.org/predicate\", \"@type\": \"@vocab\" }\r\n  },\r\n  \"p\": \"abc\"\r\n}\r\n```\r\n\r\nWhich outputs:\r\n```\r\n_:b0 <http://ex.org/predicate> <http://vocab.org/abc> .\r\n```\r\n\r\nThe spec seems unclear about this, so I suspect the output should be consistent with the context-based one.\r\n\r\nPossibly related to #276."},"comment":{"url":"https://api.github.com/repos/digitalbazaar/jsonld.js/issues/comments/445721143","html_url":"https://github.com/digitalbazaar/jsonld.js/issues/277#issuecomment-445721143","issue_url":"https://api.github.com/repos/digitalbazaar/jsonld.js/issues/277","id":445721143,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTcyMTE0Mw==","user":{"login":"rubensworks","id":440384,"node_id":"MDQ6VXNlcjQ0MDM4NA==","avatar_url":"https://avatars1.githubusercontent.com/u/440384?v=4","gravatar_id":"","url":"https://api.github.com/users/rubensworks","html_url":"https://github.com/rubensworks","followers_url":"https://api.github.com/users/rubensworks/followers","following_url":"https://api.github.com/users/rubensworks/following{/other_user}","gists_url":"https://api.github.com/users/rubensworks/gists{/gist_id}","starred_url":"https://api.github.com/users/rubensworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubensworks/subscriptions","organizations_url":"https://api.github.com/users/rubensworks/orgs","repos_url":"https://api.github.com/users/rubensworks/repos","events_url":"https://api.github.com/users/rubensworks/events{/privacy}","received_events_url":"https://api.github.com/users/rubensworks/received_events","type":"User","site_admin":false},"created_at":"2018-12-10T07:46:41Z","updated_at":"2018-12-10T07:46:41Z","author_association":"NONE","body":"Just like #276, perhaps it makes sense to discuss this at spec-level at https://github.com/json-ld/json-ld.org/ and move the issue?"}}
{"actor":{"display_login":"rubensworks"}}