Skip to content

Instantly share code, notes, and snippets.

@acoburn
Last active November 6, 2017 15:40
Show Gist options
  • Save acoburn/7e1b5078379a4405c28c610a72c2a3f6 to your computer and use it in GitHub Desktop.
Save acoburn/7e1b5078379a4405c28c610a72c2a3f6 to your computer and use it in GitHub Desktop.
$ curl -i localhost:8080/repository?ext=timemap -H"Accept: text/turtle"
HTTP/1.1 200 OK
Date: Mon, 06 Nov 2017 15:38:45 GMT
Link: <http://localhost:8080/repository>; rel="original timegate"
Link: <http://localhost:8080/repository?ext=timemap>; rel="timemap"; from="Mon, 23 Oct 2017 19:23:01 GMT"; until="Mon, 23 Oct 2017 20:43:26 GMT"; type="application/link-format"
Link: <http://localhost:8080/repository?version=1508786580532>; rel="memento"; datetime="Mon, 23 Oct 2017 19:23:01 GMT"
Link: <http://localhost:8080/repository?version=1508787594899>; rel="memento"; datetime="Mon, 23 Oct 2017 19:39:55 GMT"
Link: <http://localhost:8080/repository?version=1508788096188>; rel="memento"; datetime="Mon, 23 Oct 2017 19:48:17 GMT"
Link: <http://localhost:8080/repository?version=1508790141070>; rel="memento"; datetime="Mon, 23 Oct 2017 20:22:22 GMT"
Link: <http://localhost:8080/repository?version=1508791005464>; rel="memento"; datetime="Mon, 23 Oct 2017 20:36:46 GMT"
Link: <http://www.w3.org/ns/ldp#Resource>; rel="type"
Link: <http://www.w3.org/ns/ldp#RDFSource>; rel="type"
Link: <http://localhost:8080/repository?ext=acl>; rel="acl"
Allow: GET,HEAD,OPTIONS
Content-Type: text/turtle
Cache-Control: no-transform, max-age=86400
Vary: Accept-Encoding
Content-Length: 1437
@prefix schema: <http://schema.org/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@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 geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix as: <https://www.w3.org/ns/activitystreams#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix dc: <http://purl.org/dc/terms/> .
<http://localhost:8080/repository?ext=timemap>
prov:startedAtTime "2017-10-23T19:23:01Z"^^xsd:dateTime ;
prov:endedAtTime "2017-10-23T20:43:26Z"^^xsd:dateTime .
<http://localhost:8080/repository?version=1508786580532>
prov:atTime "2017-10-23T19:23:01Z"^^xsd:dateTime .
<http://localhost:8080/repository?version=1508787594899>
prov:atTime "2017-10-23T19:39:55Z"^^xsd:dateTime .
<http://localhost:8080/repository?version=1508788096188>
prov:atTime "2017-10-23T19:48:17Z"^^xsd:dateTime .
<http://localhost:8080/repository?version=1508790141070>
prov:atTime "2017-10-23T20:22:22Z"^^xsd:dateTime .
<http://localhost:8080/repository?version=1508791005464>
prov:atTime "2017-10-23T20:36:46Z"^^xsd:dateTime .
$ curl -i localhost:8080/repository?ext=timemap
HTTP/1.1 200 OK
Date: Mon, 06 Nov 2017 15:38:30 GMT
Link: <http://localhost:8080/repository>; rel="original timegate"
Link: <http://localhost:8080/repository?ext=timemap>; rel="timemap"; from="Mon, 23 Oct 2017 19:23:01 GMT"; until="Mon, 23 Oct 2017 20:43:26 GMT"; type="application/link-format"
Link: <http://localhost:8080/repository?version=1508786580532>; rel="memento"; datetime="Mon, 23 Oct 2017 19:23:01 GMT"
Link: <http://localhost:8080/repository?version=1508787594899>; rel="memento"; datetime="Mon, 23 Oct 2017 19:39:55 GMT"
Link: <http://localhost:8080/repository?version=1508788096188>; rel="memento"; datetime="Mon, 23 Oct 2017 19:48:17 GMT"
Link: <http://localhost:8080/repository?version=1508790141070>; rel="memento"; datetime="Mon, 23 Oct 2017 20:22:22 GMT"
Link: <http://localhost:8080/repository?version=1508791005464>; rel="memento"; datetime="Mon, 23 Oct 2017 20:36:46 GMT"
Link: <http://www.w3.org/ns/ldp#Resource>; rel="type"
Link: <http://www.w3.org/ns/ldp#RDFSource>; rel="type"
Link: <http://localhost:8080/repository?ext=acl>; rel="acl"
Allow: GET,HEAD,OPTIONS
Content-Type: application/link-format
Cache-Control: no-transform, max-age=86400
Vary: Accept-Encoding
Content-Length: 746
<http://localhost:8080/repository?ext=timemap>; rel="timemap"; from="Mon, 23 Oct 2017 19:23:01 GMT"; until="Mon, 23 Oct 2017 20:43:26 GMT"; type="application/link-format",
<http://localhost:8080/repository?version=1508786580532>; rel="memento"; datetime="Mon, 23 Oct 2017 19:23:01 GMT",
<http://localhost:8080/repository?version=1508787594899>; rel="memento"; datetime="Mon, 23 Oct 2017 19:39:55 GMT",
<http://localhost:8080/repository?version=1508788096188>; rel="memento"; datetime="Mon, 23 Oct 2017 19:48:17 GMT",
<http://localhost:8080/repository?version=1508790141070>; rel="memento"; datetime="Mon, 23 Oct 2017 20:22:22 GMT",
<http://localhost:8080/repository?version=1508791005464>; rel="memento"; datetime="Mon, 23 Oct 2017 20:36:46 GMT"
@prefix memento: <http://mementoweb.org/ns#> .
@prefix iana: <http://www.iana.org/assignments/relation/> .
@prefix time: <http://www.w3.org/2006/time#> .
<resource> a memento:OriginalResource, memento:TimeGate ;
memento:timegate <resource> ;
memento:timemap <resource?ext=timemap> ;
memento:memento <resource?version=1> , <resource?version=2> , <resource?version=3> .
<resource?ext=timemap> a memento:TimeMap ;
time:hasBeginning <http://reference.data.gov.uk/id/gregorian-instant/2004-04-12T13:20:00> ;
time:hasEnd <http://reference.data.gov.uk/id/gregorian-instant/2012-06-02T11:51:00> ;
iana:first <resource?version=1> ;
iana:last <resource?version=3> .
<resource?version=1> a memento:Memento ;
memento:original <resource> ;
memento:timegate <resource> ;
memento:timemap <resource?ext=timemap> ;
iana:next <resource?version=2> ;
time:hasTime <http://reference.data.gov.uk/id/gregorian-instant/2004-04-12T13:20:00> ;
memento:memento-datetime "2004-04-12T13:20:00Z"^^xsd:dateTimeStamp .
<resource?version=2> a memento:Memento ;
memento:original <resource> ;
memento:timegate <resource> ;
memento:timemap <resource?ext=timemap> ;
iana:prev <resource?version=1> ;
iana:next <resource?version=3> ;
time:hasTime <http://reference.data.gov.uk/id/gregorian-instant/2007-01-02T17:42:00> ;
memento:memento-datetime "2007-01-02T17:42:00Z"^^xsd:dateTimeStamp .
<resource?version=3> a memento:Memento ;
memento:original <resource> ;
memento:timegate <resource> ;
memento:timemap <resource?ext=timemap> ;
iana:prev <resource?version=2> ;
time:hasTime <http://reference.data.gov.uk/id/gregorian-instant/2012-06-02T11:51:00> ;
memento:memento-datetime "2012-06-02T11:51:00Z"^^xsd:dateTimeStamp .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment