{"action":"opened","number":176,"pull_request":{"url":"https://api.github.com/repos/jsonld-java/jsonld-java/pulls/176","id":70453735,"html_url":"https://github.com/jsonld-java/jsonld-java/pull/176","diff_url":"https://github.com/jsonld-java/jsonld-java/pull/176.diff","patch_url":"https://github.com/jsonld-java/jsonld-java/pull/176.patch","issue_url":"https://api.github.com/repos/jsonld-java/jsonld-java/issues/176","number":176,"state":"open","locked":false,"title":"Fix issue #175 using a hack for recursive context processing","user":{"login":"ansell","id":82365,"avatar_url":"https://avatars.githubusercontent.com/u/82365?v=3","gravatar_id":"","url":"https://api.github.com/users/ansell","html_url":"https://github.com/ansell","followers_url":"https://api.github.com/users/ansell/followers","following_url":"https://api.github.com/users/ansell/following{/other_user}","gists_url":"https://api.github.com/users/ansell/gists{/gist_id}","starred_url":"https://api.github.com/users/ansell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansell/subscriptions","organizations_url":"https://api.github.com/users/ansell/orgs","repos_url":"https://api.github.com/users/ansell/repos","events_url":"https://api.github.com/users/ansell/events{/privacy}","received_events_url":"https://api.github.com/users/ansell/received_events","type":"User","site_admin":false},"body":"The JSONLD-API Context Processing Algorithm is specified as a recursive algorithm, but it doesn't seem to take into account that remote contexts must be operated on differently to the local context when they are mixed together. In particular, remote contexts must not propagate @base declarations out to the final context, although almost all of the rest of the context is propagated out otherwise.\r\n\r\nThis issue adds two regression tests, one with local context first, and the other with remote context first that demonstrate the issue. The regression test with local context first worked before the fix, but the remote context first was corrupting the final context by propagating an empty @base declaration out for some reason.\r\n\r\nFix for the issue is to introduce an inner private recursion method and a new boolean parameter on that method and use it to define what recursion stage we are at to know if we propagate @base out to the final context or not.","created_at":"2016-05-18T00:42:56Z","updated_at":"2016-05-18T00:42:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jsonld-java/jsonld-java/pulls/176/commits","review_comments_url":"https://api.github.com/repos/jsonld-java/jsonld-java/pulls/176/comments","review_comment_url":"https://api.github.com/repos/jsonld-java/jsonld-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jsonld-java/jsonld-java/issues/176/comments","statuses_url":"https://api.github.com/repos/jsonld-java/jsonld-java/statuses/007ffbdaba4eaff06331641c9710f8c438d7b0e6","head":{"label":"jsonld-java:github-175-local-base","ref":"github-175-local-base","sha":"007ffbdaba4eaff06331641c9710f8c438d7b0e6","user":{"login":"jsonld-java","id":4359856,"avatar_url":"https://avatars.githubusercontent.com/u/4359856?v=3","gravatar_id":"","url":"https://api.github.com/users/jsonld-java","html_url":"https://github.com/jsonld-java","followers_url":"https://api.github.com/users/jsonld-java/followers","following_url":"https://api.github.com/users/jsonld-java/following{/other_user}","gists_url":"https://api.github.com/users/jsonld-java/gists{/gist_id}","starred_url":"https://api.github.com/users/jsonld-java/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsonld-java/subscriptions","organizations_url":"https://api.github.com/users/jsonld-java/orgs","repos_url":"https://api.github.com/users/jsonld-java/repos","events_url":"https://api.github.com/users/jsonld-java/events{/privacy}","received_events_url":"https://api.github.com/users/jsonld-java/received_events","type":"Organization","site_admin":false},"repo":{"id":2988730,"name":"jsonld-java","full_name":"jsonld-java/jsonld-java","owner":{"login":"jsonld-java","id":4359856,"avatar_url":"https://avatars.githubusercontent.com/u/4359856?v=3","gravatar_id":"","url":"https://api.github.com/users/jsonld-java","html_url":"https://github.com/jsonld-java","followers_url":"https://api.github.com/users/jsonld-java/followers","following_url":"https://api.github.com/users/jsonld-java/following{/other_user}","gists_url":"https://api.github.com/users/jsonld-java/gists{/gist_id}","starred_url":"https://api.github.com/users/jsonld-java/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsonld-java/subscriptions","organizations_url":"https://api.github.com/users/jsonld-java/orgs","repos_url":"https://api.github.com/users/jsonld-java/repos","events_url":"https://api.github.com/users/jsonld-java/events{/privacy}","received_events_url":"https://api.github.com/users/jsonld-java/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jsonld-java/jsonld-java","description":"JSON-LD implementation for Java","fork":false,"url":"https://api.github.com/repos/jsonld-java/jsonld-java","forks_url":"https://api.github.com/repos/jsonld-java/jsonld-java/forks","keys_url":"https://api.github.com/repos/jsonld-java/jsonld-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsonld-java/jsonld-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsonld-java/jsonld-java/teams","hooks_url":"https://api.github.com/repos/jsonld-java/jsonld-java/hooks","issue_events_url":"https://api.github.com/repos/jsonld-java/jsonld-java/issues/events{/number}","events_url":"https://api.github.com/repos/jsonld-java/jsonld-java/events","assignees_url":"https://api.github.com/repos/jsonld-java/jsonld-java/assignees{/user}","branches_url":"https://api.github.com/repos/jsonld-java/jsonld-java/branches{/branch}","tags_url":"https://api.github.com/repos/jsonld-java/jsonld-java/tags","blobs_url":"https://api.github.com/repos/jsonld-java/jsonld-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsonld-java/jsonld-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsonld-java/jsonld-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsonld-java/jsonld-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsonld-java/jsonld-java/statuses/{sha}","languages_url":"https://api.github.com/repos/jsonld-java/jsonld-java/languages","stargazers_url":"https://api.github.com/repos/jsonld-java/jsonld-java/stargazers","contributors_url":"https://api.github.com/repos/jsonld-java/jsonld-java/contributors","subscribers_url":"https://api.github.com/repos/jsonld-java/jsonld-java/subscribers","subscription_url":"https://api.github.com/repos/jsonld-java/jsonld-java/subscription","commits_url":"https://api.github.com/repos/jsonld-java/jsonld-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsonld-java/jsonld-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsonld-java/jsonld-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsonld-java/jsonld-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsonld-java/jsonld-java/contents/{+path}","compare_url":"https://api.github.com/repos/jsonld-java/jsonld-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsonld-java/jsonld-java/merges","archive_url":"https://api.github.com/repos/jsonld-java/jsonld-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsonld-java/jsonld-java/downloads","issues_url":"https://api.github.com/repos/jsonld-java/jsonld-java/issues{/number}","pulls_url":"https://api.github.com/repos/jsonld-java/jsonld-java/pulls{/number}","milestones_url":"https://api.github.com/repos/jsonld-java/jsonld-java/milestones{/number}","notifications_url":"https://api.github.com/repos/jsonld-java/jsonld-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsonld-java/jsonld-java/labels{/name}","releases_url":"https://api.github.com/repos/jsonld-java/jsonld-java/releases{/id}","deployments_url":"https://api.github.com/repos/jsonld-java/jsonld-java/deployments","created_at":"2011-12-15T16:04:37Z","updated_at":"2016-05-02T23:20:01Z","pushed_at":"2016-05-18T00:25:53Z","git_url":"git://github.com/jsonld-java/jsonld-java.git","ssh_url":"git@github.com:jsonld-java/jsonld-java.git","clone_url":"https://github.com/jsonld-java/jsonld-java.git","svn_url":"https://github.com/jsonld-java/jsonld-java","homepage":"","size":2284,"stargazers_count":166,"watchers_count":166,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":25,"forks":84,"open_issues":25,"watchers":166,"default_branch":"master"}},"base":{"label":"jsonld-java:master","ref":"master","sha":"c06a987130403db4c7a7212afc26dc7156a5b4d3","user":{"login":"jsonld-java","id":4359856,"avatar_url":"https://avatars.githubusercontent.com/u/4359856?v=3","gravatar_id":"","url":"https://api.github.com/users/jsonld-java","html_url":"https://github.com/jsonld-java","followers_url":"https://api.github.com/users/jsonld-java/followers","following_url":"https://api.github.com/users/jsonld-java/following{/other_user}","gists_url":"https://api.github.com/users/jsonld-java/gists{/gist_id}","starred_url":"https://api.github.com/users/jsonld-java/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsonld-java/subscriptions","organizations_url":"https://api.github.com/users/jsonld-java/orgs","repos_url":"https://api.github.com/users/jsonld-java/repos","events_url":"https://api.github.com/users/jsonld-java/events{/privacy}","received_events_url":"https://api.github.com/users/jsonld-java/received_events","type":"Organization","site_admin":false},"repo":{"id":2988730,"name":"jsonld-java","full_name":"jsonld-java/jsonld-java","owner":{"login":"jsonld-java","id":4359856,"avatar_url":"https://avatars.githubusercontent.com/u/4359856?v=3","gravatar_id":"","url":"https://api.github.com/users/jsonld-java","html_url":"https://github.com/jsonld-java","followers_url":"https://api.github.com/users/jsonld-java/followers","following_url":"https://api.github.com/users/jsonld-java/following{/other_user}","gists_url":"https://api.github.com/users/jsonld-java/gists{/gist_id}","starred_url":"https://api.github.com/users/jsonld-java/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsonld-java/subscriptions","organizations_url":"https://api.github.com/users/jsonld-java/orgs","repos_url":"https://api.github.com/users/jsonld-java/repos","events_url":"https://api.github.com/users/jsonld-java/events{/privacy}","received_events_url":"https://api.github.com/users/jsonld-java/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jsonld-java/jsonld-java","description":"JSON-LD implementation for Java","fork":false,"url":"https://api.github.com/repos/jsonld-java/jsonld-java","forks_url":"https://api.github.com/repos/jsonld-java/jsonld-java/forks","keys_url":"https://api.github.com/repos/jsonld-java/jsonld-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsonld-java/jsonld-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsonld-java/jsonld-java/teams","hooks_url":"https://api.github.com/repos/jsonld-java/jsonld-java/hooks","issue_events_url":"https://api.github.com/repos/jsonld-java/jsonld-java/issues/events{/number}","events_url":"https://api.github.com/repos/jsonld-java/jsonld-java/events","assignees_url":"https://api.github.com/repos/jsonld-java/jsonld-java/assignees{/user}","branches_url":"https://api.github.com/repos/jsonld-java/jsonld-java/branches{/branch}","tags_url":"https://api.github.com/repos/jsonld-java/jsonld-java/tags","blobs_url":"https://api.github.com/repos/jsonld-java/jsonld-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsonld-java/jsonld-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsonld-java/jsonld-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsonld-java/jsonld-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsonld-java/jsonld-java/statuses/{sha}","languages_url":"https://api.github.com/repos/jsonld-java/jsonld-java/languages","stargazers_url":"https://api.github.com/repos/jsonld-java/jsonld-java/stargazers","contributors_url":"https://api.github.com/repos/jsonld-java/jsonld-java/contributors","subscribers_url":"https://api.github.com/repos/jsonld-java/jsonld-java/subscribers","subscription_url":"https://api.github.com/repos/jsonld-java/jsonld-java/subscription","commits_url":"https://api.github.com/repos/jsonld-java/jsonld-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsonld-java/jsonld-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsonld-java/jsonld-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsonld-java/jsonld-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsonld-java/jsonld-java/contents/{+path}","compare_url":"https://api.github.com/repos/jsonld-java/jsonld-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsonld-java/jsonld-java/merges","archive_url":"https://api.github.com/repos/jsonld-java/jsonld-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsonld-java/jsonld-java/downloads","issues_url":"https://api.github.com/repos/jsonld-java/jsonld-java/issues{/number}","pulls_url":"https://api.github.com/repos/jsonld-java/jsonld-java/pulls{/number}","milestones_url":"https://api.github.com/repos/jsonld-java/jsonld-java/milestones{/number}","notifications_url":"https://api.github.com/repos/jsonld-java/jsonld-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsonld-java/jsonld-java/labels{/name}","releases_url":"https://api.github.com/repos/jsonld-java/jsonld-java/releases{/id}","deployments_url":"https://api.github.com/repos/jsonld-java/jsonld-java/deployments","created_at":"2011-12-15T16:04:37Z","updated_at":"2016-05-02T23:20:01Z","pushed_at":"2016-05-18T00:25:53Z","git_url":"git://github.com/jsonld-java/jsonld-java.git","ssh_url":"git@github.com:jsonld-java/jsonld-java.git","clone_url":"https://github.com/jsonld-java/jsonld-java.git","svn_url":"https://github.com/jsonld-java/jsonld-java","homepage":"","size":2284,"stargazers_count":166,"watchers_count":166,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":25,"forks":84,"open_issues":25,"watchers":166,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jsonld-java/jsonld-java/pulls/176"},"html":{"href":"https://github.com/jsonld-java/jsonld-java/pull/176"},"issue":{"href":"https://api.github.com/repos/jsonld-java/jsonld-java/issues/176"},"comments":{"href":"https://api.github.com/repos/jsonld-java/jsonld-java/issues/176/comments"},"review_comments":{"href":"https://api.github.com/repos/jsonld-java/jsonld-java/pulls/176/comments"},"review_comment":{"href":"https://api.github.com/repos/jsonld-java/jsonld-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jsonld-java/jsonld-java/pulls/176/commits"},"statuses":{"href":"https://api.github.com/repos/jsonld-java/jsonld-java/statuses/007ffbdaba4eaff06331641c9710f8c438d7b0e6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":634,"deletions":434,"changed_files":9}}