Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-2848

Triples in mementos not the same as in original resource

    XMLWordPrintable

    Details

      Description

      When fetching the original resource and a recently created memento, the memento has a few different triples. Some are not an issue, but others may be. The memento is not the same as the original resource (at least in this serialization).

      To reproduce:

      // create a resource to version
      $> curl -X POST -H "Link: <http://mementoweb.org/ns#OriginalResource>; rel=\"type\"" http://localhost:8080/fcrepo4/rest/ -H "slug: test1"

      // version it
      $> curl -X POST http://localhost:8080/fcrepo4/rest/test1/fcr:versions

      which creates a memento – fetch memento information by querying the fcr:versions endpoint.

      Then get the Original Resource and the memento and compare them:
      $> curl http://localhost:8080/fcrepo4/rest/test1
      $> curl http://localhost:8080/fcrepo4/rest/test1/fcr:versions/UNIQUEID

      The differences in the memento's triples are as follows:

      Missing triple:
      rdf:type fedora:Continer;

      Duplicated triples:

      rdf:type ldp:RDFSource ;
      rdf:type ldp:Container ;
      fedora:writable true ;

      new altogether:
      rdf:type ldp:BasicContainer ;

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bseeger Bethany Seeger
              Reporter:
              bseeger Bethany Seeger
              Reviewer:
              Ben Pennell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: