{"action":"created","comment":{"url":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/comments/83436794","pull_request_review_id":4282077,"id":83436794,"diff_hunk":"@@ -0,0 +1,52 @@\n+package com.bio4j.data.ncbiTaxonomy\n+\n+import com.bio4j.data._\n+import com.bio4j.model._\n+import com.bio4j.angulillos._\n+import scala.compat.java8.OptionConverters._\n+\n+case class Process[V,E](val graph: NCBITaxonomyGraph[V,E]) {\n+\n+  type G = NCBITaxonomyGraph[V,E]\n+\n+  val nodes = GraphProcess.generically[V,E] (graph,\n+    (node: TaxonNode, g: G) => {\n+\n+      val vertex = g.taxon.addVertex\n+        .set(g.taxon.id, node.taxID)\n+        .set(g.taxon.taxonomicRank, node.rank)\n+\n+      (graph, vertex)\n+    }\n+  )\n+\n+  val parents = GraphProcess.generically[V,E] (graph,\n+    (node: TaxonNode, g: G) => {\n+\n+      val srcOpt = g.taxon.id.index.find(node.taxID).asScala\n+      val tgtOpt = g.taxon.id.index.find(node.parentTaxID).asScala\n+\n+      val edges = (srcOpt zip tgtOpt).map { case (s, t) =>\n+        g.parent.addEdge(s, t)\n+      }\n+\n+      (graph, edges)\n+    }\n+  )\n+\n+  val names = GraphProcess.generically[V,E] (graph,\n+    (taxName: ScientificName, g: G) => {\n+\n+      val taxon = g.taxon.id.index.find(taxName.taxID).asScala\n+\n+      val vertices = taxon.map {\n+        _.set(g.taxon.name, taxName.scientificName)\n+      }\n+\n+      (graph, vertices)\n+    }\n+  )\n+\n+  private def findNode(g: G, id: String): Option[G#Taxon] =","path":"src/main/scala/ncbiTaxonomy/ncbiTaxonomy.scala","position":50,"original_position":50,"commit_id":"ec9ece28fa644069b0d13d787904c9ba67ab5f65","original_commit_id":"ec9ece28fa644069b0d13d787904c9ba67ab5f65","user":{"login":"eparejatobes","id":204693,"avatar_url":"https://avatars.githubusercontent.com/u/204693?v=3","gravatar_id":"","url":"https://api.github.com/users/eparejatobes","html_url":"https://github.com/eparejatobes","followers_url":"https://api.github.com/users/eparejatobes/followers","following_url":"https://api.github.com/users/eparejatobes/following{/other_user}","gists_url":"https://api.github.com/users/eparejatobes/gists{/gist_id}","starred_url":"https://api.github.com/users/eparejatobes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eparejatobes/subscriptions","organizations_url":"https://api.github.com/users/eparejatobes/orgs","repos_url":"https://api.github.com/users/eparejatobes/repos","events_url":"https://api.github.com/users/eparejatobes/events{/privacy}","received_events_url":"https://api.github.com/users/eparejatobes/received_events","type":"User","site_admin":false},"body":"either use it or remove it","created_at":"2016-10-14T14:48:09Z","updated_at":"2016-10-14T14:50:27Z","html_url":"https://github.com/bio4j/bio4j-data-import/pull/8#discussion_r83436794","pull_request_url":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/comments/83436794"},"html":{"href":"https://github.com/bio4j/bio4j-data-import/pull/8#discussion_r83436794"},"pull_request":{"href":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/8","id":89393251,"html_url":"https://github.com/bio4j/bio4j-data-import/pull/8","diff_url":"https://github.com/bio4j/bio4j-data-import/pull/8.diff","patch_url":"https://github.com/bio4j/bio4j-data-import/pull/8.patch","issue_url":"https://api.github.com/repos/bio4j/bio4j-data-import/issues/8","number":8,"state":"open","locked":false,"title":"NCBI taxonomy data import","user":{"login":"laughedelic","id":766656,"avatar_url":"https://avatars.githubusercontent.com/u/766656?v=3","gravatar_id":"","url":"https://api.github.com/users/laughedelic","html_url":"https://github.com/laughedelic","followers_url":"https://api.github.com/users/laughedelic/followers","following_url":"https://api.github.com/users/laughedelic/following{/other_user}","gists_url":"https://api.github.com/users/laughedelic/gists{/gist_id}","starred_url":"https://api.github.com/users/laughedelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laughedelic/subscriptions","organizations_url":"https://api.github.com/users/laughedelic/orgs","repos_url":"https://api.github.com/users/laughedelic/repos","events_url":"https://api.github.com/users/laughedelic/events{/privacy}","received_events_url":"https://api.github.com/users/laughedelic/received_events","type":"User","site_admin":false},"body":"Again, look at bio4j/bio4j.","created_at":"2016-10-14T14:21:33Z","updated_at":"2016-10-14T14:50:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4555f7e1b24955dea759f75a67514a3c35db7438","assignee":{"login":"laughedelic","id":766656,"avatar_url":"https://avatars.githubusercontent.com/u/766656?v=3","gravatar_id":"","url":"https://api.github.com/users/laughedelic","html_url":"https://github.com/laughedelic","followers_url":"https://api.github.com/users/laughedelic/followers","following_url":"https://api.github.com/users/laughedelic/following{/other_user}","gists_url":"https://api.github.com/users/laughedelic/gists{/gist_id}","starred_url":"https://api.github.com/users/laughedelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laughedelic/subscriptions","organizations_url":"https://api.github.com/users/laughedelic/orgs","repos_url":"https://api.github.com/users/laughedelic/repos","events_url":"https://api.github.com/users/laughedelic/events{/privacy}","received_events_url":"https://api.github.com/users/laughedelic/received_events","type":"User","site_admin":false},"assignees":[{"login":"laughedelic","id":766656,"avatar_url":"https://avatars.githubusercontent.com/u/766656?v=3","gravatar_id":"","url":"https://api.github.com/users/laughedelic","html_url":"https://github.com/laughedelic","followers_url":"https://api.github.com/users/laughedelic/followers","following_url":"https://api.github.com/users/laughedelic/following{/other_user}","gists_url":"https://api.github.com/users/laughedelic/gists{/gist_id}","starred_url":"https://api.github.com/users/laughedelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laughedelic/subscriptions","organizations_url":"https://api.github.com/users/laughedelic/orgs","repos_url":"https://api.github.com/users/laughedelic/repos","events_url":"https://api.github.com/users/laughedelic/events{/privacy}","received_events_url":"https://api.github.com/users/laughedelic/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/8/commits","review_comments_url":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/8/comments","review_comment_url":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bio4j/bio4j-data-import/issues/8/comments","statuses_url":"https://api.github.com/repos/bio4j/bio4j-data-import/statuses/ec9ece28fa644069b0d13d787904c9ba67ab5f65","head":{"label":"bio4j:pr/8","ref":"pr/8","sha":"ec9ece28fa644069b0d13d787904c9ba67ab5f65","user":{"login":"bio4j","id":1142902,"avatar_url":"https://avatars.githubusercontent.com/u/1142902?v=3","gravatar_id":"","url":"https://api.github.com/users/bio4j","html_url":"https://github.com/bio4j","followers_url":"https://api.github.com/users/bio4j/followers","following_url":"https://api.github.com/users/bio4j/following{/other_user}","gists_url":"https://api.github.com/users/bio4j/gists{/gist_id}","starred_url":"https://api.github.com/users/bio4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bio4j/subscriptions","organizations_url":"https://api.github.com/users/bio4j/orgs","repos_url":"https://api.github.com/users/bio4j/repos","events_url":"https://api.github.com/users/bio4j/events{/privacy}","received_events_url":"https://api.github.com/users/bio4j/received_events","type":"Organization","site_admin":false},"repo":{"id":65479267,"name":"bio4j-data-import","full_name":"bio4j/bio4j-data-import","owner":{"login":"bio4j","id":1142902,"avatar_url":"https://avatars.githubusercontent.com/u/1142902?v=3","gravatar_id":"","url":"https://api.github.com/users/bio4j","html_url":"https://github.com/bio4j","followers_url":"https://api.github.com/users/bio4j/followers","following_url":"https://api.github.com/users/bio4j/following{/other_user}","gists_url":"https://api.github.com/users/bio4j/gists{/gist_id}","starred_url":"https://api.github.com/users/bio4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bio4j/subscriptions","organizations_url":"https://api.github.com/users/bio4j/orgs","repos_url":"https://api.github.com/users/bio4j/repos","events_url":"https://api.github.com/users/bio4j/events{/privacy}","received_events_url":"https://api.github.com/users/bio4j/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bio4j/bio4j-data-import","description":"Data import for standard open data","fork":false,"url":"https://api.github.com/repos/bio4j/bio4j-data-import","forks_url":"https://api.github.com/repos/bio4j/bio4j-data-import/forks","keys_url":"https://api.github.com/repos/bio4j/bio4j-data-import/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bio4j/bio4j-data-import/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bio4j/bio4j-data-import/teams","hooks_url":"https://api.github.com/repos/bio4j/bio4j-data-import/hooks","issue_events_url":"https://api.github.com/repos/bio4j/bio4j-data-import/issues/events{/number}","events_url":"https://api.github.com/repos/bio4j/bio4j-data-import/events","assignees_url":"https://api.github.com/repos/bio4j/bio4j-data-import/assignees{/user}","branches_url":"https://api.github.com/repos/bio4j/bio4j-data-import/branches{/branch}","tags_url":"https://api.github.com/repos/bio4j/bio4j-data-import/tags","blobs_url":"https://api.github.com/repos/bio4j/bio4j-data-import/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bio4j/bio4j-data-import/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bio4j/bio4j-data-import/git/refs{/sha}","trees_url":"https://api.github.com/repos/bio4j/bio4j-data-import/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bio4j/bio4j-data-import/statuses/{sha}","languages_url":"https://api.github.com/repos/bio4j/bio4j-data-import/languages","stargazers_url":"https://api.github.com/repos/bio4j/bio4j-data-import/stargazers","contributors_url":"https://api.github.com/repos/bio4j/bio4j-data-import/contributors","subscribers_url":"https://api.github.com/repos/bio4j/bio4j-data-import/subscribers","subscription_url":"https://api.github.com/repos/bio4j/bio4j-data-import/subscription","commits_url":"https://api.github.com/repos/bio4j/bio4j-data-import/commits{/sha}","git_commits_url":"https://api.github.com/repos/bio4j/bio4j-data-import/git/commits{/sha}","comments_url":"https://api.github.com/repos/bio4j/bio4j-data-import/comments{/number}","issue_comment_url":"https://api.github.com/repos/bio4j/bio4j-data-import/issues/comments{/number}","contents_url":"https://api.github.com/repos/bio4j/bio4j-data-import/contents/{+path}","compare_url":"https://api.github.com/repos/bio4j/bio4j-data-import/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bio4j/bio4j-data-import/merges","archive_url":"https://api.github.com/repos/bio4j/bio4j-data-import/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bio4j/bio4j-data-import/downloads","issues_url":"https://api.github.com/repos/bio4j/bio4j-data-import/issues{/number}","pulls_url":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls{/number}","milestones_url":"https://api.github.com/repos/bio4j/bio4j-data-import/milestones{/number}","notifications_url":"https://api.github.com/repos/bio4j/bio4j-data-import/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bio4j/bio4j-data-import/labels{/name}","releases_url":"https://api.github.com/repos/bio4j/bio4j-data-import/releases{/id}","deployments_url":"https://api.github.com/repos/bio4j/bio4j-data-import/deployments","created_at":"2016-08-11T15:12:06Z","updated_at":"2016-08-26T14:41:48Z","pushed_at":"2016-10-14T14:41:07Z","git_url":"git://github.com/bio4j/bio4j-data-import.git","ssh_url":"git@github.com:bio4j/bio4j-data-import.git","clone_url":"https://github.com/bio4j/bio4j-data-import.git","svn_url":"https://github.com/bio4j/bio4j-data-import","homepage":null,"size":3149,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"bio4j:master","ref":"master","sha":"43be2e6b1172cd516a04ee6c2c5fc9bcb56424d3","user":{"login":"bio4j","id":1142902,"avatar_url":"https://avatars.githubusercontent.com/u/1142902?v=3","gravatar_id":"","url":"https://api.github.com/users/bio4j","html_url":"https://github.com/bio4j","followers_url":"https://api.github.com/users/bio4j/followers","following_url":"https://api.github.com/users/bio4j/following{/other_user}","gists_url":"https://api.github.com/users/bio4j/gists{/gist_id}","starred_url":"https://api.github.com/users/bio4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bio4j/subscriptions","organizations_url":"https://api.github.com/users/bio4j/orgs","repos_url":"https://api.github.com/users/bio4j/repos","events_url":"https://api.github.com/users/bio4j/events{/privacy}","received_events_url":"https://api.github.com/users/bio4j/received_events","type":"Organization","site_admin":false},"repo":{"id":65479267,"name":"bio4j-data-import","full_name":"bio4j/bio4j-data-import","owner":{"login":"bio4j","id":1142902,"avatar_url":"https://avatars.githubusercontent.com/u/1142902?v=3","gravatar_id":"","url":"https://api.github.com/users/bio4j","html_url":"https://github.com/bio4j","followers_url":"https://api.github.com/users/bio4j/followers","following_url":"https://api.github.com/users/bio4j/following{/other_user}","gists_url":"https://api.github.com/users/bio4j/gists{/gist_id}","starred_url":"https://api.github.com/users/bio4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bio4j/subscriptions","organizations_url":"https://api.github.com/users/bio4j/orgs","repos_url":"https://api.github.com/users/bio4j/repos","events_url":"https://api.github.com/users/bio4j/events{/privacy}","received_events_url":"https://api.github.com/users/bio4j/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bio4j/bio4j-data-import","description":"Data import for standard open data","fork":false,"url":"https://api.github.com/repos/bio4j/bio4j-data-import","forks_url":"https://api.github.com/repos/bio4j/bio4j-data-import/forks","keys_url":"https://api.github.com/repos/bio4j/bio4j-data-import/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bio4j/bio4j-data-import/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bio4j/bio4j-data-import/teams","hooks_url":"https://api.github.com/repos/bio4j/bio4j-data-import/hooks","issue_events_url":"https://api.github.com/repos/bio4j/bio4j-data-import/issues/events{/number}","events_url":"https://api.github.com/repos/bio4j/bio4j-data-import/events","assignees_url":"https://api.github.com/repos/bio4j/bio4j-data-import/assignees{/user}","branches_url":"https://api.github.com/repos/bio4j/bio4j-data-import/branches{/branch}","tags_url":"https://api.github.com/repos/bio4j/bio4j-data-import/tags","blobs_url":"https://api.github.com/repos/bio4j/bio4j-data-import/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bio4j/bio4j-data-import/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bio4j/bio4j-data-import/git/refs{/sha}","trees_url":"https://api.github.com/repos/bio4j/bio4j-data-import/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bio4j/bio4j-data-import/statuses/{sha}","languages_url":"https://api.github.com/repos/bio4j/bio4j-data-import/languages","stargazers_url":"https://api.github.com/repos/bio4j/bio4j-data-import/stargazers","contributors_url":"https://api.github.com/repos/bio4j/bio4j-data-import/contributors","subscribers_url":"https://api.github.com/repos/bio4j/bio4j-data-import/subscribers","subscription_url":"https://api.github.com/repos/bio4j/bio4j-data-import/subscription","commits_url":"https://api.github.com/repos/bio4j/bio4j-data-import/commits{/sha}","git_commits_url":"https://api.github.com/repos/bio4j/bio4j-data-import/git/commits{/sha}","comments_url":"https://api.github.com/repos/bio4j/bio4j-data-import/comments{/number}","issue_comment_url":"https://api.github.com/repos/bio4j/bio4j-data-import/issues/comments{/number}","contents_url":"https://api.github.com/repos/bio4j/bio4j-data-import/contents/{+path}","compare_url":"https://api.github.com/repos/bio4j/bio4j-data-import/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bio4j/bio4j-data-import/merges","archive_url":"https://api.github.com/repos/bio4j/bio4j-data-import/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bio4j/bio4j-data-import/downloads","issues_url":"https://api.github.com/repos/bio4j/bio4j-data-import/issues{/number}","pulls_url":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls{/number}","milestones_url":"https://api.github.com/repos/bio4j/bio4j-data-import/milestones{/number}","notifications_url":"https://api.github.com/repos/bio4j/bio4j-data-import/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bio4j/bio4j-data-import/labels{/name}","releases_url":"https://api.github.com/repos/bio4j/bio4j-data-import/releases{/id}","deployments_url":"https://api.github.com/repos/bio4j/bio4j-data-import/deployments","created_at":"2016-08-11T15:12:06Z","updated_at":"2016-08-26T14:41:48Z","pushed_at":"2016-10-14T14:41:07Z","git_url":"git://github.com/bio4j/bio4j-data-import.git","ssh_url":"git@github.com:bio4j/bio4j-data-import.git","clone_url":"https://github.com/bio4j/bio4j-data-import.git","svn_url":"https://github.com/bio4j/bio4j-data-import","homepage":null,"size":3149,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/8"},"html":{"href":"https://github.com/bio4j/bio4j-data-import/pull/8"},"issue":{"href":"https://api.github.com/repos/bio4j/bio4j-data-import/issues/8"},"comments":{"href":"https://api.github.com/repos/bio4j/bio4j-data-import/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bio4j/bio4j-data-import/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/bio4j/bio4j-data-import/statuses/ec9ece28fa644069b0d13d787904c9ba67ab5f65"}}}}
{"actor":{"display_login":"eparejatobes"}}