{"action":"created","comment":{"url":"https://api.github.com/repos/graknlabs/grakn/pulls/comments/173408792","pull_request_review_id":102595773,"id":173408792,"diff_hunk":"@@ -180,6 +180,20 @@\n     @CheckReturnValue\n     VarPattern relates(VarPattern type);\n \n+    /**\n+     * @param roleType a {@link Role} id that this relation type variable must have\n+     * @return this\n+     */\n+    @CheckReturnValue\n+    VarPattern relates(String roleType, String superRoleType);","path":"grakn-core/src/main/java/ai/grakn/graql/VarPattern.java","position":56,"original_position":56,"commit_id":"02ae9bcebbcb5865787cdb6dc023cf3c7a9f8118","original_commit_id":"02ae9bcebbcb5865787cdb6dc023cf3c7a9f8118","user":{"login":"aelred","id":4632588,"avatar_url":"https://avatars1.githubusercontent.com/u/4632588?v=4","gravatar_id":"","url":"https://api.github.com/users/aelred","html_url":"https://github.com/aelred","followers_url":"https://api.github.com/users/aelred/followers","following_url":"https://api.github.com/users/aelred/following{/other_user}","gists_url":"https://api.github.com/users/aelred/gists{/gist_id}","starred_url":"https://api.github.com/users/aelred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aelred/subscriptions","organizations_url":"https://api.github.com/users/aelred/orgs","repos_url":"https://api.github.com/users/aelred/repos","events_url":"https://api.github.com/users/aelred/events{/privacy}","received_events_url":"https://api.github.com/users/aelred/received_events","type":"User","site_admin":false},"body":"Since the argument can be null, we can say: `..., @Nullable String superRoleType);`\r\n\r\n(and same for below)","created_at":"2018-03-09T10:01:50Z","updated_at":"2018-03-09T10:15:21Z","html_url":"https://github.com/graknlabs/grakn/pull/2678#discussion_r173408792","pull_request_url":"https://api.github.com/repos/graknlabs/grakn/pulls/2678","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/graknlabs/grakn/pulls/comments/173408792"},"html":{"href":"https://github.com/graknlabs/grakn/pull/2678#discussion_r173408792"},"pull_request":{"href":"https://api.github.com/repos/graknlabs/grakn/pulls/2678"}}},"pull_request":{"url":"https://api.github.com/repos/graknlabs/grakn/pulls/2678","id":173795997,"html_url":"https://github.com/graknlabs/grakn/pull/2678","diff_url":"https://github.com/graknlabs/grakn/pull/2678.diff","patch_url":"https://github.com/graknlabs/grakn/pull/2678.patch","issue_url":"https://api.github.com/repos/graknlabs/grakn/issues/2678","number":2678,"state":"open","locked":false,"title":"Provide \"as\" syntax for overriding roles","user":{"login":"duckofyork","id":10497990,"avatar_url":"https://avatars0.githubusercontent.com/u/10497990?v=4","gravatar_id":"","url":"https://api.github.com/users/duckofyork","html_url":"https://github.com/duckofyork","followers_url":"https://api.github.com/users/duckofyork/followers","following_url":"https://api.github.com/users/duckofyork/following{/other_user}","gists_url":"https://api.github.com/users/duckofyork/gists{/gist_id}","starred_url":"https://api.github.com/users/duckofyork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckofyork/subscriptions","organizations_url":"https://api.github.com/users/duckofyork/orgs","repos_url":"https://api.github.com/users/duckofyork/repos","events_url":"https://api.github.com/users/duckofyork/events{/privacy}","received_events_url":"https://api.github.com/users/duckofyork/received_events","type":"User","site_admin":false},"body":"# Why is this PR needed?\r\n```parenthood sub relationship, relates parent, relates child;\r\nfatherhood sub parenthood, relates father as parent, relates son as child;\r\n=\r\nfatherhood sub parenthood, relates father, relates son;\r\nfather sub parent;\r\nson sub child;\r\n ```\r\nThis can eventually allow us to remove sub'ing roles entirely.\r\nhttps://work.grakn.ai/entity/19005-provideas-syntax-for-overriding-roles\r\n# What does the PR do?\r\nProvide `as` syntax for overriding roles\r\n# Does it break backwards compatibility?\r\nNo\r\n# List of future improvements not on this PR\r\nN.A","created_at":"2018-03-08T17:13:42Z","updated_at":"2018-03-09T10:15:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"743ae0b9858b6f34c217140631fef74f3863e66e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"kasper-piskorski","id":10519067,"avatar_url":"https://avatars2.githubusercontent.com/u/10519067?v=4","gravatar_id":"","url":"https://api.github.com/users/kasper-piskorski","html_url":"https://github.com/kasper-piskorski","followers_url":"https://api.github.com/users/kasper-piskorski/followers","following_url":"https://api.github.com/users/kasper-piskorski/following{/other_user}","gists_url":"https://api.github.com/users/kasper-piskorski/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper-piskorski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper-piskorski/subscriptions","organizations_url":"https://api.github.com/users/kasper-piskorski/orgs","repos_url":"https://api.github.com/users/kasper-piskorski/repos","events_url":"https://api.github.com/users/kasper-piskorski/events{/privacy}","received_events_url":"https://api.github.com/users/kasper-piskorski/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/graknlabs/grakn/pulls/2678/commits","review_comments_url":"https://api.github.com/repos/graknlabs/grakn/pulls/2678/comments","review_comment_url":"https://api.github.com/repos/graknlabs/grakn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graknlabs/grakn/issues/2678/comments","statuses_url":"https://api.github.com/repos/graknlabs/grakn/statuses/02ae9bcebbcb5865787cdb6dc023cf3c7a9f8118","head":{"label":"duckofyork:as","ref":"as","sha":"02ae9bcebbcb5865787cdb6dc023cf3c7a9f8118","user":{"login":"duckofyork","id":10497990,"avatar_url":"https://avatars0.githubusercontent.com/u/10497990?v=4","gravatar_id":"","url":"https://api.github.com/users/duckofyork","html_url":"https://github.com/duckofyork","followers_url":"https://api.github.com/users/duckofyork/followers","following_url":"https://api.github.com/users/duckofyork/following{/other_user}","gists_url":"https://api.github.com/users/duckofyork/gists{/gist_id}","starred_url":"https://api.github.com/users/duckofyork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckofyork/subscriptions","organizations_url":"https://api.github.com/users/duckofyork/orgs","repos_url":"https://api.github.com/users/duckofyork/repos","events_url":"https://api.github.com/users/duckofyork/events{/privacy}","received_events_url":"https://api.github.com/users/duckofyork/received_events","type":"User","site_admin":false},"repo":{"id":65722086,"name":"mindmapsdb","full_name":"duckofyork/mindmapsdb","owner":{"login":"duckofyork","id":10497990,"avatar_url":"https://avatars0.githubusercontent.com/u/10497990?v=4","gravatar_id":"","url":"https://api.github.com/users/duckofyork","html_url":"https://github.com/duckofyork","followers_url":"https://api.github.com/users/duckofyork/followers","following_url":"https://api.github.com/users/duckofyork/following{/other_user}","gists_url":"https://api.github.com/users/duckofyork/gists{/gist_id}","starred_url":"https://api.github.com/users/duckofyork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckofyork/subscriptions","organizations_url":"https://api.github.com/users/duckofyork/orgs","repos_url":"https://api.github.com/users/duckofyork/repos","events_url":"https://api.github.com/users/duckofyork/events{/privacy}","received_events_url":"https://api.github.com/users/duckofyork/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duckofyork/mindmapsdb","description":" A Knowledge Graph Platform ","fork":true,"url":"https://api.github.com/repos/duckofyork/mindmapsdb","forks_url":"https://api.github.com/repos/duckofyork/mindmapsdb/forks","keys_url":"https://api.github.com/repos/duckofyork/mindmapsdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckofyork/mindmapsdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckofyork/mindmapsdb/teams","hooks_url":"https://api.github.com/repos/duckofyork/mindmapsdb/hooks","issue_events_url":"https://api.github.com/repos/duckofyork/mindmapsdb/issues/events{/number}","events_url":"https://api.github.com/repos/duckofyork/mindmapsdb/events","assignees_url":"https://api.github.com/repos/duckofyork/mindmapsdb/assignees{/user}","branches_url":"https://api.github.com/repos/duckofyork/mindmapsdb/branches{/branch}","tags_url":"https://api.github.com/repos/duckofyork/mindmapsdb/tags","blobs_url":"https://api.github.com/repos/duckofyork/mindmapsdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckofyork/mindmapsdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckofyork/mindmapsdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckofyork/mindmapsdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckofyork/mindmapsdb/statuses/{sha}","languages_url":"https://api.github.com/repos/duckofyork/mindmapsdb/languages","stargazers_url":"https://api.github.com/repos/duckofyork/mindmapsdb/stargazers","contributors_url":"https://api.github.com/repos/duckofyork/mindmapsdb/contributors","subscribers_url":"https://api.github.com/repos/duckofyork/mindmapsdb/subscribers","subscription_url":"https://api.github.com/repos/duckofyork/mindmapsdb/subscription","commits_url":"https://api.github.com/repos/duckofyork/mindmapsdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckofyork/mindmapsdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckofyork/mindmapsdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckofyork/mindmapsdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/duckofyork/mindmapsdb/contents/{+path}","compare_url":"https://api.github.com/repos/duckofyork/mindmapsdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckofyork/mindmapsdb/merges","archive_url":"https://api.github.com/repos/duckofyork/mindmapsdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckofyork/mindmapsdb/downloads","issues_url":"https://api.github.com/repos/duckofyork/mindmapsdb/issues{/number}","pulls_url":"https://api.github.com/repos/duckofyork/mindmapsdb/pulls{/number}","milestones_url":"https://api.github.com/repos/duckofyork/mindmapsdb/milestones{/number}","notifications_url":"https://api.github.com/repos/duckofyork/mindmapsdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckofyork/mindmapsdb/labels{/name}","releases_url":"https://api.github.com/repos/duckofyork/mindmapsdb/releases{/id}","deployments_url":"https://api.github.com/repos/duckofyork/mindmapsdb/deployments","created_at":"2016-08-15T09:48:47Z","updated_at":"2016-11-29T22:28:05Z","pushed_at":"2018-03-08T17:23:38Z","git_url":"git://github.com/duckofyork/mindmapsdb.git","ssh_url":"git@github.com:duckofyork/mindmapsdb.git","clone_url":"https://github.com/duckofyork/mindmapsdb.git","svn_url":"https://github.com/duckofyork/mindmapsdb","homepage":"https://grakn.ai","size":50122,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"graknlabs:master","ref":"master","sha":"47b5986c291e542f305aea529f582b80cb18dc72","user":{"login":"graknlabs","id":10490615,"avatar_url":"https://avatars1.githubusercontent.com/u/10490615?v=4","gravatar_id":"","url":"https://api.github.com/users/graknlabs","html_url":"https://github.com/graknlabs","followers_url":"https://api.github.com/users/graknlabs/followers","following_url":"https://api.github.com/users/graknlabs/following{/other_user}","gists_url":"https://api.github.com/users/graknlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/graknlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graknlabs/subscriptions","organizations_url":"https://api.github.com/users/graknlabs/orgs","repos_url":"https://api.github.com/users/graknlabs/repos","events_url":"https://api.github.com/users/graknlabs/events{/privacy}","received_events_url":"https://api.github.com/users/graknlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":63110867,"name":"grakn","full_name":"graknlabs/grakn","owner":{"login":"graknlabs","id":10490615,"avatar_url":"https://avatars1.githubusercontent.com/u/10490615?v=4","gravatar_id":"","url":"https://api.github.com/users/graknlabs","html_url":"https://github.com/graknlabs","followers_url":"https://api.github.com/users/graknlabs/followers","following_url":"https://api.github.com/users/graknlabs/following{/other_user}","gists_url":"https://api.github.com/users/graknlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/graknlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graknlabs/subscriptions","organizations_url":"https://api.github.com/users/graknlabs/orgs","repos_url":"https://api.github.com/users/graknlabs/repos","events_url":"https://api.github.com/users/graknlabs/events{/privacy}","received_events_url":"https://api.github.com/users/graknlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/graknlabs/grakn","description":"The Hyper-Relational Database for Knowledge Engineering","fork":false,"url":"https://api.github.com/repos/graknlabs/grakn","forks_url":"https://api.github.com/repos/graknlabs/grakn/forks","keys_url":"https://api.github.com/repos/graknlabs/grakn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graknlabs/grakn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graknlabs/grakn/teams","hooks_url":"https://api.github.com/repos/graknlabs/grakn/hooks","issue_events_url":"https://api.github.com/repos/graknlabs/grakn/issues/events{/number}","events_url":"https://api.github.com/repos/graknlabs/grakn/events","assignees_url":"https://api.github.com/repos/graknlabs/grakn/assignees{/user}","branches_url":"https://api.github.com/repos/graknlabs/grakn/branches{/branch}","tags_url":"https://api.github.com/repos/graknlabs/grakn/tags","blobs_url":"https://api.github.com/repos/graknlabs/grakn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graknlabs/grakn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graknlabs/grakn/git/refs{/sha}","trees_url":"https://api.github.com/repos/graknlabs/grakn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graknlabs/grakn/statuses/{sha}","languages_url":"https://api.github.com/repos/graknlabs/grakn/languages","stargazers_url":"https://api.github.com/repos/graknlabs/grakn/stargazers","contributors_url":"https://api.github.com/repos/graknlabs/grakn/contributors","subscribers_url":"https://api.github.com/repos/graknlabs/grakn/subscribers","subscription_url":"https://api.github.com/repos/graknlabs/grakn/subscription","commits_url":"https://api.github.com/repos/graknlabs/grakn/commits{/sha}","git_commits_url":"https://api.github.com/repos/graknlabs/grakn/git/commits{/sha}","comments_url":"https://api.github.com/repos/graknlabs/grakn/comments{/number}","issue_comment_url":"https://api.github.com/repos/graknlabs/grakn/issues/comments{/number}","contents_url":"https://api.github.com/repos/graknlabs/grakn/contents/{+path}","compare_url":"https://api.github.com/repos/graknlabs/grakn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graknlabs/grakn/merges","archive_url":"https://api.github.com/repos/graknlabs/grakn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graknlabs/grakn/downloads","issues_url":"https://api.github.com/repos/graknlabs/grakn/issues{/number}","pulls_url":"https://api.github.com/repos/graknlabs/grakn/pulls{/number}","milestones_url":"https://api.github.com/repos/graknlabs/grakn/milestones{/number}","notifications_url":"https://api.github.com/repos/graknlabs/grakn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graknlabs/grakn/labels{/name}","releases_url":"https://api.github.com/repos/graknlabs/grakn/releases{/id}","deployments_url":"https://api.github.com/repos/graknlabs/grakn/deployments","created_at":"2016-07-11T23:59:57Z","updated_at":"2018-03-08T21:12:05Z","pushed_at":"2018-03-08T18:23:27Z","git_url":"git://github.com/graknlabs/grakn.git","ssh_url":"git@github.com:graknlabs/grakn.git","clone_url":"https://github.com/graknlabs/grakn.git","svn_url":"https://github.com/graknlabs/grakn","homepage":"https://grakn.ai","size":49775,"stargazers_count":821,"watchers_count":821,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":109,"mirror_url":null,"archived":false,"open_issues_count":43,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":109,"open_issues":43,"watchers":821,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graknlabs/grakn/pulls/2678"},"html":{"href":"https://github.com/graknlabs/grakn/pull/2678"},"issue":{"href":"https://api.github.com/repos/graknlabs/grakn/issues/2678"},"comments":{"href":"https://api.github.com/repos/graknlabs/grakn/issues/2678/comments"},"review_comments":{"href":"https://api.github.com/repos/graknlabs/grakn/pulls/2678/comments"},"review_comment":{"href":"https://api.github.com/repos/graknlabs/grakn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graknlabs/grakn/pulls/2678/commits"},"statuses":{"href":"https://api.github.com/repos/graknlabs/grakn/statuses/02ae9bcebbcb5865787cdb6dc023cf3c7a9f8118"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"aelred"}}