Details

      Description

      It looks like the HTTP API documentation could use some updating in the area around fixity.

      Jonathan Rochkind pointed out the difference between what the documentation says one should get in response to a fixity request, versus what one actually receives.

      I think the content location triples were removed at some point...?

      What I get when I ask for fixing info on binary resource:

      {code}
      curl http://localhost:8080/fcrepo/rest/ab/64/82/f7/ab6482f7-533a-4f90-9664-189fa66d01c9/internal/fcr:fixity
      @prefix premis: <http://www.loc.gov/premis/rdf/v1#> .
      @prefix owl: <http://www.w3.org/2002/07/owl#> .
      @prefix pcdm: <http://pcdm.org/models#> .
      @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
      @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
      @prefix acl: <http://www.w3.org/ns/auth/acl#> .
      @prefix example: <http://www.example.org/terms/> .
      @prefix xsi: <http://www.w3.org/2001/XMLSchema-instance> .
      @prefix xmlns: <http://www.w3.org/2000/xmlns/> .
      @prefix audit: <http://fedora.info/definitions/v4/audit#> .
      @prefix xml: <http://www.w3.org/XML/1998/namespace> .
      @prefix dcterms: <http://purl.org/dc/terms/> .
      @prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> .
      @prefix event: <http://fedora.info/definitions/v4/event#> .
      @prefix prov: <http://www.w3.org/ns/prov#> .
      @prefix foaf: <http://xmlns.com/foaf/0.1/> .
      @prefix authz: <http://fedora.info/definitions/v4/authorization#> .
      @prefix test: <info:fedora/test/> .
      @prefix uspatent-s: <http://us.patents.aksw.org/schema/> .
      @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
      @prefix fedora: <http://fedora.info/definitions/v4/repository#> .
      @prefix ebucore: <http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#> .
      @prefix ldp: <http://www.w3.org/ns/ldp#> .
      @prefix iana: <http://www.iana.org/assignments/relation/> .
      @prefix bibo: <http://purl.org/ontology/bibo/> .
      @prefix xs: <http://www.w3.org/2001/XMLSchema> .
      @prefix config: <info:fedoraconfig/> .
      @prefix dc: <http://purl.org/dc/elements/1.1/> .

      <http://localhost:8080/fcrepo/rest/ab/64/82/f7/ab6482f7-533a-4f90-9664-189fa66d01c9/internal>
              premis:hasFixity <http://localhost:8080/fcrepo/rest/ab/64/82/f7/ab6482f7-533a-4f90-9664-189fa66d01c9/internal#fixity/1493839789960> .

      <http://localhost:8080/fcrepo/rest/ab/64/82/f7/ab6482f7-533a-4f90-9664-189fa66d01c9/internal#fixity/1493839789960>
              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> .
      {code}

      The docs say I should see something like these triples as well:
      https://wiki.duraspace.org/display/FEDORA47/RESTful+HTTP+API+-+Fixity


      {code}
      <info://org.modeshape.jcr.value.binary.FileSystemBinaryStore@7bcc39fb/fcrepo4/fcrepo-webapp/fcrepo4-data/fcrepo.binary.directory#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.directory#f7d787ee7fc58ce7fc257ae0067a2c65476be750"^^<http://www.w3.org/2001/XMLSchema#string> .
      {code}

        Attachments

          Activity

            People

            • Assignee:
              bseeger Bethany Seeger
              Reporter:
              jrochkind Jonathan Rochkind
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: