{"action":"created","comment":{"url":"https://api.github.com/repos/molgenis/molgenis/pulls/comments/92805093","pull_request_review_id":13325441,"id":92805093,"diff_hunk":"@@ -0,0 +1,99 @@\n+package org.molgenis.fair.controller;\n+\n+import org.eclipse.rdf4j.model.Model;\n+import org.molgenis.data.DataService;\n+import org.molgenis.data.Entity;\n+import org.molgenis.data.support.QueryImpl;\n+import org.molgenis.security.core.runas.RunAsSystem;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.stereotype.Controller;\n+import org.springframework.util.StringUtils;\n+import org.springframework.web.bind.annotation.PathVariable;\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.ResponseBody;\n+\n+import javax.servlet.http.HttpServletRequest;\n+\n+import static org.molgenis.fair.controller.FairController.BASE_URI;\n+import static org.molgenis.ui.converter.RDFMediaType.TEXT_TURTLE_VALUE;\n+import static org.springframework.web.bind.annotation.RequestMethod.GET;\n+\n+@Controller\n+@RequestMapping(BASE_URI)\n+/**\n+ * Serves metadata for the molgenis FAIR DataPoint.\n+ */ public class FairController\n+{\n+\tstatic final String BASE_URI = \"/fdp\";\n+\n+\tprivate final DataService dataService;\n+\tprivate final EntityModelWriter entityModelWriter;\n+\n+\t@Autowired\n+\tpublic FairController(DataService dataService, EntityModelWriter entityModelWriter)\n+\t{\n+\t\tthis.dataService = dataService;\n+\t\tthis.entityModelWriter = entityModelWriter;","path":"molgenis-fair/src/main/java/org/molgenis/fair/controller/FairController.java","position":36,"original_position":36,"commit_id":"e860d4775f12a920a17b1be8ceaddd36a7d4aa05","original_commit_id":"e860d4775f12a920a17b1be8ceaddd36a7d4aa05","user":{"login":"dennishendriksen","id":2477186,"avatar_url":"https://avatars.githubusercontent.com/u/2477186?v=3","gravatar_id":"","url":"https://api.github.com/users/dennishendriksen","html_url":"https://github.com/dennishendriksen","followers_url":"https://api.github.com/users/dennishendriksen/followers","following_url":"https://api.github.com/users/dennishendriksen/following{/other_user}","gists_url":"https://api.github.com/users/dennishendriksen/gists{/gist_id}","starred_url":"https://api.github.com/users/dennishendriksen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennishendriksen/subscriptions","organizations_url":"https://api.github.com/users/dennishendriksen/orgs","repos_url":"https://api.github.com/users/dennishendriksen/repos","events_url":"https://api.github.com/users/dennishendriksen/events{/privacy}","received_events_url":"https://api.github.com/users/dennishendriksen/received_events","type":"User","site_admin":false},"body":"requireNonNull","created_at":"2016-12-16T12:39:50Z","updated_at":"2016-12-16T12:39:50Z","html_url":"https://github.com/molgenis/molgenis/pull/5716#discussion_r92805093","pull_request_url":"https://api.github.com/repos/molgenis/molgenis/pulls/5716","_links":{"self":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/comments/92805093"},"html":{"href":"https://github.com/molgenis/molgenis/pull/5716#discussion_r92805093"},"pull_request":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/5716"}}},"pull_request":{"url":"https://api.github.com/repos/molgenis/molgenis/pulls/5716","id":97964588,"html_url":"https://github.com/molgenis/molgenis/pull/5716","diff_url":"https://github.com/molgenis/molgenis/pull/5716.diff","patch_url":"https://github.com/molgenis/molgenis/pull/5716.patch","issue_url":"https://api.github.com/repos/molgenis/molgenis/issues/5716","number":5716,"state":"open","locked":false,"title":"M4585 Fair data point","user":{"login":"bartcharbon","id":3714029,"avatar_url":"https://avatars.githubusercontent.com/u/3714029?v=3","gravatar_id":"","url":"https://api.github.com/users/bartcharbon","html_url":"https://github.com/bartcharbon","followers_url":"https://api.github.com/users/bartcharbon/followers","following_url":"https://api.github.com/users/bartcharbon/following{/other_user}","gists_url":"https://api.github.com/users/bartcharbon/gists{/gist_id}","starred_url":"https://api.github.com/users/bartcharbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartcharbon/subscriptions","organizations_url":"https://api.github.com/users/bartcharbon/orgs","repos_url":"https://api.github.com/users/bartcharbon/repos","events_url":"https://api.github.com/users/bartcharbon/events{/privacy}","received_events_url":"https://api.github.com/users/bartcharbon/received_events","type":"User","site_admin":false},"body":"#### Checklist\r\n- [x] Unit tests\r\n- [ ] Updated testplan\r\n","created_at":"2016-12-14T14:41:40Z","updated_at":"2016-12-16T12:45:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18c38524e95c4b7a8b74d4a72cd390438e87406e","assignee":{"login":"bartcharbon","id":3714029,"avatar_url":"https://avatars.githubusercontent.com/u/3714029?v=3","gravatar_id":"","url":"https://api.github.com/users/bartcharbon","html_url":"https://github.com/bartcharbon","followers_url":"https://api.github.com/users/bartcharbon/followers","following_url":"https://api.github.com/users/bartcharbon/following{/other_user}","gists_url":"https://api.github.com/users/bartcharbon/gists{/gist_id}","starred_url":"https://api.github.com/users/bartcharbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartcharbon/subscriptions","organizations_url":"https://api.github.com/users/bartcharbon/orgs","repos_url":"https://api.github.com/users/bartcharbon/repos","events_url":"https://api.github.com/users/bartcharbon/events{/privacy}","received_events_url":"https://api.github.com/users/bartcharbon/received_events","type":"User","site_admin":false},"assignees":[{"login":"bartcharbon","id":3714029,"avatar_url":"https://avatars.githubusercontent.com/u/3714029?v=3","gravatar_id":"","url":"https://api.github.com/users/bartcharbon","html_url":"https://github.com/bartcharbon","followers_url":"https://api.github.com/users/bartcharbon/followers","following_url":"https://api.github.com/users/bartcharbon/following{/other_user}","gists_url":"https://api.github.com/users/bartcharbon/gists{/gist_id}","starred_url":"https://api.github.com/users/bartcharbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartcharbon/subscriptions","organizations_url":"https://api.github.com/users/bartcharbon/orgs","repos_url":"https://api.github.com/users/bartcharbon/repos","events_url":"https://api.github.com/users/bartcharbon/events{/privacy}","received_events_url":"https://api.github.com/users/bartcharbon/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/molgenis/molgenis/pulls/5716/commits","review_comments_url":"https://api.github.com/repos/molgenis/molgenis/pulls/5716/comments","review_comment_url":"https://api.github.com/repos/molgenis/molgenis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/molgenis/molgenis/issues/5716/comments","statuses_url":"https://api.github.com/repos/molgenis/molgenis/statuses/e860d4775f12a920a17b1be8ceaddd36a7d4aa05","head":{"label":"bartcharbon:hackathon/fair","ref":"hackathon/fair","sha":"e860d4775f12a920a17b1be8ceaddd36a7d4aa05","user":{"login":"bartcharbon","id":3714029,"avatar_url":"https://avatars.githubusercontent.com/u/3714029?v=3","gravatar_id":"","url":"https://api.github.com/users/bartcharbon","html_url":"https://github.com/bartcharbon","followers_url":"https://api.github.com/users/bartcharbon/followers","following_url":"https://api.github.com/users/bartcharbon/following{/other_user}","gists_url":"https://api.github.com/users/bartcharbon/gists{/gist_id}","starred_url":"https://api.github.com/users/bartcharbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartcharbon/subscriptions","organizations_url":"https://api.github.com/users/bartcharbon/orgs","repos_url":"https://api.github.com/users/bartcharbon/repos","events_url":"https://api.github.com/users/bartcharbon/events{/privacy}","received_events_url":"https://api.github.com/users/bartcharbon/received_events","type":"User","site_admin":false},"repo":{"id":8499837,"name":"molgenis","full_name":"bartcharbon/molgenis","owner":{"login":"bartcharbon","id":3714029,"avatar_url":"https://avatars.githubusercontent.com/u/3714029?v=3","gravatar_id":"","url":"https://api.github.com/users/bartcharbon","html_url":"https://github.com/bartcharbon","followers_url":"https://api.github.com/users/bartcharbon/followers","following_url":"https://api.github.com/users/bartcharbon/following{/other_user}","gists_url":"https://api.github.com/users/bartcharbon/gists{/gist_id}","starred_url":"https://api.github.com/users/bartcharbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartcharbon/subscriptions","organizations_url":"https://api.github.com/users/bartcharbon/orgs","repos_url":"https://api.github.com/users/bartcharbon/repos","events_url":"https://api.github.com/users/bartcharbon/events{/privacy}","received_events_url":"https://api.github.com/users/bartcharbon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bartcharbon/molgenis","description":"MOLGENIS is an collaborative open source project on a mission to generate great software infrastructure for life science research.","fork":true,"url":"https://api.github.com/repos/bartcharbon/molgenis","forks_url":"https://api.github.com/repos/bartcharbon/molgenis/forks","keys_url":"https://api.github.com/repos/bartcharbon/molgenis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bartcharbon/molgenis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bartcharbon/molgenis/teams","hooks_url":"https://api.github.com/repos/bartcharbon/molgenis/hooks","issue_events_url":"https://api.github.com/repos/bartcharbon/molgenis/issues/events{/number}","events_url":"https://api.github.com/repos/bartcharbon/molgenis/events","assignees_url":"https://api.github.com/repos/bartcharbon/molgenis/assignees{/user}","branches_url":"https://api.github.com/repos/bartcharbon/molgenis/branches{/branch}","tags_url":"https://api.github.com/repos/bartcharbon/molgenis/tags","blobs_url":"https://api.github.com/repos/bartcharbon/molgenis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bartcharbon/molgenis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bartcharbon/molgenis/git/refs{/sha}","trees_url":"https://api.github.com/repos/bartcharbon/molgenis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bartcharbon/molgenis/statuses/{sha}","languages_url":"https://api.github.com/repos/bartcharbon/molgenis/languages","stargazers_url":"https://api.github.com/repos/bartcharbon/molgenis/stargazers","contributors_url":"https://api.github.com/repos/bartcharbon/molgenis/contributors","subscribers_url":"https://api.github.com/repos/bartcharbon/molgenis/subscribers","subscription_url":"https://api.github.com/repos/bartcharbon/molgenis/subscription","commits_url":"https://api.github.com/repos/bartcharbon/molgenis/commits{/sha}","git_commits_url":"https://api.github.com/repos/bartcharbon/molgenis/git/commits{/sha}","comments_url":"https://api.github.com/repos/bartcharbon/molgenis/comments{/number}","issue_comment_url":"https://api.github.com/repos/bartcharbon/molgenis/issues/comments{/number}","contents_url":"https://api.github.com/repos/bartcharbon/molgenis/contents/{+path}","compare_url":"https://api.github.com/repos/bartcharbon/molgenis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bartcharbon/molgenis/merges","archive_url":"https://api.github.com/repos/bartcharbon/molgenis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bartcharbon/molgenis/downloads","issues_url":"https://api.github.com/repos/bartcharbon/molgenis/issues{/number}","pulls_url":"https://api.github.com/repos/bartcharbon/molgenis/pulls{/number}","milestones_url":"https://api.github.com/repos/bartcharbon/molgenis/milestones{/number}","notifications_url":"https://api.github.com/repos/bartcharbon/molgenis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bartcharbon/molgenis/labels{/name}","releases_url":"https://api.github.com/repos/bartcharbon/molgenis/releases{/id}","deployments_url":"https://api.github.com/repos/bartcharbon/molgenis/deployments","created_at":"2013-03-01T11:16:32Z","updated_at":"2015-04-28T13:38:06Z","pushed_at":"2016-12-16T08:54:24Z","git_url":"git://github.com/bartcharbon/molgenis.git","ssh_url":"git@github.com:bartcharbon/molgenis.git","clone_url":"https://github.com/bartcharbon/molgenis.git","svn_url":"https://github.com/bartcharbon/molgenis","homepage":null,"size":113091,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"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":"molgenis:master","ref":"master","sha":"0943c843d12737fe390f294eccbe1989f8c33e74","user":{"login":"molgenis","id":1688158,"avatar_url":"https://avatars.githubusercontent.com/u/1688158?v=3","gravatar_id":"","url":"https://api.github.com/users/molgenis","html_url":"https://github.com/molgenis","followers_url":"https://api.github.com/users/molgenis/followers","following_url":"https://api.github.com/users/molgenis/following{/other_user}","gists_url":"https://api.github.com/users/molgenis/gists{/gist_id}","starred_url":"https://api.github.com/users/molgenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molgenis/subscriptions","organizations_url":"https://api.github.com/users/molgenis/orgs","repos_url":"https://api.github.com/users/molgenis/repos","events_url":"https://api.github.com/users/molgenis/events{/privacy}","received_events_url":"https://api.github.com/users/molgenis/received_events","type":"Organization","site_admin":false},"repo":{"id":8010626,"name":"molgenis","full_name":"molgenis/molgenis","owner":{"login":"molgenis","id":1688158,"avatar_url":"https://avatars.githubusercontent.com/u/1688158?v=3","gravatar_id":"","url":"https://api.github.com/users/molgenis","html_url":"https://github.com/molgenis","followers_url":"https://api.github.com/users/molgenis/followers","following_url":"https://api.github.com/users/molgenis/following{/other_user}","gists_url":"https://api.github.com/users/molgenis/gists{/gist_id}","starred_url":"https://api.github.com/users/molgenis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molgenis/subscriptions","organizations_url":"https://api.github.com/users/molgenis/orgs","repos_url":"https://api.github.com/users/molgenis/repos","events_url":"https://api.github.com/users/molgenis/events{/privacy}","received_events_url":"https://api.github.com/users/molgenis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/molgenis/molgenis","description":"MOLGENIS - for scientific data: management, exploration, integration and analysis. ","fork":false,"url":"https://api.github.com/repos/molgenis/molgenis","forks_url":"https://api.github.com/repos/molgenis/molgenis/forks","keys_url":"https://api.github.com/repos/molgenis/molgenis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/molgenis/molgenis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/molgenis/molgenis/teams","hooks_url":"https://api.github.com/repos/molgenis/molgenis/hooks","issue_events_url":"https://api.github.com/repos/molgenis/molgenis/issues/events{/number}","events_url":"https://api.github.com/repos/molgenis/molgenis/events","assignees_url":"https://api.github.com/repos/molgenis/molgenis/assignees{/user}","branches_url":"https://api.github.com/repos/molgenis/molgenis/branches{/branch}","tags_url":"https://api.github.com/repos/molgenis/molgenis/tags","blobs_url":"https://api.github.com/repos/molgenis/molgenis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/molgenis/molgenis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/molgenis/molgenis/git/refs{/sha}","trees_url":"https://api.github.com/repos/molgenis/molgenis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/molgenis/molgenis/statuses/{sha}","languages_url":"https://api.github.com/repos/molgenis/molgenis/languages","stargazers_url":"https://api.github.com/repos/molgenis/molgenis/stargazers","contributors_url":"https://api.github.com/repos/molgenis/molgenis/contributors","subscribers_url":"https://api.github.com/repos/molgenis/molgenis/subscribers","subscription_url":"https://api.github.com/repos/molgenis/molgenis/subscription","commits_url":"https://api.github.com/repos/molgenis/molgenis/commits{/sha}","git_commits_url":"https://api.github.com/repos/molgenis/molgenis/git/commits{/sha}","comments_url":"https://api.github.com/repos/molgenis/molgenis/comments{/number}","issue_comment_url":"https://api.github.com/repos/molgenis/molgenis/issues/comments{/number}","contents_url":"https://api.github.com/repos/molgenis/molgenis/contents/{+path}","compare_url":"https://api.github.com/repos/molgenis/molgenis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/molgenis/molgenis/merges","archive_url":"https://api.github.com/repos/molgenis/molgenis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/molgenis/molgenis/downloads","issues_url":"https://api.github.com/repos/molgenis/molgenis/issues{/number}","pulls_url":"https://api.github.com/repos/molgenis/molgenis/pulls{/number}","milestones_url":"https://api.github.com/repos/molgenis/molgenis/milestones{/number}","notifications_url":"https://api.github.com/repos/molgenis/molgenis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/molgenis/molgenis/labels{/name}","releases_url":"https://api.github.com/repos/molgenis/molgenis/releases{/id}","deployments_url":"https://api.github.com/repos/molgenis/molgenis/deployments","created_at":"2013-02-04T16:02:36Z","updated_at":"2016-12-12T06:00:52Z","pushed_at":"2016-12-16T08:54:25Z","git_url":"git://github.com/molgenis/molgenis.git","ssh_url":"git@github.com:molgenis/molgenis.git","clone_url":"https://github.com/molgenis/molgenis.git","svn_url":"https://github.com/molgenis/molgenis","homepage":" https://molgenis.github.io","size":118996,"stargazers_count":34,"watchers_count":34,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":67,"mirror_url":null,"open_issues_count":258,"forks":67,"open_issues":258,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/5716"},"html":{"href":"https://github.com/molgenis/molgenis/pull/5716"},"issue":{"href":"https://api.github.com/repos/molgenis/molgenis/issues/5716"},"comments":{"href":"https://api.github.com/repos/molgenis/molgenis/issues/5716/comments"},"review_comments":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/5716/comments"},"review_comment":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/molgenis/molgenis/pulls/5716/commits"},"statuses":{"href":"https://api.github.com/repos/molgenis/molgenis/statuses/e860d4775f12a920a17b1be8ceaddd36a7d4aa05"}}}}
{"actor":{"display_login":"dennishendriksen"}}