Responses to LDPRm HEAD and GET requests must include headers as outlined below. These headers should be returned both when the LDPRm is retrieved via timegate datetime negotiation or directly by URI.
- link rel="timegate" must point to the LDPRv: e.g. http://localhost:8080/rest/versioned_container1
- link rel="timemap" must point to the LDPCv: e.g. http://localhost:8080/rest/versioned_container1/fedora:versions
- link rel="original" must point to the LDPRv : e.g. http://localhost:8080/rest/versioned_container1
- link <http://mementoweb.org/ns#Memento>; rel="type"
For reference: the current (and incorrect) the output is as follows on an LDPm
- Trying 127.0.0.1...
- Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /rest/versioned_container1/fedora:timemap/20180312182935 HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.43.0
> Accept: /
< HTTP/1.1 200 OK
< Date: Mon, 12 Mar 2018 22:44:56 GMT
< ETag: W/"516c14a81d5179ddae4e9e96ba1dd3dcb11ec9bd"
< Last-Modified: Mon, 12 Mar 2018 18:29:28 GMT
< Link: <http://www.w3.org/ns/ldp#Resource>;rel="type"
< Link: <http://www.w3.org/ns/ldp#Container>;rel="type"
< Link: <http://www.w3.org/ns/ldp#BasicContainer>;rel="type"
< Memento-Datetime: Mon, 12 Mar 2018 18:29:35 GMT
< Link: <http://localhost:8080/static/constraints/ContainerConstraints.rdf>; rel="http://www.w3.org/ns/ldp#constrainedBy"
< Link: <http://mementoweb.org/ns#OriginalResource>; rel="type"
< Link: <http://mementoweb.org/ns#TimeGate>; rel="type"
< Link: <http://localhost:8080/rest/versioned_container1/fedora:timemap/20180312182935>; rel="timegate"
< Link: <http://localhost:8080/rest/versioned_container1/fedora:timemap/20180312182935/fcr:versions>; rel="timemap"
< Accept-Patch: application/sparql-update
< Accept-Post: text/turtle,text/rdf+n3,text/n3,application/rdf+xml,application/n-triples,application/ld+json,multipart/form-data,application/sparql-update,message/external-body; access-type=URL
< Allow: MOVE,COPY,DELETE,POST,HEAD,GET,PUT,PATCH,OPTIONS
< Preference-Applied: return=representation
< Vary: Prefer
< Vary: Accept
< Vary: Range
< Vary: Accept-Encoding
< Vary: Accept-Language
< Vary: Accept-Datetime
< Content-Type: text/turtle;charset=utf-8