Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Excerpt

Request URI: /path/to/some/resource/fcr:fixity

Methods: GET

Status
titleGET
 
Get the fixity report for an object

Note

Checking fixity requires retrieving the content from the binary store and may take some time.

 

Request Headers:

Status
subtletrue
titleAccept
  application/ld+json, application/n-triples, application/rdf+xml, application/x-turtle, application/xhtml+xml, application/xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle

 

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://

...

www.loc.gov/premis/rdf/v1#> .
@prefix rdf:  <http://www.

...

w3.

...

org/

...

1999/

...

02/22-rdf-syntax-ns#> .

<http://localhost:8080/rest/path/to/some/resource>

...

        premis:hasFixity  <http://localhost:8080/rest/path/to/some/resource#fixity/

...

1494431303920> .

<http://localhost:8080/rest/path/to/some/resource#fixity/

...

1494431303920>
        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#long> .


Response (fixity failure):

Code Block
Status: 200 OK
Headers:
Content-Type: text/turtle
 
Body:

...

@prefix premis:  <http://www.loc.gov/premis/rdf/

...

v1#> .
@prefix 

...

rdf:  <http://www.

...

w3.

...

org/

...

1999/

...

02/22-rdf-syntax-ns#> .

<http://localhost:8080/rest/path/to/some/

...

resource>

...

        premis:hasFixity  <http://localhost:8080/rest/path/to/some/resource#fixity/

...

1494445619308> 

...

.

...


...


...

<http://localhost:8080/rest/path/to/some/resource#fixity/

...

1494445619308>
        rdf:type                 premis:Fixity ;
        rdf:type                 premis:EventOutcomeDetail ;
        premis:hasEventOutcome   "BAD_CHECKSUM" ;
        premis:hasEventOutcome   "BAD_SIZE" ;
        premis:hasMessageDigestAlgorithm  "SHA-1" ;
        

...

premis:hasMessageDigest  <urn:sha1:

...

1d3d03c656cf0a944c393bf9257c6cecdba5263f> ;
        

...

premis:hasSize           "1287509"^^<http://www.w3.org/2001/

...

XMLSchema#long> .

Status:

Status
subtletrue
colourGreen
title200
  OK

Status
subtletrue
colourRed
title404
 Resource not found