Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Using premis:hasMessageDigest for checksums
  • Loading branch information
escowles committed May 8, 2015
1 parent 31e068b commit aba7e4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Expand Up @@ -57,6 +57,7 @@
import static org.fcrepo.kernel.RdfLexicon.FIRST_PAGE;
import static org.fcrepo.kernel.RdfLexicon.HAS_CHILD;
import static org.fcrepo.kernel.RdfLexicon.HAS_MEMBER_RELATION;
import static org.fcrepo.kernel.RdfLexicon.HAS_MESSAGE_DIGEST;
import static org.fcrepo.kernel.RdfLexicon.HAS_OBJECT_COUNT;
import static org.fcrepo.kernel.RdfLexicon.HAS_OBJECT_SIZE;
import static org.fcrepo.kernel.RdfLexicon.HAS_PRIMARY_IDENTIFIER;
Expand Down Expand Up @@ -466,6 +467,8 @@ public void testGetNonRDFSourceDescription() throws Exception {
createURI(REPOSITORY_NAMESPACE + "NonRdfSourceDescription")));
assertTrue("Binary should be a ldp:NonRDFSource",
graphStore.contains(ANY, createURI(serverAddress + pid + "/x"), rdfType, NON_RDF_SOURCE.asNode()));
assertTrue("Binary should have a checksum",
graphStore.contains(ANY, createURI(serverAddress + pid + "/x"), HAS_MESSAGE_DIGEST.asNode(), ANY));
}

@Test
Expand Down
Expand Up @@ -68,7 +68,7 @@
[fedora:Binary] > fedora:Resource mixin
- premis:hasOriginalName (STRING)
- premis:hasSize (LONG) COPY
- fedora:digest (URI) COPY
- premis:hasMessageDigest (URI) COPY

[fedora:Blanknode] > mix:referenceable mixin

Expand Down
Expand Up @@ -55,7 +55,7 @@ public interface FedoraJcrTypes {

String CONTENT_SIZE = "premis:hasSize";

String CONTENT_DIGEST = "fedora:digest";
String CONTENT_DIGEST = "premis:hasMessageDigest";

String FCR_METADATA = "fcr:metadata";

Expand Down

0 comments on commit aba7e4b

Please sign in to comment.