{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/susper.com/pulls/comments/192310811","pull_request_review_id":125058800,"id":192310811,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjMxMDgxMQ==","diff_hunk":"@@ -0,0 +1,48 @@\n+import { Injectable } from '@angular/core';\n+import {Http, URLSearchParams, Jsonp, Response, Headers, RequestOptions} from '@angular/http';\n+import 'rxjs/add/operator/map';\n+import 'rxjs/add/operator/toPromise';\n+import {Store} from '@ngrx/store';\n+import * as fromRoot from '../reducers';\n+import * as search from '../actions/search';\n+import {Observable} from 'rxjs';\n+\n+@Injectable()\n+export class KnowledgeapiService {\n+\n+  server = 'https://en.wikipedia.org';\n+  searchURL = this.server + '/w/api.php?';\n+  homepage = 'http://susper.com';\n+  logo = '../images/susper.svg';\n+  constructor(private http: Http, private jsonp: Jsonp, private store: Store<fromRoot.State>) {\n+  }\n+  getsearchresults(searchquery) {\n+\n+    let params = new URLSearchParams();\n+    params.set('origin', '*');\n+    params.set('format', 'json');\n+    params.set('action', 'query');\n+    params.set('prop', 'extracts');\n+    params.set('exintro', '');\n+    params.set('explaintext', '');\n+    params.set('titles', searchquery);\n+\n+","path":"src/app/services/knowledgeapi.service.ts","position":30,"original_position":30,"commit_id":"52bb0dbc5b6e2172f6e030c19661c9fac9de8294","original_commit_id":"52bb0dbc5b6e2172f6e030c19661c9fac9de8294","user":{"login":"simsausaurabh","id":16608864,"node_id":"MDQ6VXNlcjE2NjA4ODY0","avatar_url":"https://avatars0.githubusercontent.com/u/16608864?v=4","gravatar_id":"","url":"https://api.github.com/users/simsausaurabh","html_url":"https://github.com/simsausaurabh","followers_url":"https://api.github.com/users/simsausaurabh/followers","following_url":"https://api.github.com/users/simsausaurabh/following{/other_user}","gists_url":"https://api.github.com/users/simsausaurabh/gists{/gist_id}","starred_url":"https://api.github.com/users/simsausaurabh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simsausaurabh/subscriptions","organizations_url":"https://api.github.com/users/simsausaurabh/orgs","repos_url":"https://api.github.com/users/simsausaurabh/repos","events_url":"https://api.github.com/users/simsausaurabh/events{/privacy}","received_events_url":"https://api.github.com/users/simsausaurabh/received_events","type":"User","site_admin":false},"body":"Remove unnecessary lines.","created_at":"2018-06-01T06:53:00Z","updated_at":"2018-06-01T06:59:27Z","html_url":"https://github.com/fossasia/susper.com/pull/1011#discussion_r192310811","pull_request_url":"https://api.github.com/repos/fossasia/susper.com/pulls/1011","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/fossasia/susper.com/pulls/comments/192310811"},"html":{"href":"https://github.com/fossasia/susper.com/pull/1011#discussion_r192310811"},"pull_request":{"href":"https://api.github.com/repos/fossasia/susper.com/pulls/1011"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/susper.com/pulls/1011","id":191907837,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxOTA3ODM3","html_url":"https://github.com/fossasia/susper.com/pull/1011","diff_url":"https://github.com/fossasia/susper.com/pull/1011.diff","patch_url":"https://github.com/fossasia/susper.com/pull/1011.patch","issue_url":"https://api.github.com/repos/fossasia/susper.com/issues/1011","number":1011,"state":"open","locked":false,"title":"Fixes #797 and #181:Used Wikipedia API to implement infobox.","user":{"login":"praveenojha33","id":25537606,"node_id":"MDQ6VXNlcjI1NTM3NjA2","avatar_url":"https://avatars3.githubusercontent.com/u/25537606?v=4","gravatar_id":"","url":"https://api.github.com/users/praveenojha33","html_url":"https://github.com/praveenojha33","followers_url":"https://api.github.com/users/praveenojha33/followers","following_url":"https://api.github.com/users/praveenojha33/following{/other_user}","gists_url":"https://api.github.com/users/praveenojha33/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenojha33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenojha33/subscriptions","organizations_url":"https://api.github.com/users/praveenojha33/orgs","repos_url":"https://api.github.com/users/praveenojha33/repos","events_url":"https://api.github.com/users/praveenojha33/events{/privacy}","received_events_url":"https://api.github.com/users/praveenojha33/received_events","type":"User","site_admin":false},"body":"<!-- Add issue number here. If you do not solve the issue entirely, please change the message e.g. \"Addresses #IssueNumber -->\r\nFixes #797 #181 \r\n\r\n#### Checklist\r\n\r\n- [x] I have read the [Contribution & Best practices Guide](https://blog.fossasia.org/open-source-developer-guide-and-best-practices-at-fossasia) and my PR follows them.\r\n- [x] My branch is up-to-date with the Upstream `master` branch.\r\n- [x] I have added necessary documentation (if appropriate)\r\n- [x] Added Surge preview link\r\n<!-- Replace \"PR_NUMBER\" with your pull request number. This link is generated when your PR passes the travis tests.A sample link can look like https://pr-200-fossasia-susper.surge.sh -->\r\n\r\n#### Changes proposed in this pull request:\r\n- I have replaced DBpedia API with Wikipedia API to implement Infobox in SUSPER . \r\n- Earlier requests of DBpedia API was getting blocked but for Wikipedia API it will not be blocked and we will get an infobox on susper.com.\r\n\r\n- Our next aim will be to add images for search query and tests for this feature, this can be done by going through Wikipedia API more deeply.\r\nSurge Link: https://pr-1011-fossasia-susper.surge.sh\r\n<!-- Screenshots for the change: Add here the screenshot of the fix. -->\r\n\r\n![image](https://user-images.githubusercontent.com/25537606/40815213-748b4612-6562-11e8-97bb-03a0bf927651.png)\r\n\r\n","created_at":"2018-06-01T00:40:24Z","updated_at":"2018-06-01T06:59:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c544d056d7c686d1954b88fd9789b9eba04aa01","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/susper.com/pulls/1011/commits","review_comments_url":"https://api.github.com/repos/fossasia/susper.com/pulls/1011/comments","review_comment_url":"https://api.github.com/repos/fossasia/susper.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/susper.com/issues/1011/comments","statuses_url":"https://api.github.com/repos/fossasia/susper.com/statuses/52bb0dbc5b6e2172f6e030c19661c9fac9de8294","head":{"label":"praveenojha33:wikiinfo","ref":"wikiinfo","sha":"52bb0dbc5b6e2172f6e030c19661c9fac9de8294","user":{"login":"praveenojha33","id":25537606,"node_id":"MDQ6VXNlcjI1NTM3NjA2","avatar_url":"https://avatars3.githubusercontent.com/u/25537606?v=4","gravatar_id":"","url":"https://api.github.com/users/praveenojha33","html_url":"https://github.com/praveenojha33","followers_url":"https://api.github.com/users/praveenojha33/followers","following_url":"https://api.github.com/users/praveenojha33/following{/other_user}","gists_url":"https://api.github.com/users/praveenojha33/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenojha33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenojha33/subscriptions","organizations_url":"https://api.github.com/users/praveenojha33/orgs","repos_url":"https://api.github.com/users/praveenojha33/repos","events_url":"https://api.github.com/users/praveenojha33/events{/privacy}","received_events_url":"https://api.github.com/users/praveenojha33/received_events","type":"User","site_admin":false},"repo":{"id":118692687,"node_id":"MDEwOlJlcG9zaXRvcnkxMTg2OTI2ODc=","name":"susper.com","full_name":"praveenojha33/susper.com","owner":{"login":"praveenojha33","id":25537606,"node_id":"MDQ6VXNlcjI1NTM3NjA2","avatar_url":"https://avatars3.githubusercontent.com/u/25537606?v=4","gravatar_id":"","url":"https://api.github.com/users/praveenojha33","html_url":"https://github.com/praveenojha33","followers_url":"https://api.github.com/users/praveenojha33/followers","following_url":"https://api.github.com/users/praveenojha33/following{/other_user}","gists_url":"https://api.github.com/users/praveenojha33/gists{/gist_id}","starred_url":"https://api.github.com/users/praveenojha33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praveenojha33/subscriptions","organizations_url":"https://api.github.com/users/praveenojha33/orgs","repos_url":"https://api.github.com/users/praveenojha33/repos","events_url":"https://api.github.com/users/praveenojha33/events{/privacy}","received_events_url":"https://api.github.com/users/praveenojha33/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/praveenojha33/susper.com","description":"Susper Decentralised Search Engine http://susper.com","fork":true,"url":"https://api.github.com/repos/praveenojha33/susper.com","forks_url":"https://api.github.com/repos/praveenojha33/susper.com/forks","keys_url":"https://api.github.com/repos/praveenojha33/susper.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praveenojha33/susper.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praveenojha33/susper.com/teams","hooks_url":"https://api.github.com/repos/praveenojha33/susper.com/hooks","issue_events_url":"https://api.github.com/repos/praveenojha33/susper.com/issues/events{/number}","events_url":"https://api.github.com/repos/praveenojha33/susper.com/events","assignees_url":"https://api.github.com/repos/praveenojha33/susper.com/assignees{/user}","branches_url":"https://api.github.com/repos/praveenojha33/susper.com/branches{/branch}","tags_url":"https://api.github.com/repos/praveenojha33/susper.com/tags","blobs_url":"https://api.github.com/repos/praveenojha33/susper.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praveenojha33/susper.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praveenojha33/susper.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/praveenojha33/susper.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praveenojha33/susper.com/statuses/{sha}","languages_url":"https://api.github.com/repos/praveenojha33/susper.com/languages","stargazers_url":"https://api.github.com/repos/praveenojha33/susper.com/stargazers","contributors_url":"https://api.github.com/repos/praveenojha33/susper.com/contributors","subscribers_url":"https://api.github.com/repos/praveenojha33/susper.com/subscribers","subscription_url":"https://api.github.com/repos/praveenojha33/susper.com/subscription","commits_url":"https://api.github.com/repos/praveenojha33/susper.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/praveenojha33/susper.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/praveenojha33/susper.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/praveenojha33/susper.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/praveenojha33/susper.com/contents/{+path}","compare_url":"https://api.github.com/repos/praveenojha33/susper.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praveenojha33/susper.com/merges","archive_url":"https://api.github.com/repos/praveenojha33/susper.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praveenojha33/susper.com/downloads","issues_url":"https://api.github.com/repos/praveenojha33/susper.com/issues{/number}","pulls_url":"https://api.github.com/repos/praveenojha33/susper.com/pulls{/number}","milestones_url":"https://api.github.com/repos/praveenojha33/susper.com/milestones{/number}","notifications_url":"https://api.github.com/repos/praveenojha33/susper.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praveenojha33/susper.com/labels{/name}","releases_url":"https://api.github.com/repos/praveenojha33/susper.com/releases{/id}","deployments_url":"https://api.github.com/repos/praveenojha33/susper.com/deployments","created_at":"2018-01-24T01:16:34Z","updated_at":"2018-05-20T22:02:45Z","pushed_at":"2018-06-01T00:32:29Z","git_url":"git://github.com/praveenojha33/susper.com.git","ssh_url":"git@github.com:praveenojha33/susper.com.git","clone_url":"https://github.com/praveenojha33/susper.com.git","svn_url":"https://github.com/praveenojha33/susper.com","homepage":"","size":119909,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fossasia:master","ref":"master","sha":"02dc30ad011949cbf288f0b80fa0a732450ef82e","user":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":79458121,"node_id":"MDEwOlJlcG9zaXRvcnk3OTQ1ODEyMQ==","name":"susper.com","full_name":"fossasia/susper.com","owner":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/susper.com","description":"Susper Decentralised Search Engine http://susper.com","fork":false,"url":"https://api.github.com/repos/fossasia/susper.com","forks_url":"https://api.github.com/repos/fossasia/susper.com/forks","keys_url":"https://api.github.com/repos/fossasia/susper.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/susper.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/susper.com/teams","hooks_url":"https://api.github.com/repos/fossasia/susper.com/hooks","issue_events_url":"https://api.github.com/repos/fossasia/susper.com/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/susper.com/events","assignees_url":"https://api.github.com/repos/fossasia/susper.com/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/susper.com/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/susper.com/tags","blobs_url":"https://api.github.com/repos/fossasia/susper.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/susper.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/susper.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/susper.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/susper.com/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/susper.com/languages","stargazers_url":"https://api.github.com/repos/fossasia/susper.com/stargazers","contributors_url":"https://api.github.com/repos/fossasia/susper.com/contributors","subscribers_url":"https://api.github.com/repos/fossasia/susper.com/subscribers","subscription_url":"https://api.github.com/repos/fossasia/susper.com/subscription","commits_url":"https://api.github.com/repos/fossasia/susper.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/susper.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/susper.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/susper.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/susper.com/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/susper.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/susper.com/merges","archive_url":"https://api.github.com/repos/fossasia/susper.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/susper.com/downloads","issues_url":"https://api.github.com/repos/fossasia/susper.com/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/susper.com/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/susper.com/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/susper.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/susper.com/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/susper.com/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/susper.com/deployments","created_at":"2017-01-19T13:54:24Z","updated_at":"2018-05-31T20:51:19Z","pushed_at":"2018-06-01T00:40:25Z","git_url":"git://github.com/fossasia/susper.com.git","ssh_url":"git@github.com:fossasia/susper.com.git","clone_url":"https://github.com/fossasia/susper.com.git","svn_url":"https://github.com/fossasia/susper.com","homepage":"","size":123809,"stargazers_count":453,"watchers_count":453,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":220,"mirror_url":null,"archived":false,"open_issues_count":60,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":220,"open_issues":60,"watchers":453,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/susper.com/pulls/1011"},"html":{"href":"https://github.com/fossasia/susper.com/pull/1011"},"issue":{"href":"https://api.github.com/repos/fossasia/susper.com/issues/1011"},"comments":{"href":"https://api.github.com/repos/fossasia/susper.com/issues/1011/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/susper.com/pulls/1011/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/susper.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/susper.com/pulls/1011/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/susper.com/statuses/52bb0dbc5b6e2172f6e030c19661c9fac9de8294"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"simsausaurabh"}}