{"action":"created","comment":{"url":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/comments/137002886","pull_request_review_id":60614630,"id":137002886,"diff_hunk":"@@ -0,0 +1,71 @@\n+from Monument import Monument, Dataset\n+import importer_utils as utils\n+import importer as importer\n+\n+\n+class BoEs(Monument):\n+\n+    def set_adm_location(self):\n+        \"\"\"\n+        Set the administrative location.\n+\n+        Try to use the more specific municipality first,\n+        then the department if that didn't work.\n+        \"\"\"\n+        adm_match = None\n+        if self.has_non_empty_attribute(\"municipio\"):\n+            adm_match = utils.q_from_first_wikilink(\"es\", self.municipio)\n+        if not adm_match:\n+            adm_match = utils.q_from_first_wikilink(\"es\", self.departamento)\n+        if adm_match:\n+            self.add_statement(\"located_adm\", adm_match)\n+        else:\n+            self.add_to_report(\n+                \"departamento\", self.departamento, \"located_adm\")\n+\n+    def update_labels(self):\n+        spanish = utils.remove_markup(self.monumento)\n+        self.add_label(\"es\", spanish)\n+\n+    def set_monuments_all_id(self):\n+        self.monuments_all_id = str(self.id)\n+\n+    def set_heritage_id(self):","path":"importer/BoEs.py","position":33,"original_position":33,"commit_id":"1208743d5ada6350d2531f4e44aaf552ff74f8e1","original_commit_id":"1208743d5ada6350d2531f4e44aaf552ff74f8e1","user":{"login":"lokal-profil","id":4129218,"avatar_url":"https://avatars3.githubusercontent.com/u/4129218?v=4","gravatar_id":"","url":"https://api.github.com/users/lokal-profil","html_url":"https://github.com/lokal-profil","followers_url":"https://api.github.com/users/lokal-profil/followers","following_url":"https://api.github.com/users/lokal-profil/following{/other_user}","gists_url":"https://api.github.com/users/lokal-profil/gists{/gist_id}","starred_url":"https://api.github.com/users/lokal-profil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lokal-profil/subscriptions","organizations_url":"https://api.github.com/users/lokal-profil/orgs","repos_url":"https://api.github.com/users/lokal-profil/repos","events_url":"https://api.github.com/users/lokal-profil/events{/privacy}","received_events_url":"https://api.github.com/users/lokal-profil/received_events","type":"User","site_admin":false},"body":"Add a `BO-` prefix","created_at":"2017-09-05T14:25:48Z","updated_at":"2017-09-05T14:29:50Z","html_url":"https://github.com/Vesihiisi/COH-tools/pull/79#discussion_r137002886","pull_request_url":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/79","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/comments/137002886"},"html":{"href":"https://github.com/Vesihiisi/COH-tools/pull/79#discussion_r137002886"},"pull_request":{"href":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/79"}}},"pull_request":{"url":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/79","id":136248464,"html_url":"https://github.com/Vesihiisi/COH-tools/pull/79","diff_url":"https://github.com/Vesihiisi/COH-tools/pull/79.diff","patch_url":"https://github.com/Vesihiisi/COH-tools/pull/79.patch","issue_url":"https://api.github.com/repos/Vesihiisi/COH-tools/issues/79","number":79,"state":"open","locked":false,"title":"Bolivia","user":{"login":"Vesihiisi","id":1749153,"avatar_url":"https://avatars2.githubusercontent.com/u/1749153?v=4","gravatar_id":"","url":"https://api.github.com/users/Vesihiisi","html_url":"https://github.com/Vesihiisi","followers_url":"https://api.github.com/users/Vesihiisi/followers","following_url":"https://api.github.com/users/Vesihiisi/following{/other_user}","gists_url":"https://api.github.com/users/Vesihiisi/gists{/gist_id}","starred_url":"https://api.github.com/users/Vesihiisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vesihiisi/subscriptions","organizations_url":"https://api.github.com/users/Vesihiisi/orgs","repos_url":"https://api.github.com/users/Vesihiisi/repos","events_url":"https://api.github.com/users/Vesihiisi/events{/privacy}","received_events_url":"https://api.github.com/users/Vesihiisi/received_events","type":"User","site_admin":false},"body":"Base class for Bolivia from the Spanish.\r\n\r\nMapping: https://www.wikidata.org/wiki/Wikidata:WikiProject_WLM/Mapping_tables/bo_(es)\r\nPreview: https://www.wikidata.org/wiki/Wikidata:WikiProject_WLM/Mapping_tables/bo_(es)/preview\r\n\r\nTask: https://phabricator.wikimedia.org/T174150","created_at":"2017-08-17T12:48:14Z","updated_at":"2017-09-05T14:29:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1d991b05a086a9a4b23111da29a0ee4fa9305df","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/79/commits","review_comments_url":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/79/comments","review_comment_url":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vesihiisi/COH-tools/issues/79/comments","statuses_url":"https://api.github.com/repos/Vesihiisi/COH-tools/statuses/1208743d5ada6350d2531f4e44aaf552ff74f8e1","head":{"label":"Vesihiisi:bolivia","ref":"bolivia","sha":"1208743d5ada6350d2531f4e44aaf552ff74f8e1","user":{"login":"Vesihiisi","id":1749153,"avatar_url":"https://avatars2.githubusercontent.com/u/1749153?v=4","gravatar_id":"","url":"https://api.github.com/users/Vesihiisi","html_url":"https://github.com/Vesihiisi","followers_url":"https://api.github.com/users/Vesihiisi/followers","following_url":"https://api.github.com/users/Vesihiisi/following{/other_user}","gists_url":"https://api.github.com/users/Vesihiisi/gists{/gist_id}","starred_url":"https://api.github.com/users/Vesihiisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vesihiisi/subscriptions","organizations_url":"https://api.github.com/users/Vesihiisi/orgs","repos_url":"https://api.github.com/users/Vesihiisi/repos","events_url":"https://api.github.com/users/Vesihiisi/events{/privacy}","received_events_url":"https://api.github.com/users/Vesihiisi/received_events","type":"User","site_admin":false},"repo":{"id":76935480,"name":"COH-tools","full_name":"Vesihiisi/COH-tools","owner":{"login":"Vesihiisi","id":1749153,"avatar_url":"https://avatars2.githubusercontent.com/u/1749153?v=4","gravatar_id":"","url":"https://api.github.com/users/Vesihiisi","html_url":"https://github.com/Vesihiisi","followers_url":"https://api.github.com/users/Vesihiisi/followers","following_url":"https://api.github.com/users/Vesihiisi/following{/other_user}","gists_url":"https://api.github.com/users/Vesihiisi/gists{/gist_id}","starred_url":"https://api.github.com/users/Vesihiisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vesihiisi/subscriptions","organizations_url":"https://api.github.com/users/Vesihiisi/orgs","repos_url":"https://api.github.com/users/Vesihiisi/repos","events_url":"https://api.github.com/users/Vesihiisi/events{/privacy}","received_events_url":"https://api.github.com/users/Vesihiisi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vesihiisi/COH-tools","description":"various tools for the Connected Open Heritage data migration project","fork":false,"url":"https://api.github.com/repos/Vesihiisi/COH-tools","forks_url":"https://api.github.com/repos/Vesihiisi/COH-tools/forks","keys_url":"https://api.github.com/repos/Vesihiisi/COH-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vesihiisi/COH-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vesihiisi/COH-tools/teams","hooks_url":"https://api.github.com/repos/Vesihiisi/COH-tools/hooks","issue_events_url":"https://api.github.com/repos/Vesihiisi/COH-tools/issues/events{/number}","events_url":"https://api.github.com/repos/Vesihiisi/COH-tools/events","assignees_url":"https://api.github.com/repos/Vesihiisi/COH-tools/assignees{/user}","branches_url":"https://api.github.com/repos/Vesihiisi/COH-tools/branches{/branch}","tags_url":"https://api.github.com/repos/Vesihiisi/COH-tools/tags","blobs_url":"https://api.github.com/repos/Vesihiisi/COH-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vesihiisi/COH-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vesihiisi/COH-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vesihiisi/COH-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vesihiisi/COH-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/Vesihiisi/COH-tools/languages","stargazers_url":"https://api.github.com/repos/Vesihiisi/COH-tools/stargazers","contributors_url":"https://api.github.com/repos/Vesihiisi/COH-tools/contributors","subscribers_url":"https://api.github.com/repos/Vesihiisi/COH-tools/subscribers","subscription_url":"https://api.github.com/repos/Vesihiisi/COH-tools/subscription","commits_url":"https://api.github.com/repos/Vesihiisi/COH-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vesihiisi/COH-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vesihiisi/COH-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vesihiisi/COH-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vesihiisi/COH-tools/contents/{+path}","compare_url":"https://api.github.com/repos/Vesihiisi/COH-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vesihiisi/COH-tools/merges","archive_url":"https://api.github.com/repos/Vesihiisi/COH-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vesihiisi/COH-tools/downloads","issues_url":"https://api.github.com/repos/Vesihiisi/COH-tools/issues{/number}","pulls_url":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/Vesihiisi/COH-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/Vesihiisi/COH-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vesihiisi/COH-tools/labels{/name}","releases_url":"https://api.github.com/repos/Vesihiisi/COH-tools/releases{/id}","deployments_url":"https://api.github.com/repos/Vesihiisi/COH-tools/deployments","created_at":"2016-12-20T07:51:44Z","updated_at":"2017-05-29T13:08:22Z","pushed_at":"2017-09-05T14:29:47Z","git_url":"git://github.com/Vesihiisi/COH-tools.git","ssh_url":"git@github.com:Vesihiisi/COH-tools.git","clone_url":"https://github.com/Vesihiisi/COH-tools.git","svn_url":"https://github.com/Vesihiisi/COH-tools","homepage":null,"size":2307,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":31,"forks":1,"open_issues":31,"watchers":3,"default_branch":"master"}},"base":{"label":"Vesihiisi:master","ref":"master","sha":"a88a4b897812774db350b32a70f561c078d63ede","user":{"login":"Vesihiisi","id":1749153,"avatar_url":"https://avatars2.githubusercontent.com/u/1749153?v=4","gravatar_id":"","url":"https://api.github.com/users/Vesihiisi","html_url":"https://github.com/Vesihiisi","followers_url":"https://api.github.com/users/Vesihiisi/followers","following_url":"https://api.github.com/users/Vesihiisi/following{/other_user}","gists_url":"https://api.github.com/users/Vesihiisi/gists{/gist_id}","starred_url":"https://api.github.com/users/Vesihiisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vesihiisi/subscriptions","organizations_url":"https://api.github.com/users/Vesihiisi/orgs","repos_url":"https://api.github.com/users/Vesihiisi/repos","events_url":"https://api.github.com/users/Vesihiisi/events{/privacy}","received_events_url":"https://api.github.com/users/Vesihiisi/received_events","type":"User","site_admin":false},"repo":{"id":76935480,"name":"COH-tools","full_name":"Vesihiisi/COH-tools","owner":{"login":"Vesihiisi","id":1749153,"avatar_url":"https://avatars2.githubusercontent.com/u/1749153?v=4","gravatar_id":"","url":"https://api.github.com/users/Vesihiisi","html_url":"https://github.com/Vesihiisi","followers_url":"https://api.github.com/users/Vesihiisi/followers","following_url":"https://api.github.com/users/Vesihiisi/following{/other_user}","gists_url":"https://api.github.com/users/Vesihiisi/gists{/gist_id}","starred_url":"https://api.github.com/users/Vesihiisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vesihiisi/subscriptions","organizations_url":"https://api.github.com/users/Vesihiisi/orgs","repos_url":"https://api.github.com/users/Vesihiisi/repos","events_url":"https://api.github.com/users/Vesihiisi/events{/privacy}","received_events_url":"https://api.github.com/users/Vesihiisi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vesihiisi/COH-tools","description":"various tools for the Connected Open Heritage data migration project","fork":false,"url":"https://api.github.com/repos/Vesihiisi/COH-tools","forks_url":"https://api.github.com/repos/Vesihiisi/COH-tools/forks","keys_url":"https://api.github.com/repos/Vesihiisi/COH-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vesihiisi/COH-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vesihiisi/COH-tools/teams","hooks_url":"https://api.github.com/repos/Vesihiisi/COH-tools/hooks","issue_events_url":"https://api.github.com/repos/Vesihiisi/COH-tools/issues/events{/number}","events_url":"https://api.github.com/repos/Vesihiisi/COH-tools/events","assignees_url":"https://api.github.com/repos/Vesihiisi/COH-tools/assignees{/user}","branches_url":"https://api.github.com/repos/Vesihiisi/COH-tools/branches{/branch}","tags_url":"https://api.github.com/repos/Vesihiisi/COH-tools/tags","blobs_url":"https://api.github.com/repos/Vesihiisi/COH-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vesihiisi/COH-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vesihiisi/COH-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vesihiisi/COH-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vesihiisi/COH-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/Vesihiisi/COH-tools/languages","stargazers_url":"https://api.github.com/repos/Vesihiisi/COH-tools/stargazers","contributors_url":"https://api.github.com/repos/Vesihiisi/COH-tools/contributors","subscribers_url":"https://api.github.com/repos/Vesihiisi/COH-tools/subscribers","subscription_url":"https://api.github.com/repos/Vesihiisi/COH-tools/subscription","commits_url":"https://api.github.com/repos/Vesihiisi/COH-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vesihiisi/COH-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vesihiisi/COH-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vesihiisi/COH-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vesihiisi/COH-tools/contents/{+path}","compare_url":"https://api.github.com/repos/Vesihiisi/COH-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vesihiisi/COH-tools/merges","archive_url":"https://api.github.com/repos/Vesihiisi/COH-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vesihiisi/COH-tools/downloads","issues_url":"https://api.github.com/repos/Vesihiisi/COH-tools/issues{/number}","pulls_url":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/Vesihiisi/COH-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/Vesihiisi/COH-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vesihiisi/COH-tools/labels{/name}","releases_url":"https://api.github.com/repos/Vesihiisi/COH-tools/releases{/id}","deployments_url":"https://api.github.com/repos/Vesihiisi/COH-tools/deployments","created_at":"2016-12-20T07:51:44Z","updated_at":"2017-05-29T13:08:22Z","pushed_at":"2017-09-05T14:29:47Z","git_url":"git://github.com/Vesihiisi/COH-tools.git","ssh_url":"git@github.com:Vesihiisi/COH-tools.git","clone_url":"https://github.com/Vesihiisi/COH-tools.git","svn_url":"https://github.com/Vesihiisi/COH-tools","homepage":null,"size":2307,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":31,"forks":1,"open_issues":31,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/79"},"html":{"href":"https://github.com/Vesihiisi/COH-tools/pull/79"},"issue":{"href":"https://api.github.com/repos/Vesihiisi/COH-tools/issues/79"},"comments":{"href":"https://api.github.com/repos/Vesihiisi/COH-tools/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vesihiisi/COH-tools/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/Vesihiisi/COH-tools/statuses/1208743d5ada6350d2531f4e44aaf552ff74f8e1"}},"author_association":"OWNER"}}
{"actor":{"display_login":"lokal-profil"}}