{"action":"created","comment":{"url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments/38235526","id":38235526,"diff_hunk":"@@ -392,19 +392,20 @@ public void testGetObjectVersionGraph() throws RepositoryException {\n \n         // go querying for the version URI\n         Resource s = createResource(createGraphSubjectNode(object).getURI());\n-        Property p = createProperty(REPOSITORY_NAMESPACE + \"hasVersion\");\n-        final ExtendedIterator<Statement> triples = graphStore.listStatements(s, p, (RDFNode)null);\n+        final ExtendedIterator<Statement> triples = graphStore.listStatements(s,\n+                createProperty(REPOSITORY_NAMESPACE + \"hasVersion\"), (RDFNode)null);\n \n         final List<Statement> list = triples.toList();\n         assertEquals(1, list.size());\n \n-        // make sure it matches the label\n+        // make sure the URI is derived from the label\n         s = list.get(0).getObject().asResource();\n-        p = createProperty(REPOSITORY_NAMESPACE + \"hasVersionLabel\");\n-        final Literal o = createPlainLiteral(\"v0.0.1\");\n-\n-        assertTrue(graphStore.contains(s, p, o));\n+        assertEquals(\"URI should be derived from label.\", s.getURI(), createGraphSubjectNode(object).getURI()\n+                + \"/fcr:versions/v0.0.1\");\n \n+        // make sure the label is listed\n+        assertTrue(graphStore.contains(s, createProperty(REPOSITORY_NAMESPACE + \"hasVersionLabel\"),","path":"fcrepo-kernel-modeshape/src/test/java/org/fcrepo/integration/kernel/modeshape/FedoraResourceImplIT.java","position":23,"original_position":23,"commit_id":"96b62c6a93da02edc1a63c20da0fcc56b868ac84","original_commit_id":"96b62c6a93da02edc1a63c20da0fcc56b868ac84","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":"Please use property:\r\nhttps://github.com/fcrepo4/fcrepo4/blob/master/fcrepo-kernel-api/src/main/java/org/fcrepo/kernel/api/RdfLexicon.java#L254","created_at":"2015-08-28T19:31:47Z","updated_at":"2015-08-28T19:31:47Z","html_url":"https://github.com/fcrepo4/fcrepo4/pull/892#discussion_r38235526","pull_request_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/892","_links":{"self":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments/38235526"},"html":{"href":"https://github.com/fcrepo4/fcrepo4/pull/892#discussion_r38235526"},"pull_request":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/892"}}},"pull_request":{"url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/892","id":43551842,"html_url":"https://github.com/fcrepo4/fcrepo4/pull/892","diff_url":"https://github.com/fcrepo4/fcrepo4/pull/892.diff","patch_url":"https://github.com/fcrepo4/fcrepo4/pull/892.patch","issue_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/892","number":892,"state":"open","locked":false,"title":"Made URIs derived from version labels the exposed ID.","user":{"login":"mikedurbin","id":833240,"avatar_url":"https://avatars.githubusercontent.com/u/833240?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedurbin","html_url":"https://github.com/mikedurbin","followers_url":"https://api.github.com/users/mikedurbin/followers","following_url":"https://api.github.com/users/mikedurbin/following{/other_user}","gists_url":"https://api.github.com/users/mikedurbin/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedurbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedurbin/subscriptions","organizations_url":"https://api.github.com/users/mikedurbin/orgs","repos_url":"https://api.github.com/users/mikedurbin/repos","events_url":"https://api.github.com/users/mikedurbin/events{/privacy}","received_events_url":"https://api.github.com/users/mikedurbin/received_events","type":"User","site_admin":false},"body":"Resolves https://jira.duraspace.org/browse/FCREPO-1703","created_at":"2015-08-27T18:42:13Z","updated_at":"2015-08-28T19:31:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21ecf8b90b2093c4e5422b723b1bc9cea1cc0db8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/892/commits","review_comments_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/892/comments","review_comment_url":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/892/comments","statuses_url":"https://api.github.com/repos/fcrepo4/fcrepo4/statuses/96b62c6a93da02edc1a63c20da0fcc56b868ac84","head":{"label":"mikedurbin:FCREPO-1703","ref":"FCREPO-1703","sha":"96b62c6a93da02edc1a63c20da0fcc56b868ac84","user":{"login":"mikedurbin","id":833240,"avatar_url":"https://avatars.githubusercontent.com/u/833240?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedurbin","html_url":"https://github.com/mikedurbin","followers_url":"https://api.github.com/users/mikedurbin/followers","following_url":"https://api.github.com/users/mikedurbin/following{/other_user}","gists_url":"https://api.github.com/users/mikedurbin/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedurbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedurbin/subscriptions","organizations_url":"https://api.github.com/users/mikedurbin/orgs","repos_url":"https://api.github.com/users/mikedurbin/repos","events_url":"https://api.github.com/users/mikedurbin/events{/privacy}","received_events_url":"https://api.github.com/users/mikedurbin/received_events","type":"User","site_admin":false},"repo":{"id":12389298,"name":"fcrepo4","full_name":"mikedurbin/fcrepo4","owner":{"login":"mikedurbin","id":833240,"avatar_url":"https://avatars.githubusercontent.com/u/833240?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedurbin","html_url":"https://github.com/mikedurbin","followers_url":"https://api.github.com/users/mikedurbin/followers","following_url":"https://api.github.com/users/mikedurbin/following{/other_user}","gists_url":"https://api.github.com/users/mikedurbin/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedurbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedurbin/subscriptions","organizations_url":"https://api.github.com/users/mikedurbin/orgs","repos_url":"https://api.github.com/users/mikedurbin/repos","events_url":"https://api.github.com/users/mikedurbin/events{/privacy}","received_events_url":"https://api.github.com/users/mikedurbin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikedurbin/fcrepo4","description":"Fedora 4: \"Changing everything, two weeks at a time\"","fork":true,"url":"https://api.github.com/repos/mikedurbin/fcrepo4","forks_url":"https://api.github.com/repos/mikedurbin/fcrepo4/forks","keys_url":"https://api.github.com/repos/mikedurbin/fcrepo4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikedurbin/fcrepo4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikedurbin/fcrepo4/teams","hooks_url":"https://api.github.com/repos/mikedurbin/fcrepo4/hooks","issue_events_url":"https://api.github.com/repos/mikedurbin/fcrepo4/issues/events{/number}","events_url":"https://api.github.com/repos/mikedurbin/fcrepo4/events","assignees_url":"https://api.github.com/repos/mikedurbin/fcrepo4/assignees{/user}","branches_url":"https://api.github.com/repos/mikedurbin/fcrepo4/branches{/branch}","tags_url":"https://api.github.com/repos/mikedurbin/fcrepo4/tags","blobs_url":"https://api.github.com/repos/mikedurbin/fcrepo4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikedurbin/fcrepo4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikedurbin/fcrepo4/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikedurbin/fcrepo4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikedurbin/fcrepo4/statuses/{sha}","languages_url":"https://api.github.com/repos/mikedurbin/fcrepo4/languages","stargazers_url":"https://api.github.com/repos/mikedurbin/fcrepo4/stargazers","contributors_url":"https://api.github.com/repos/mikedurbin/fcrepo4/contributors","subscribers_url":"https://api.github.com/repos/mikedurbin/fcrepo4/subscribers","subscription_url":"https://api.github.com/repos/mikedurbin/fcrepo4/subscription","commits_url":"https://api.github.com/repos/mikedurbin/fcrepo4/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikedurbin/fcrepo4/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikedurbin/fcrepo4/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikedurbin/fcrepo4/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikedurbin/fcrepo4/contents/{+path}","compare_url":"https://api.github.com/repos/mikedurbin/fcrepo4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikedurbin/fcrepo4/merges","archive_url":"https://api.github.com/repos/mikedurbin/fcrepo4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikedurbin/fcrepo4/downloads","issues_url":"https://api.github.com/repos/mikedurbin/fcrepo4/issues{/number}","pulls_url":"https://api.github.com/repos/mikedurbin/fcrepo4/pulls{/number}","milestones_url":"https://api.github.com/repos/mikedurbin/fcrepo4/milestones{/number}","notifications_url":"https://api.github.com/repos/mikedurbin/fcrepo4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikedurbin/fcrepo4/labels{/name}","releases_url":"https://api.github.com/repos/mikedurbin/fcrepo4/releases{/id}","created_at":"2013-08-26T20:45:03Z","updated_at":"2014-06-03T03:12:28Z","pushed_at":"2015-08-28T14:43:25Z","git_url":"git://github.com/mikedurbin/fcrepo4.git","ssh_url":"git@github.com:mikedurbin/fcrepo4.git","clone_url":"https://github.com/mikedurbin/fcrepo4.git","svn_url":"https://github.com/mikedurbin/fcrepo4","homepage":"http://futures.github.com/fcrepo4/","size":29223,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"fcrepo4:master","ref":"master","sha":"731e92ca5ad30e83edae4ef6db972d9e8a1e72fd","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-08-24T15:22:12Z","pushed_at":"2015-08-28T17:56:55Z","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":140432,"stargazers_count":54,"watchers_count":54,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":71,"mirror_url":null,"open_issues_count":44,"forks":71,"open_issues":44,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/892"},"html":{"href":"https://github.com/fcrepo4/fcrepo4/pull/892"},"issue":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/892"},"comments":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/issues/892/comments"},"review_comments":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/892/comments"},"review_comment":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/pulls/892/commits"},"statuses":{"href":"https://api.github.com/repos/fcrepo4/fcrepo4/statuses/96b62c6a93da02edc1a63c20da0fcc56b868ac84"}}}}