{"action":"created","comment":{"url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/comments/68901615","id":68901615,"diff_hunk":"@@ -113,6 +113,31 @@ def installVocabularies(context):\n             settings.arch_remains.append(dict(id=vocab_entry['id'],\n                                               title=vocab_entry['title']))\n \n+    # prepopulate relationship_types vocab - if uninitialized\n+    if not settings.relationship_types:\n+        settings.relationship_types = []\n+        vocab_data = [\n+            {'id': 'connection', 'title': 'connection', \n+             'same_as' : '', 'hidden' : False},\n+            {'id': 'at', 'title': 'at', \n+             'same_as' : '', 'hidden' : False},\n+            {'id': 'on', 'title': 'on', \n+             'same_as' : '', 'hidden' : False},\n+            {'id': 'part_of_admin', 'title': 'part of (administrative)', \n+             'same_as' : '', 'hidden' : False},\n+            {'id': 'part_of_regional', 'title': 'part of (regional)', \n+             'same_as' : '', 'hidden' : False},\n+            {'id': 'near', 'title': 'near', \n+             'same_as' : '', 'hidden' : False},\n+            {'id': 'intersects', 'title': 'intersects', \n+             'same_as' : '', 'hidden' : False},\n+        ]\n+        for vocab_entry in vocab_data:\n+            settings.relationship_types.append(dict(id=vocab_entry['id'],\n+                                              title=vocab_entry['title'],","path":"pleiades/vocabularies/setuphandlers.py","position":25,"original_position":25,"commit_id":"730b99aac32a9b70be82434e0c4a385b7eb31e3b","original_commit_id":"730b99aac32a9b70be82434e0c4a385b7eb31e3b","user":{"login":"alecpm","id":202854,"avatar_url":"https://avatars.githubusercontent.com/u/202854?v=3","gravatar_id":"","url":"https://api.github.com/users/alecpm","html_url":"https://github.com/alecpm","followers_url":"https://api.github.com/users/alecpm/followers","following_url":"https://api.github.com/users/alecpm/following{/other_user}","gists_url":"https://api.github.com/users/alecpm/gists{/gist_id}","starred_url":"https://api.github.com/users/alecpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecpm/subscriptions","organizations_url":"https://api.github.com/users/alecpm/orgs","repos_url":"https://api.github.com/users/alecpm/repos","events_url":"https://api.github.com/users/alecpm/events{/privacy}","received_events_url":"https://api.github.com/users/alecpm/received_events","type":"User","site_admin":false},"body":"That's unexpected! Whatever works I guess.","created_at":"2016-06-29T08:04:49Z","updated_at":"2016-06-29T08:04:49Z","html_url":"https://github.com/isawnyu/pleiades-vocabularies/pull/3#discussion_r68901615","pull_request_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/comments/68901615"},"html":{"href":"https://github.com/isawnyu/pleiades-vocabularies/pull/3#discussion_r68901615"},"pull_request":{"href":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/3","id":75537330,"html_url":"https://github.com/isawnyu/pleiades-vocabularies/pull/3","diff_url":"https://github.com/isawnyu/pleiades-vocabularies/pull/3.diff","patch_url":"https://github.com/isawnyu/pleiades-vocabularies/pull/3.patch","issue_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/issues/3","number":3,"state":"closed","locked":false,"title":"Add relationship_types vocabulary and populate with default data.","user":{"login":"witekdev","id":883619,"avatar_url":"https://avatars.githubusercontent.com/u/883619?v=3","gravatar_id":"","url":"https://api.github.com/users/witekdev","html_url":"https://github.com/witekdev","followers_url":"https://api.github.com/users/witekdev/followers","following_url":"https://api.github.com/users/witekdev/following{/other_user}","gists_url":"https://api.github.com/users/witekdev/gists{/gist_id}","starred_url":"https://api.github.com/users/witekdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/witekdev/subscriptions","organizations_url":"https://api.github.com/users/witekdev/orgs","repos_url":"https://api.github.com/users/witekdev/repos","events_url":"https://api.github.com/users/witekdev/events{/privacy}","received_events_url":"https://api.github.com/users/witekdev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-28T19:39:10Z","updated_at":"2016-06-29T08:04:49Z","closed_at":"2016-06-28T20:51:20Z","merged_at":null,"merge_commit_sha":"b906bfcf7d262f63ddc08eae220ad55a4939a5c7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/3/commits","review_comments_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/3/comments","review_comment_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/comments{/number}","comments_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/issues/3/comments","statuses_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/statuses/730b99aac32a9b70be82434e0c4a385b7eb31e3b","head":{"label":"isawnyu:relationship_type_vocab","ref":"relationship_type_vocab","sha":"730b99aac32a9b70be82434e0c4a385b7eb31e3b","user":{"login":"isawnyu","id":1489966,"avatar_url":"https://avatars.githubusercontent.com/u/1489966?v=3","gravatar_id":"","url":"https://api.github.com/users/isawnyu","html_url":"https://github.com/isawnyu","followers_url":"https://api.github.com/users/isawnyu/followers","following_url":"https://api.github.com/users/isawnyu/following{/other_user}","gists_url":"https://api.github.com/users/isawnyu/gists{/gist_id}","starred_url":"https://api.github.com/users/isawnyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isawnyu/subscriptions","organizations_url":"https://api.github.com/users/isawnyu/orgs","repos_url":"https://api.github.com/users/isawnyu/repos","events_url":"https://api.github.com/users/isawnyu/events{/privacy}","received_events_url":"https://api.github.com/users/isawnyu/received_events","type":"Organization","site_admin":false},"repo":{"id":51457106,"name":"pleiades-vocabularies","full_name":"isawnyu/pleiades-vocabularies","owner":{"login":"isawnyu","id":1489966,"avatar_url":"https://avatars.githubusercontent.com/u/1489966?v=3","gravatar_id":"","url":"https://api.github.com/users/isawnyu","html_url":"https://github.com/isawnyu","followers_url":"https://api.github.com/users/isawnyu/followers","following_url":"https://api.github.com/users/isawnyu/following{/other_user}","gists_url":"https://api.github.com/users/isawnyu/gists{/gist_id}","starred_url":"https://api.github.com/users/isawnyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isawnyu/subscriptions","organizations_url":"https://api.github.com/users/isawnyu/orgs","repos_url":"https://api.github.com/users/isawnyu/repos","events_url":"https://api.github.com/users/isawnyu/events{/privacy}","received_events_url":"https://api.github.com/users/isawnyu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/isawnyu/pleiades-vocabularies","description":null,"fork":false,"url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies","forks_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/forks","keys_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/teams","hooks_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/hooks","issue_events_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/issues/events{/number}","events_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/events","assignees_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/assignees{/user}","branches_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/branches{/branch}","tags_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/tags","blobs_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/git/refs{/sha}","trees_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/statuses/{sha}","languages_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/languages","stargazers_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/stargazers","contributors_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/contributors","subscribers_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/subscribers","subscription_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/subscription","commits_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/commits{/sha}","git_commits_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/git/commits{/sha}","comments_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/comments{/number}","issue_comment_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/issues/comments{/number}","contents_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/contents/{+path}","compare_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/merges","archive_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/downloads","issues_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/issues{/number}","pulls_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls{/number}","milestones_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/milestones{/number}","notifications_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/labels{/name}","releases_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/releases{/id}","deployments_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/deployments","created_at":"2016-02-10T17:17:33Z","updated_at":"2016-02-10T17:21:24Z","pushed_at":"2016-06-29T05:36:20Z","git_url":"git://github.com/isawnyu/pleiades-vocabularies.git","ssh_url":"git@github.com:isawnyu/pleiades-vocabularies.git","clone_url":"https://github.com/isawnyu/pleiades-vocabularies.git","svn_url":"https://github.com/isawnyu/pleiades-vocabularies","homepage":null,"size":387,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"isawnyu:master","ref":"master","sha":"0653326e63ddbeb71aa2d7e0d056e8dc5dc8b0a3","user":{"login":"isawnyu","id":1489966,"avatar_url":"https://avatars.githubusercontent.com/u/1489966?v=3","gravatar_id":"","url":"https://api.github.com/users/isawnyu","html_url":"https://github.com/isawnyu","followers_url":"https://api.github.com/users/isawnyu/followers","following_url":"https://api.github.com/users/isawnyu/following{/other_user}","gists_url":"https://api.github.com/users/isawnyu/gists{/gist_id}","starred_url":"https://api.github.com/users/isawnyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isawnyu/subscriptions","organizations_url":"https://api.github.com/users/isawnyu/orgs","repos_url":"https://api.github.com/users/isawnyu/repos","events_url":"https://api.github.com/users/isawnyu/events{/privacy}","received_events_url":"https://api.github.com/users/isawnyu/received_events","type":"Organization","site_admin":false},"repo":{"id":51457106,"name":"pleiades-vocabularies","full_name":"isawnyu/pleiades-vocabularies","owner":{"login":"isawnyu","id":1489966,"avatar_url":"https://avatars.githubusercontent.com/u/1489966?v=3","gravatar_id":"","url":"https://api.github.com/users/isawnyu","html_url":"https://github.com/isawnyu","followers_url":"https://api.github.com/users/isawnyu/followers","following_url":"https://api.github.com/users/isawnyu/following{/other_user}","gists_url":"https://api.github.com/users/isawnyu/gists{/gist_id}","starred_url":"https://api.github.com/users/isawnyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isawnyu/subscriptions","organizations_url":"https://api.github.com/users/isawnyu/orgs","repos_url":"https://api.github.com/users/isawnyu/repos","events_url":"https://api.github.com/users/isawnyu/events{/privacy}","received_events_url":"https://api.github.com/users/isawnyu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/isawnyu/pleiades-vocabularies","description":null,"fork":false,"url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies","forks_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/forks","keys_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/teams","hooks_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/hooks","issue_events_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/issues/events{/number}","events_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/events","assignees_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/assignees{/user}","branches_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/branches{/branch}","tags_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/tags","blobs_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/git/refs{/sha}","trees_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/statuses/{sha}","languages_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/languages","stargazers_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/stargazers","contributors_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/contributors","subscribers_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/subscribers","subscription_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/subscription","commits_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/commits{/sha}","git_commits_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/git/commits{/sha}","comments_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/comments{/number}","issue_comment_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/issues/comments{/number}","contents_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/contents/{+path}","compare_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/merges","archive_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/downloads","issues_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/issues{/number}","pulls_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls{/number}","milestones_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/milestones{/number}","notifications_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/labels{/name}","releases_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/releases{/id}","deployments_url":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/deployments","created_at":"2016-02-10T17:17:33Z","updated_at":"2016-02-10T17:21:24Z","pushed_at":"2016-06-29T05:36:20Z","git_url":"git://github.com/isawnyu/pleiades-vocabularies.git","ssh_url":"git@github.com:isawnyu/pleiades-vocabularies.git","clone_url":"https://github.com/isawnyu/pleiades-vocabularies.git","svn_url":"https://github.com/isawnyu/pleiades-vocabularies","homepage":null,"size":387,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/3"},"html":{"href":"https://github.com/isawnyu/pleiades-vocabularies/pull/3"},"issue":{"href":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/issues/3"},"comments":{"href":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/isawnyu/pleiades-vocabularies/statuses/730b99aac32a9b70be82434e0c4a385b7eb31e3b"}}}}
{"actor":{"display_login":"alecpm"}}