{"action":"created","comment":{"url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments/27843343","id":27843343,"diff_hunk":"@@ -614,4 +617,37 @@ private static URI checksumURI( final String checksum ) {\n         }\n         return null;\n     }\n+\n+    protected void createFixityEvent(final EventBus eventBus, final RdfStream rs,\n+                                     final String baseURL, final String agent,\n+                                     final String userID) {\n+        final FixityEvent fixityEvent = new FixityEvent();\n+        fixityEvent.setDate(System.currentTimeMillis());\n+        fixityEvent.setType(128);\n+        final StmtIterator it = rs.asModel().listStatements();\n+        final HashMap<String,String> info = new HashMap<String,String>();\n+        while (it.hasNext()) {\n+           final Statement st = it.next();\n+           if (st.getPredicate().toString().equals(\"http://www.loc.gov/premis/rdf/v1#hasFixity\")) {\n+               String identifier = st.getObject().toString().replaceAll(baseURL,\"\");\n+               identifier = \"/\" + identifier.substring(0,identifier.indexOf(\"#fixity\"));\n+               fixityEvent.setPath(identifier);\n+               fixityEvent.setIdentifier(identifier);\n+           }\n+            if (st.getPredicate().toString().equals(\"http://www.loc.gov/premis/rdf/v1#hasSize\")) {","path":"fcrepo-http-api/src/main/java/org/fcrepo/http/api/ContentExposingResource.java","position":48,"original_position":48,"commit_id":"53abddfbee5c4ac847d38c06dd1ee4b47f97d9c7","original_commit_id":"53abddfbee5c4ac847d38c06dd1ee4b47f97d9c7","user":{"login":"awoods","id":149283,"avatar_url":"https://avatars.githubusercontent.com/u/149283?v=3","gravatar_id":"","url":"https://api.github.com/users/awoods","html_url":"https://github.com/awoods","followers_url":"https://api.github.com/users/awoods/followers","following_url":"https://api.github.com/users/awoods/following{/other_user}","gists_url":"https://api.github.com/users/awoods/gists{/gist_id}","starred_url":"https://api.github.com/users/awoods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awoods/subscriptions","organizations_url":"https://api.github.com/users/awoods/orgs","repos_url":"https://api.github.com/users/awoods/repos","events_url":"https://api.github.com/users/awoods/events{/privacy}","received_events_url":"https://api.github.com/users/awoods/received_events","type":"User","site_admin":false},"body":"These constants are defined in RdfLexicon.java","created_at":"2015-04-07T00:27:25Z","updated_at":"2015-04-07T00:27:25Z","html_url":"https://github.com/fcrepo4/fcrepo4/pull/765#discussion_r27843343","pull_request_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/765","_links":{"self":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments/27843343"},"html":{"href":"https://github.com/fcrepo4/fcrepo4/pull/765#discussion_r27843343"},"pull_request":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/765"}}},"pull_request":{"url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/765","id":32715989,"html_url":"https://github.com/fcrepo4/fcrepo4/pull/765","diff_url":"https://github.com/fcrepo4/fcrepo4/pull/765.diff","patch_url":"https://github.com/fcrepo4/fcrepo4/pull/765.patch","issue_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/765","number":765,"state":"open","locked":false,"title":"adding fixity events","user":{"login":"yulgit1","id":2125400,"avatar_url":"https://avatars.githubusercontent.com/u/2125400?v=3","gravatar_id":"","url":"https://api.github.com/users/yulgit1","html_url":"https://github.com/yulgit1","followers_url":"https://api.github.com/users/yulgit1/followers","following_url":"https://api.github.com/users/yulgit1/following{/other_user}","gists_url":"https://api.github.com/users/yulgit1/gists{/gist_id}","starred_url":"https://api.github.com/users/yulgit1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulgit1/subscriptions","organizations_url":"https://api.github.com/users/yulgit1/orgs","repos_url":"https://api.github.com/users/yulgit1/repos","events_url":"https://api.github.com/users/yulgit1/events{/privacy}","received_events_url":"https://api.github.com/users/yulgit1/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-06T22:02:32Z","updated_at":"2015-04-07T00:27:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"704f6604b9ee4f75bed83b87063b5bb138a4fb6c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/765/commits","review_comments_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/765/comments","review_comment_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/765/comments","statuses_url":"https://api.github.com/repos/fcrepo4/fcrepo4/statuses/53abddfbee5c4ac847d38c06dd1ee4b47f97d9c7","head":{"label":"yulgit1:erjfixity","ref":"erjfixity","sha":"53abddfbee5c4ac847d38c06dd1ee4b47f97d9c7","user":{"login":"yulgit1","id":2125400,"avatar_url":"https://avatars.githubusercontent.com/u/2125400?v=3","gravatar_id":"","url":"https://api.github.com/users/yulgit1","html_url":"https://github.com/yulgit1","followers_url":"https://api.github.com/users/yulgit1/followers","following_url":"https://api.github.com/users/yulgit1/following{/other_user}","gists_url":"https://api.github.com/users/yulgit1/gists{/gist_id}","starred_url":"https://api.github.com/users/yulgit1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulgit1/subscriptions","organizations_url":"https://api.github.com/users/yulgit1/orgs","repos_url":"https://api.github.com/users/yulgit1/repos","events_url":"https://api.github.com/users/yulgit1/events{/privacy}","received_events_url":"https://api.github.com/users/yulgit1/received_events","type":"User","site_admin":false},"repo":{"id":8258364,"name":"fcrepo4","full_name":"yulgit1/fcrepo4","owner":{"login":"yulgit1","id":2125400,"avatar_url":"https://avatars.githubusercontent.com/u/2125400?v=3","gravatar_id":"","url":"https://api.github.com/users/yulgit1","html_url":"https://github.com/yulgit1","followers_url":"https://api.github.com/users/yulgit1/followers","following_url":"https://api.github.com/users/yulgit1/following{/other_user}","gists_url":"https://api.github.com/users/yulgit1/gists{/gist_id}","starred_url":"https://api.github.com/users/yulgit1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulgit1/subscriptions","organizations_url":"https://api.github.com/users/yulgit1/orgs","repos_url":"https://api.github.com/users/yulgit1/repos","events_url":"https://api.github.com/users/yulgit1/events{/privacy}","received_events_url":"https://api.github.com/users/yulgit1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yulgit1/fcrepo4","description":"Fedora 4: \"That Which I Should Have Done I Did Not Do\"","fork":true,"url":"https://api.github.com/repos/yulgit1/fcrepo4","forks_url":"https://api.github.com/repos/yulgit1/fcrepo4/forks","keys_url":"https://api.github.com/repos/yulgit1/fcrepo4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yulgit1/fcrepo4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yulgit1/fcrepo4/teams","hooks_url":"https://api.github.com/repos/yulgit1/fcrepo4/hooks","issue_events_url":"https://api.github.com/repos/yulgit1/fcrepo4/issues/events{/number}","events_url":"https://api.github.com/repos/yulgit1/fcrepo4/events","assignees_url":"https://api.github.com/repos/yulgit1/fcrepo4/assignees{/user}","branches_url":"https://api.github.com/repos/yulgit1/fcrepo4/branches{/branch}","tags_url":"https://api.github.com/repos/yulgit1/fcrepo4/tags","blobs_url":"https://api.github.com/repos/yulgit1/fcrepo4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yulgit1/fcrepo4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yulgit1/fcrepo4/git/refs{/sha}","trees_url":"https://api.github.com/repos/yulgit1/fcrepo4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yulgit1/fcrepo4/statuses/{sha}","languages_url":"https://api.github.com/repos/yulgit1/fcrepo4/languages","stargazers_url":"https://api.github.com/repos/yulgit1/fcrepo4/stargazers","contributors_url":"https://api.github.com/repos/yulgit1/fcrepo4/contributors","subscribers_url":"https://api.github.com/repos/yulgit1/fcrepo4/subscribers","subscription_url":"https://api.github.com/repos/yulgit1/fcrepo4/subscription","commits_url":"https://api.github.com/repos/yulgit1/fcrepo4/commits{/sha}","git_commits_url":"https://api.github.com/repos/yulgit1/fcrepo4/git/commits{/sha}","comments_url":"https://api.github.com/repos/yulgit1/fcrepo4/comments{/number}","issue_comment_url":"https://api.github.com/repos/yulgit1/fcrepo4/issues/comments{/number}","contents_url":"https://api.github.com/repos/yulgit1/fcrepo4/contents/{+path}","compare_url":"https://api.github.com/repos/yulgit1/fcrepo4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yulgit1/fcrepo4/merges","archive_url":"https://api.github.com/repos/yulgit1/fcrepo4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yulgit1/fcrepo4/downloads","issues_url":"https://api.github.com/repos/yulgit1/fcrepo4/issues{/number}","pulls_url":"https://api.github.com/repos/yulgit1/fcrepo4/pulls{/number}","milestones_url":"https://api.github.com/repos/yulgit1/fcrepo4/milestones{/number}","notifications_url":"https://api.github.com/repos/yulgit1/fcrepo4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yulgit1/fcrepo4/labels{/name}","releases_url":"https://api.github.com/repos/yulgit1/fcrepo4/releases{/id}","created_at":"2013-02-17T23:22:38Z","updated_at":"2015-04-01T18:51:36Z","pushed_at":"2015-04-06T21:59:16Z","git_url":"git://github.com/yulgit1/fcrepo4.git","ssh_url":"git@github.com:yulgit1/fcrepo4.git","clone_url":"https://github.com/yulgit1/fcrepo4.git","svn_url":"https://github.com/yulgit1/fcrepo4","homepage":"http://futures.github.com/fcrepo4/","size":13157,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fcrepo4:master","ref":"master","sha":"9a70b5439794c8ffdddf4af9ca9c627e52a11cae","user":{"login":"fcrepo4","id":3057565,"avatar_url":"https://avatars.githubusercontent.com/u/3057565?v=3","gravatar_id":"","url":"https://api.github.com/users/fcrepo4","html_url":"https://github.com/fcrepo4","followers_url":"https://api.github.com/users/fcrepo4/followers","following_url":"https://api.github.com/users/fcrepo4/following{/other_user}","gists_url":"https://api.github.com/users/fcrepo4/gists{/gist_id}","starred_url":"https://api.github.com/users/fcrepo4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcrepo4/subscriptions","organizations_url":"https://api.github.com/users/fcrepo4/orgs","repos_url":"https://api.github.com/users/fcrepo4/repos","events_url":"https://api.github.com/users/fcrepo4/events{/privacy}","received_events_url":"https://api.github.com/users/fcrepo4/received_events","type":"Organization","site_admin":false},"repo":{"id":7992797,"name":"fcrepo4","full_name":"fcrepo4/fcrepo4","owner":{"login":"fcrepo4","id":3057565,"avatar_url":"https://avatars.githubusercontent.com/u/3057565?v=3","gravatar_id":"","url":"https://api.github.com/users/fcrepo4","html_url":"https://github.com/fcrepo4","followers_url":"https://api.github.com/users/fcrepo4/followers","following_url":"https://api.github.com/users/fcrepo4/following{/other_user}","gists_url":"https://api.github.com/users/fcrepo4/gists{/gist_id}","starred_url":"https://api.github.com/users/fcrepo4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcrepo4/subscriptions","organizations_url":"https://api.github.com/users/fcrepo4/orgs","repos_url":"https://api.github.com/users/fcrepo4/repos","events_url":"https://api.github.com/users/fcrepo4/events{/privacy}","received_events_url":"https://api.github.com/users/fcrepo4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fcrepo4/fcrepo4","description":"Fedora 4","fork":false,"url":"https://api.github.com/repos/fcrepo4/fcrepo4","forks_url":"https://api.github.com/repos/fcrepo4/fcrepo4/forks","keys_url":"https://api.github.com/repos/fcrepo4/fcrepo4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fcrepo4/fcrepo4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fcrepo4/fcrepo4/teams","hooks_url":"https://api.github.com/repos/fcrepo4/fcrepo4/hooks","issue_events_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/events{/number}","events_url":"https://api.github.com/repos/fcrepo4/fcrepo4/events","assignees_url":"https://api.github.com/repos/fcrepo4/fcrepo4/assignees{/user}","branches_url":"https://api.github.com/repos/fcrepo4/fcrepo4/branches{/branch}","tags_url":"https://api.github.com/repos/fcrepo4/fcrepo4/tags","blobs_url":"https://api.github.com/repos/fcrepo4/fcrepo4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fcrepo4/fcrepo4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fcrepo4/fcrepo4/git/refs{/sha}","trees_url":"https://api.github.com/repos/fcrepo4/fcrepo4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fcrepo4/fcrepo4/statuses/{sha}","languages_url":"https://api.github.com/repos/fcrepo4/fcrepo4/languages","stargazers_url":"https://api.github.com/repos/fcrepo4/fcrepo4/stargazers","contributors_url":"https://api.github.com/repos/fcrepo4/fcrepo4/contributors","subscribers_url":"https://api.github.com/repos/fcrepo4/fcrepo4/subscribers","subscription_url":"https://api.github.com/repos/fcrepo4/fcrepo4/subscription","commits_url":"https://api.github.com/repos/fcrepo4/fcrepo4/commits{/sha}","git_commits_url":"https://api.github.com/repos/fcrepo4/fcrepo4/git/commits{/sha}","comments_url":"https://api.github.com/repos/fcrepo4/fcrepo4/comments{/number}","issue_comment_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/comments{/number}","contents_url":"https://api.github.com/repos/fcrepo4/fcrepo4/contents/{+path}","compare_url":"https://api.github.com/repos/fcrepo4/fcrepo4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fcrepo4/fcrepo4/merges","archive_url":"https://api.github.com/repos/fcrepo4/fcrepo4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fcrepo4/fcrepo4/downloads","issues_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues{/number}","pulls_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls{/number}","milestones_url":"https://api.github.com/repos/fcrepo4/fcrepo4/milestones{/number}","notifications_url":"https://api.github.com/repos/fcrepo4/fcrepo4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fcrepo4/fcrepo4/labels{/name}","releases_url":"https://api.github.com/repos/fcrepo4/fcrepo4/releases{/id}","created_at":"2013-02-03T16:18:55Z","updated_at":"2015-04-06T20:32:25Z","pushed_at":"2015-04-06T22:02:32Z","git_url":"git://github.com/fcrepo4/fcrepo4.git","ssh_url":"git@github.com:fcrepo4/fcrepo4.git","clone_url":"https://github.com/fcrepo4/fcrepo4.git","svn_url":"https://github.com/fcrepo4/fcrepo4","homepage":"http://github.com/fcrepo4/fcrepo4","size":135221,"stargazers_count":46,"watchers_count":46,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":66,"mirror_url":null,"open_issues_count":41,"forks":66,"open_issues":41,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/765"},"html":{"href":"https://github.com/fcrepo4/fcrepo4/pull/765"},"issue":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/765"},"comments":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/765/comments"},"review_comments":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/765/comments"},"review_comment":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/765/commits"},"statuses":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/statuses/53abddfbee5c4ac847d38c06dd1ee4b47f97d9c7"}}}}