...
Here's an example of a LDPRv - what signifies that it is a LDPRv is that it has a `fedora:hasVersions` triple. This is the current behavior of the Modeshape Fedora and doesn't seem to need any change, other then maybe how the `fcr:versions` triple is created. a request on the LDPRv returns memento related 'Link' headers in the reponse. These 'Link' headers point to the TimeMap and TimeGate for this resource . The current behavior is that a 'hasVersions' triple is returned when a LDPR is requested.
Code Block | ||||
---|---|---|---|---|
| ||||
HTTP/1.1 200 OK
Date: Mon, 18 Sep 2017 14:58:26 GMT
Link: <http://localhost:8080/rest/xyz>; rel="original timegate"
Link: <http://localhost:8080/rest/xyz/fcr:versions>; rel="timemap"; from="Fri, 8 Sep 2017 21:35:19 GMT"; until="Mon, 11 Sep 2017 15:41:04 GMT"; type="application/link-format"
Link: <http://localhost:8080/rest/xyz/fcr:versions/1504906518839>; rel="memento"; datetime="Fri, 8 Sep 2017 21:35:19 GMT"
Allow: GET,HEAD,OPTIONS
Content-Type: text/turtle
Cache-Control: no-transform, max-age=86400
Vary: Accept-Encoding
Content-Length: 1039
| ||||
Code Block | ||||
| ||||
@prefix premis: <http://www.loc.gov/premis/rdf/v1#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix fedora: <http://fedora.info/definitions/v4/repository#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
</path/to/resource/xyz>
rdf:type fedora:Container ;
rdf:type fedora:Resource ;
rdf:type ldp:RDFSource ;
rdf:type ldp:Container ;
fedora:lastModifiedBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:createdBy "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
fedora:lastModified "2017-09-18T20:01:33.501Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:created "2017-09-15T21:19:49.731Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
fedora:writable "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ;
fedora:hasParent </path/to/resource> ;
ldp:contains </path/to/resource/xyz/abc> ;
fedora:hasVersions </path/to/resource/xyz/fcr:versions> . # pointer to the LDPCv (TimeMap) |
LDPCv - Memento Container (TimeMap)
...