...
Excerpt | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Request URI: /path/to/some/resource/fcr:fixity Methods: GET
Status |
|
Note |
---|
Checking fixity requires retrieving the content from the binary store and may take some time. |
Request Headers:
Status | ||||
---|---|---|---|---|
|
Example:
Code Block |
---|
curl -H "Accept: text/turtle" "http://localhost:8080/rest/path/to/some/resource/fcr:fixity" |
Response (fixity success):
Code Block |
---|
Status: 200 OK Headers: Content-Type: text/turtle Body: @prefix premis: <http://localhost:8080/rest/path/to/some/resource#fixity/1400589459772> awww.loc.gov/premis/rdf/v1#> . @prefix rdf: <http://www.locw3.govorg/1999/premis02/rdf/v1#Fixity>22-rdf-syntax-ns#> . <http://localhost:8080/rest/path/to/some/resource> <http://www.loc.gov/premis/rdf/v1#hasFixity> premis:hasFixity <http://localhost:8080/rest/path/to/some/resource#fixity/1400589459772>1494431303920> . <http://localhost:8080/rest/path/to/some/resource#fixity/1400589459772> <http://www.loc.gov/premis/rdf/v1#hasContentLocation> <info://org.modeshape.jcr.value.binary.FileSystemBinaryStore@7bcc39fb/fcrepo4/fcrepo-webapp/fcrepo4-data/fcrepo.binary-store-path#f7d787ee7fc58ce7fc257ae0067a2c65476be750> . <info://org.modeshape.jcr.value.binary.FileSystemBinaryStore@7bcc39fb/fcrepo4/fcrepo-webapp/fcrepo4-data/fcrepo.binary-store-path#f7d787ee7fc58ce7fc257ae0067a2c65476be750> a <http://www.loc.gov/premis/rdf/v1#ContentLocation> ; <http://www.loc.gov/premis/rdf/v1#hasContentLocationValue> "info://org.modeshape.jcr.value.binary.FileSystemBinaryStore@7bcc39fb/fcrepo4/fcrepo-webapp/fcrepo4-data/fcrepo.binary-store-path#f7d787ee7fc58ce7fc257ae0067a2c65476be7501494431303920> rdf:type premis:Fixity ; rdf:type premis:EventOutcomeDetail ; premis:hasEventOutcome "SUCCESS" ; premis:hasMessageDigestAlgorithm "SHA-1" ; premis:hasMessageDigest <urn:sha1:ca3392593351ef8e6554bdabfbd8bdc1002ecb6f> ; premis:hasSize "1277811"^^<http://www.w3.org/2001/XMLSchema#string>XMLSchema#long> . |
Response (fixity failure):
Code Block |
---|
Status: 200 OK Headers: Content-Type: text/turtle Body: @prefix premis: <http://localhost:8080/rest/path/to/some/resource#fixity/1400589459772> awww.loc.gov/premis/rdf/v1#> . @prefix rdf: <http://www.locw3.govorg/1999/premis02/rdf/v1#Fixity>22-rdf-syntax-ns#> . <http://localhost:8080/rest/path/to/some/resource> <http://www.loc.gov/premis/rdf/v1#hasFixity> premis:hasFixity <http://localhost:8080/rest/path/to/some/resource#fixity/1400589459772>1494445619308> . <http://localhost:8080/rest/path/to/some/resource#fixity/1400589459772> <http://www.loc.gov/premis/rdf/v1#hasContentLocation> <info://org.modeshape.jcr.value.binary.FileSystemBinaryStore@7bcc39fb/fcrepo4/fcrepo-webapp/fcrepo4-data/fcrepo.binary-store-path#f7d787ee7fc58ce7fc257ae0067a2c65476be750> . <http://localhost:8080/rest/path/to/some/resource#fixity/1400589459772> <http://fedora.info/definitions/v4/repository#status> "BAD_CHECKSUM"^^<http://www.w3.org/2001/XMLSchema#string> , "BAD_SIZE"^^<http://www.w3.org/2001/XMLSchema#string>1494445619308> rdf:type premis:Fixity ; rdf:type premis:EventOutcomeDetail ; premis:hasEventOutcome "BAD_CHECKSUM" ; premis:hasEventOutcome "BAD_SIZE" ; premis:hasMessageDigestAlgorithm "SHA-1" ; <http://www.loc.gov/premis/rdf/v1#hasMessageDigest>premis:hasMessageDigest <urn:sha1:b04bded0d83b74ac0c700945e24e43e823eb5821>1d3d03c656cf0a944c393bf9257c6cecdba5263f> ; <http://www.loc.gov/premis/rdf/v1#hasSize> "1324943premis:hasSize "1287509"^^<http://www.w3.org/2001/XMLSchema#int>XMLSchema#long> . |
Status:
Status | ||||||
---|---|---|---|---|---|---|
|
Status | ||||||
---|---|---|---|---|---|---|
|
Default Fixity Algorithm
When ingesting a binary resource, one or more checksums may be provided, see API reference (POST example 4b). The supported algorithms are: SHA-1, SHA-256 and MD5.
By default, the algorithm used by the Fixity service is SHA-1. However, that may be changed to one of the other supported algorithms by configuring the property: fedoraconfig:defaultDigestAlgorithm
. See API reference (PATCH example 2).