{"action":"opened","number":496,"pull_request":{"url":"https://api.github.com/repos/clulab/eidos/pulls/496","id":227114051,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3MTE0MDUx","html_url":"https://github.com/clulab/eidos/pull/496","diff_url":"https://github.com/clulab/eidos/pull/496.diff","patch_url":"https://github.com/clulab/eidos/pull/496.patch","issue_url":"https://api.github.com/repos/clulab/eidos/issues/496","number":496,"state":"open","locked":false,"title":"Web service endpoint for web application","user":{"login":"brandomr","id":5840199,"node_id":"MDQ6VXNlcjU4NDAxOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/5840199?v=4","gravatar_id":"","url":"https://api.github.com/users/brandomr","html_url":"https://github.com/brandomr","followers_url":"https://api.github.com/users/brandomr/followers","following_url":"https://api.github.com/users/brandomr/following{/other_user}","gists_url":"https://api.github.com/users/brandomr/gists{/gist_id}","starred_url":"https://api.github.com/users/brandomr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandomr/subscriptions","organizations_url":"https://api.github.com/users/brandomr/orgs","repos_url":"https://api.github.com/users/brandomr/repos","events_url":"https://api.github.com/users/brandomr/events{/privacy}","received_events_url":"https://api.github.com/users/brandomr/received_events","type":"User","site_admin":false},"body":"This PR includes service enabling the web application with the creation of a `/process_text` endpoint. After the web application is run, a user may `POST` a request with JSON to the `/process_text` endpoint. The user will be returned an Eidos processed document in JSON-LD format.\r\n\r\nI included additional docs/examples in the README as well as a test. I corrected the webapp tests so that they function when invoked with `sbt webapp/test`.\r\n\r\nI attempted to follow your design paradigms as best as I could, and intend this mostly to open discussion around this capability and hopefully to see it included in Eidos if you think it is useful and valid. \r\n\r\nThe use case for this is to be able to provide a ready made Docker container which initializes the web application upon start so that users (e.g. data scientists) who may only work in Python/R/etc. and are unfamiliar with Java/Scala could easily deploy Eidos. As INDRA and Delphi are Python this reduces friction for someone who wants to run INDRA + Delphi + Eidos.\r\n\r\nTo manually test this PR you should run (after cloning this fork) :\r\n```\r\ncd eidos\r\ngit checkout webservice\r\nsbt webapp/run\r\n```\r\nThen you can submit a request with:\r\n```\r\ncurl \\\r\n  --header \"Content-type: application/json\" \\\r\n  --request POST \\\r\n  --data '{\"text\": \"Drought increases regional insecurity.\"}' \\\r\n  http://localhost:9000/process_text\r\n```\r\n\r\nTo run the automated tests:\r\n```\r\ncd eidos\r\ngit checkout webservice\r\nsbt webapp/test\r\n```\r\n","created_at":"2018-10-30T23:28:52Z","updated_at":"2018-10-30T23:28:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/clulab/eidos/pulls/496/commits","review_comments_url":"https://api.github.com/repos/clulab/eidos/pulls/496/comments","review_comment_url":"https://api.github.com/repos/clulab/eidos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clulab/eidos/issues/496/comments","statuses_url":"https://api.github.com/repos/clulab/eidos/statuses/cfa2e50b1d7870d4c01bc06d81d91c266f4ae81b","head":{"label":"brandomr:webservice","ref":"webservice","sha":"cfa2e50b1d7870d4c01bc06d81d91c266f4ae81b","user":{"login":"brandomr","id":5840199,"node_id":"MDQ6VXNlcjU4NDAxOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/5840199?v=4","gravatar_id":"","url":"https://api.github.com/users/brandomr","html_url":"https://github.com/brandomr","followers_url":"https://api.github.com/users/brandomr/followers","following_url":"https://api.github.com/users/brandomr/following{/other_user}","gists_url":"https://api.github.com/users/brandomr/gists{/gist_id}","starred_url":"https://api.github.com/users/brandomr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandomr/subscriptions","organizations_url":"https://api.github.com/users/brandomr/orgs","repos_url":"https://api.github.com/users/brandomr/repos","events_url":"https://api.github.com/users/brandomr/events{/privacy}","received_events_url":"https://api.github.com/users/brandomr/received_events","type":"User","site_admin":false},"repo":{"id":155466439,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU0NjY0Mzk=","name":"eidos","full_name":"brandomr/eidos","private":false,"owner":{"login":"brandomr","id":5840199,"node_id":"MDQ6VXNlcjU4NDAxOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/5840199?v=4","gravatar_id":"","url":"https://api.github.com/users/brandomr","html_url":"https://github.com/brandomr","followers_url":"https://api.github.com/users/brandomr/followers","following_url":"https://api.github.com/users/brandomr/following{/other_user}","gists_url":"https://api.github.com/users/brandomr/gists{/gist_id}","starred_url":"https://api.github.com/users/brandomr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandomr/subscriptions","organizations_url":"https://api.github.com/users/brandomr/orgs","repos_url":"https://api.github.com/users/brandomr/repos","events_url":"https://api.github.com/users/brandomr/events{/privacy}","received_events_url":"https://api.github.com/users/brandomr/received_events","type":"User","site_admin":false},"html_url":"https://github.com/brandomr/eidos","description":"Machine reading system for World Modelers","fork":true,"url":"https://api.github.com/repos/brandomr/eidos","forks_url":"https://api.github.com/repos/brandomr/eidos/forks","keys_url":"https://api.github.com/repos/brandomr/eidos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brandomr/eidos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brandomr/eidos/teams","hooks_url":"https://api.github.com/repos/brandomr/eidos/hooks","issue_events_url":"https://api.github.com/repos/brandomr/eidos/issues/events{/number}","events_url":"https://api.github.com/repos/brandomr/eidos/events","assignees_url":"https://api.github.com/repos/brandomr/eidos/assignees{/user}","branches_url":"https://api.github.com/repos/brandomr/eidos/branches{/branch}","tags_url":"https://api.github.com/repos/brandomr/eidos/tags","blobs_url":"https://api.github.com/repos/brandomr/eidos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brandomr/eidos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brandomr/eidos/git/refs{/sha}","trees_url":"https://api.github.com/repos/brandomr/eidos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brandomr/eidos/statuses/{sha}","languages_url":"https://api.github.com/repos/brandomr/eidos/languages","stargazers_url":"https://api.github.com/repos/brandomr/eidos/stargazers","contributors_url":"https://api.github.com/repos/brandomr/eidos/contributors","subscribers_url":"https://api.github.com/repos/brandomr/eidos/subscribers","subscription_url":"https://api.github.com/repos/brandomr/eidos/subscription","commits_url":"https://api.github.com/repos/brandomr/eidos/commits{/sha}","git_commits_url":"https://api.github.com/repos/brandomr/eidos/git/commits{/sha}","comments_url":"https://api.github.com/repos/brandomr/eidos/comments{/number}","issue_comment_url":"https://api.github.com/repos/brandomr/eidos/issues/comments{/number}","contents_url":"https://api.github.com/repos/brandomr/eidos/contents/{+path}","compare_url":"https://api.github.com/repos/brandomr/eidos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brandomr/eidos/merges","archive_url":"https://api.github.com/repos/brandomr/eidos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brandomr/eidos/downloads","issues_url":"https://api.github.com/repos/brandomr/eidos/issues{/number}","pulls_url":"https://api.github.com/repos/brandomr/eidos/pulls{/number}","milestones_url":"https://api.github.com/repos/brandomr/eidos/milestones{/number}","notifications_url":"https://api.github.com/repos/brandomr/eidos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brandomr/eidos/labels{/name}","releases_url":"https://api.github.com/repos/brandomr/eidos/releases{/id}","deployments_url":"https://api.github.com/repos/brandomr/eidos/deployments","created_at":"2018-10-30T22:50:55Z","updated_at":"2018-10-30T22:50:59Z","pushed_at":"2018-10-30T23:18:31Z","git_url":"git://github.com/brandomr/eidos.git","ssh_url":"git@github.com:brandomr/eidos.git","clone_url":"https://github.com/brandomr/eidos.git","svn_url":"https://github.com/brandomr/eidos","homepage":null,"size":131714,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clulab:master","ref":"master","sha":"1ad2215a6e979b9d038242648b3594e819319cc2","user":{"login":"clulab","id":3707526,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDc1MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/3707526?v=4","gravatar_id":"","url":"https://api.github.com/users/clulab","html_url":"https://github.com/clulab","followers_url":"https://api.github.com/users/clulab/followers","following_url":"https://api.github.com/users/clulab/following{/other_user}","gists_url":"https://api.github.com/users/clulab/gists{/gist_id}","starred_url":"https://api.github.com/users/clulab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clulab/subscriptions","organizations_url":"https://api.github.com/users/clulab/orgs","repos_url":"https://api.github.com/users/clulab/repos","events_url":"https://api.github.com/users/clulab/events{/privacy}","received_events_url":"https://api.github.com/users/clulab/received_events","type":"Organization","site_admin":false},"repo":{"id":111575473,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE1NzU0NzM=","name":"eidos","full_name":"clulab/eidos","private":false,"owner":{"login":"clulab","id":3707526,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDc1MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/3707526?v=4","gravatar_id":"","url":"https://api.github.com/users/clulab","html_url":"https://github.com/clulab","followers_url":"https://api.github.com/users/clulab/followers","following_url":"https://api.github.com/users/clulab/following{/other_user}","gists_url":"https://api.github.com/users/clulab/gists{/gist_id}","starred_url":"https://api.github.com/users/clulab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clulab/subscriptions","organizations_url":"https://api.github.com/users/clulab/orgs","repos_url":"https://api.github.com/users/clulab/repos","events_url":"https://api.github.com/users/clulab/events{/privacy}","received_events_url":"https://api.github.com/users/clulab/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/clulab/eidos","description":"Machine reading system for World Modelers","fork":false,"url":"https://api.github.com/repos/clulab/eidos","forks_url":"https://api.github.com/repos/clulab/eidos/forks","keys_url":"https://api.github.com/repos/clulab/eidos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clulab/eidos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clulab/eidos/teams","hooks_url":"https://api.github.com/repos/clulab/eidos/hooks","issue_events_url":"https://api.github.com/repos/clulab/eidos/issues/events{/number}","events_url":"https://api.github.com/repos/clulab/eidos/events","assignees_url":"https://api.github.com/repos/clulab/eidos/assignees{/user}","branches_url":"https://api.github.com/repos/clulab/eidos/branches{/branch}","tags_url":"https://api.github.com/repos/clulab/eidos/tags","blobs_url":"https://api.github.com/repos/clulab/eidos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clulab/eidos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clulab/eidos/git/refs{/sha}","trees_url":"https://api.github.com/repos/clulab/eidos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clulab/eidos/statuses/{sha}","languages_url":"https://api.github.com/repos/clulab/eidos/languages","stargazers_url":"https://api.github.com/repos/clulab/eidos/stargazers","contributors_url":"https://api.github.com/repos/clulab/eidos/contributors","subscribers_url":"https://api.github.com/repos/clulab/eidos/subscribers","subscription_url":"https://api.github.com/repos/clulab/eidos/subscription","commits_url":"https://api.github.com/repos/clulab/eidos/commits{/sha}","git_commits_url":"https://api.github.com/repos/clulab/eidos/git/commits{/sha}","comments_url":"https://api.github.com/repos/clulab/eidos/comments{/number}","issue_comment_url":"https://api.github.com/repos/clulab/eidos/issues/comments{/number}","contents_url":"https://api.github.com/repos/clulab/eidos/contents/{+path}","compare_url":"https://api.github.com/repos/clulab/eidos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clulab/eidos/merges","archive_url":"https://api.github.com/repos/clulab/eidos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clulab/eidos/downloads","issues_url":"https://api.github.com/repos/clulab/eidos/issues{/number}","pulls_url":"https://api.github.com/repos/clulab/eidos/pulls{/number}","milestones_url":"https://api.github.com/repos/clulab/eidos/milestones{/number}","notifications_url":"https://api.github.com/repos/clulab/eidos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clulab/eidos/labels{/name}","releases_url":"https://api.github.com/repos/clulab/eidos/releases{/id}","deployments_url":"https://api.github.com/repos/clulab/eidos/deployments","created_at":"2017-11-21T16:42:58Z","updated_at":"2018-10-29T23:52:05Z","pushed_at":"2018-10-30T19:27:08Z","git_url":"git://github.com/clulab/eidos.git","ssh_url":"git@github.com:clulab/eidos.git","clone_url":"https://github.com/clulab/eidos.git","svn_url":"https://github.com/clulab/eidos","homepage":null,"size":131714,"stargazers_count":8,"watchers_count":8,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":5,"open_issues":35,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clulab/eidos/pulls/496"},"html":{"href":"https://github.com/clulab/eidos/pull/496"},"issue":{"href":"https://api.github.com/repos/clulab/eidos/issues/496"},"comments":{"href":"https://api.github.com/repos/clulab/eidos/issues/496/comments"},"review_comments":{"href":"https://api.github.com/repos/clulab/eidos/pulls/496/comments"},"review_comment":{"href":"https://api.github.com/repos/clulab/eidos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clulab/eidos/pulls/496/commits"},"statuses":{"href":"https://api.github.com/repos/clulab/eidos/statuses/cfa2e50b1d7870d4c01bc06d81d91c266f4ae81b"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":7,"additions":107,"deletions":4,"changed_files":5}}
{"actor":{"display_login":"brandomr"}}