Versions Compared

Key

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

...

Response to include header 'Allow: GET, HEAD, OPTIONS, DELETE'

Prevent modification requests to LDPRm

PATCH/POST/PUT requests should all return 405 responses

PUT requests to LDPRv (work in progress)

...

  • A new LDPRm is created from the LDPRv
  • The LDPRm will have a Memento-Datetime matching the provided Accept-Datetime
  • Response includes 'Link: rel=timemap' pointing to LDPCv for versioned resources
  • include 'Vary: Accept-Datetime' header in response

POST request to LDPCv to create new LDPRm (work in progress)

Update POST to LDPCv to include support for versioning headers.  In In practice, the LDPCv for object with uri <http://localhost/rest/a> would be <http://localhost/rest/a/fcr:versions>

See: https://fcrepo.github.io/fcrepo-specification/#ldpcvpost

  • Creates LDPRm from the current LDPRv, as is the current behavior in fcrepo
  • If a Memento-Datetime header is provided as part of this POST request, then the newly created LDPRm must honor
  • Does this need to support body requests? (QUESTION)

Delete an LDPCv

See: https://fcrepo.github.io/fcrepo-specification/#ldpcvdelete

  • Deletes the LDPCv, which has the affect of also deleting all of the LDPRm's contained by it.
  • The Timemap reference from the LDPRv should no longer appear in its response headers.

Delete and LDPRv

 This might be a fedora modeshape implementation policy decision.  What happens to the mementos for that resource? Do they stick around and are still accessibe? 

Current behavior of fcrepo is that they are no longer accessible, as they have been presumabley removed as well. 

See: https://fcrepo.github.io/fcrepo-specification/#general-3

Requests to an LDPCv/TimeMap for a LDPRv must support a "application/link-format" response type, as shown in the example https://tools.ietf.org/html/rfc7089#page-37 

  • This response type is NOT required to include all statements in the LDPCv's graph, only those that are required by the link-format, outlined https://tools.ietf.org/html/rfc7089#page-36
    • Including: URI of LDPRv for this timemap, all LDPRms in this LDPCv with their memento date times, timegate link, link to the LDPCv