triannon-client 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env_example +1 -1
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trig_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trix_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/n3_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +432 -513
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/ld_json_.yml +50 -50
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +38 -38
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +37 -37
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/gets_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +37 -37
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/ld_json_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/trig_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/trix_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/n3_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/checks_the_annotation_ID.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_a_nil_ID.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_empty_string_ID.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_integer_ID.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/requests_an_open_annotation_by_ID_accepting_a_default_JSON-LD_content.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_EMPTY_RDF_graph_for_a_500_server_response.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_EMPTY_RDF_graph_with_a_valid_ID_for_NO_annotation_on_the_server.yml +37 -155
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_RDF_graph_with_a_valid_ID_for_an_annotation_on_the_server.yml +50 -50
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/requests_an_open_annotation_by_ID_using_a_IIIF_profile.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +46 -46
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +50 -50
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_404_responses_.yml +8 -8
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_410_responses_.yml +8 -8
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/logs_exceptions.yml +8 -8
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_FALSE_for_a_500_response_to_a_DELETE_request.yml +12 -11
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml +12 -11
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml +12 -11
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml +12 -11
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml +12 -11
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml +12 -11
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_does_NOT_exist.yml +18 -18
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_exists.yml +38 -38
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml +8 -8
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml +24 -24
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +24 -24
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +54 -54
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml +1377 -1623
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml +1377 -1623
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_RDF_URI_that_is_a_valid_URI.yml +38 -38
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_array_of_RDF_URI_from_an_RDF_Graph_of_an_annotation.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +41 -41
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +29 -29
- data/triannon-client.gemspec +1 -1
- metadata +2 -2
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:3000/annotations/
|
5
|
+
uri: http://localhost:3000/annotations/foo/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: commit=Create%20Annotation&annotation[data]=%7B%22%40context%22%3A%22http%3A%2F%2Fiiif.io%2Fapi%2Fpresentation%2F2%2Fcontext.json%22%2C%22%40graph%22%3A%5B%7B%22%40id%22%3A%22_%3Ag70349699654640%22%2C%22%40type%22%3A%5B%22dctypes%3AText%22%2C%22cnt%3AContentAsText%22%5D%2C%22chars%22%3A%22I%20love%20this!%22%2C%22format%22%3A%22text%2Fplain%22%2C%22language%22%3A%22en%22%7D%2C%7B%22%40type%22%3A%22oa%3AAnnotation%22%2C%22motivation%22%3A%22oa%3Acommenting%22%2C%22on%22%3A%22http%3A%2F%2Fpurl.stanford.edu%2Fkq131cs7229%22%2C%22resource%22%3A%22_%3Ag70349699654640%22%7D%5D%7D
|
@@ -31,31 +31,31 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/ld+json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"842c48e4eab19e62439c950bbf94e455"
|
35
35
|
Cache-Control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- 13cb1cda-9948-4630-9bd1-a05097d343ae
|
39
39
|
X-Runtime:
|
40
|
-
- '1.
|
40
|
+
- '1.779279'
|
41
41
|
Server:
|
42
42
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
43
43
|
Date:
|
44
|
-
-
|
44
|
+
- Fri, 19 Jun 2015 18:38:54 GMT
|
45
45
|
Content-Length:
|
46
|
-
- '
|
46
|
+
- '447'
|
47
47
|
Connection:
|
48
48
|
- Keep-Alive
|
49
49
|
Set-Cookie:
|
50
|
-
- _internal_session=
|
50
|
+
- _internal_session=Nmc2MUtuWUFFUDFZdWdwZGluN3FtV3RrM3RCaXhNSWR3N0ZQUXluNGRuWmN0VXpFZWtqRzlCdThqc0trbFEweE0xNlV3RkZDcG1aOXBRbDllTTBsenBUSjZXNkVvc3VkZFJ3Z1c4MjlRcCt1WFAwOUh1N2pmeERWVW1JbFR0TVZKUncyc1FtYUxSekpQakJrejd2OTBDL1o5ZW5lNzR5YWZ6OC9xMUdRWnZnVGxiVGhKUGFRTmVIa0U0ZVlsdlVSeGFvZVRXNXlVWDQvQm9aYVVqcVdlRVR3aUljaDl1TUlzMmJvRXJTUStwRHJmZWgzQktoeW1zdTByV2E4bE8wQi0tdWQ2VDFLS1czTjFtYnJGWVc1UzdPQT09--f9048b88a072d0971450ae9864eaaacfc2c052b8;
|
51
51
|
path=/; HttpOnly
|
52
52
|
- request_method=POST; path=/
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
|
-
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:
|
56
|
-
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/
|
55
|
+
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g70154590751300","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
56
|
+
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/foo/74/66/13/0b/7466130b-6233-45fe-983f-06d2fc1cf70c","@type":"oa:Annotation","hasBody":"_:g70154590751300","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
|
57
57
|
http_version:
|
58
|
-
recorded_at:
|
58
|
+
recorded_at: Fri, 19 Jun 2015 18:38:54 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
61
61
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
message: Temporary Redirect
|
76
76
|
headers:
|
77
77
|
Date:
|
78
|
-
-
|
78
|
+
- Fri, 19 Jun 2015 18:38:54 GMT
|
79
79
|
Server:
|
80
80
|
- Apache/2
|
81
81
|
Location:
|
@@ -83,7 +83,7 @@ http_interactions:
|
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=21600
|
85
85
|
Expires:
|
86
|
-
-
|
86
|
+
- Sat, 20 Jun 2015 00:38:54 GMT
|
87
87
|
Content-Length:
|
88
88
|
- '240'
|
89
89
|
Content-Type:
|
@@ -99,7 +99,7 @@ http_interactions:
|
|
99
99
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
100
100
|
</body></html>
|
101
101
|
http_version:
|
102
|
-
recorded_at:
|
102
|
+
recorded_at: Fri, 19 Jun 2015 18:38:54 GMT
|
103
103
|
- request:
|
104
104
|
method: get
|
105
105
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -121,7 +121,7 @@ http_interactions:
|
|
121
121
|
message: OK
|
122
122
|
headers:
|
123
123
|
Date:
|
124
|
-
-
|
124
|
+
- Fri, 19 Jun 2015 18:38:54 GMT
|
125
125
|
Server:
|
126
126
|
- Apache/2
|
127
127
|
Last-Modified:
|
@@ -135,7 +135,7 @@ http_interactions:
|
|
135
135
|
Cache-Control:
|
136
136
|
- max-age=21600
|
137
137
|
Expires:
|
138
|
-
-
|
138
|
+
- Sat, 20 Jun 2015 00:38:54 GMT
|
139
139
|
P3p:
|
140
140
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
141
141
|
Access-Control-Allow-Origin:
|
@@ -1253,7 +1253,7 @@ http_interactions:
|
|
1253
1253
|
|
1254
1254
|
|
1255
1255
|
http_version:
|
1256
|
-
recorded_at:
|
1256
|
+
recorded_at: Fri, 19 Jun 2015 18:38:55 GMT
|
1257
1257
|
- request:
|
1258
1258
|
method: get
|
1259
1259
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -1273,7 +1273,7 @@ http_interactions:
|
|
1273
1273
|
message: Temporary Redirect
|
1274
1274
|
headers:
|
1275
1275
|
Date:
|
1276
|
-
-
|
1276
|
+
- Fri, 19 Jun 2015 18:38:55 GMT
|
1277
1277
|
Server:
|
1278
1278
|
- Apache/2
|
1279
1279
|
Location:
|
@@ -1281,7 +1281,7 @@ http_interactions:
|
|
1281
1281
|
Cache-Control:
|
1282
1282
|
- max-age=21600
|
1283
1283
|
Expires:
|
1284
|
-
-
|
1284
|
+
- Sat, 20 Jun 2015 00:38:55 GMT
|
1285
1285
|
Content-Length:
|
1286
1286
|
- '240'
|
1287
1287
|
Content-Type:
|
@@ -1297,7 +1297,7 @@ http_interactions:
|
|
1297
1297
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
1298
1298
|
</body></html>
|
1299
1299
|
http_version:
|
1300
|
-
recorded_at:
|
1300
|
+
recorded_at: Fri, 19 Jun 2015 18:38:55 GMT
|
1301
1301
|
- request:
|
1302
1302
|
method: get
|
1303
1303
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -1319,7 +1319,7 @@ http_interactions:
|
|
1319
1319
|
message: OK
|
1320
1320
|
headers:
|
1321
1321
|
Date:
|
1322
|
-
-
|
1322
|
+
- Fri, 19 Jun 2015 18:38:55 GMT
|
1323
1323
|
Server:
|
1324
1324
|
- Apache/2
|
1325
1325
|
Last-Modified:
|
@@ -1333,7 +1333,7 @@ http_interactions:
|
|
1333
1333
|
Cache-Control:
|
1334
1334
|
- max-age=21600
|
1335
1335
|
Expires:
|
1336
|
-
-
|
1336
|
+
- Sat, 20 Jun 2015 00:38:55 GMT
|
1337
1337
|
P3p:
|
1338
1338
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
1339
1339
|
Access-Control-Allow-Origin:
|
@@ -2451,10 +2451,10 @@ http_interactions:
|
|
2451
2451
|
|
2452
2452
|
|
2453
2453
|
http_version:
|
2454
|
-
recorded_at:
|
2454
|
+
recorded_at: Fri, 19 Jun 2015 18:38:55 GMT
|
2455
2455
|
- request:
|
2456
2456
|
method: get
|
2457
|
-
uri: http://localhost:3000/annotations/
|
2457
|
+
uri: http://localhost:3000/annotations/foo/74%2F66%2F13%2F0b%2F7466130b-6233-45fe-983f-06d2fc1cf70c
|
2458
2458
|
body:
|
2459
2459
|
encoding: US-ASCII
|
2460
2460
|
string: ''
|
@@ -2479,19 +2479,19 @@ http_interactions:
|
|
2479
2479
|
Content-Type:
|
2480
2480
|
- application/x-turtle; charset=utf-8
|
2481
2481
|
Etag:
|
2482
|
-
- W/"
|
2482
|
+
- W/"3541fed8ea21ad6aa87fb324e84f064a"
|
2483
2483
|
Cache-Control:
|
2484
2484
|
- max-age=0, private, must-revalidate
|
2485
2485
|
X-Request-Id:
|
2486
|
-
-
|
2486
|
+
- 33979598-2901-4b05-9fed-693e048c56d2
|
2487
2487
|
X-Runtime:
|
2488
|
-
- '0.
|
2488
|
+
- '0.151318'
|
2489
2489
|
Server:
|
2490
2490
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2491
2491
|
Date:
|
2492
|
-
-
|
2492
|
+
- Fri, 19 Jun 2015 18:38:56 GMT
|
2493
2493
|
Content-Length:
|
2494
|
-
- '
|
2494
|
+
- '667'
|
2495
2495
|
Connection:
|
2496
2496
|
- Keep-Alive
|
2497
2497
|
body:
|
@@ -2504,7 +2504,7 @@ http_interactions:
|
|
2504
2504
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
2505
2505
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
2506
2506
|
|
2507
|
-
<http://your.triannon-server.com/annotations/
|
2507
|
+
<http://your.triannon-server.com/annotations/foo/74/66/13/0b/7466130b-6233-45fe-983f-06d2fc1cf70c> a oa:Annotation;
|
2508
2508
|
oa:hasBody [
|
2509
2509
|
a dcmitype:Text,
|
2510
2510
|
cnt:ContentAsText;
|
@@ -2515,10 +2515,10 @@ http_interactions:
|
|
2515
2515
|
oa:hasTarget <http://purl.stanford.edu/kq131cs7229>;
|
2516
2516
|
oa:motivatedBy oa:commenting .
|
2517
2517
|
http_version:
|
2518
|
-
recorded_at:
|
2518
|
+
recorded_at: Fri, 19 Jun 2015 18:38:56 GMT
|
2519
2519
|
- request:
|
2520
2520
|
method: delete
|
2521
|
-
uri: http://localhost:3000/annotations/
|
2521
|
+
uri: http://localhost:3000/annotations/foo/74%2F66%2F13%2F0b%2F7466130b-6233-45fe-983f-06d2fc1cf70c
|
2522
2522
|
body:
|
2523
2523
|
encoding: US-ASCII
|
2524
2524
|
string: ''
|
@@ -2541,26 +2541,26 @@ http_interactions:
|
|
2541
2541
|
X-Content-Type-Options:
|
2542
2542
|
- nosniff
|
2543
2543
|
Location:
|
2544
|
-
- http://localhost:3000/annotations
|
2544
|
+
- http://localhost:3000/annotations?anno_root=foo
|
2545
2545
|
Cache-Control:
|
2546
2546
|
- no-cache
|
2547
2547
|
X-Request-Id:
|
2548
|
-
-
|
2548
|
+
- 6eee7ab3-dc66-4328-ac31-129a20d098bd
|
2549
2549
|
X-Runtime:
|
2550
|
-
- '0.
|
2550
|
+
- '0.157934'
|
2551
2551
|
Server:
|
2552
2552
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2553
2553
|
Date:
|
2554
|
-
-
|
2554
|
+
- Fri, 19 Jun 2015 18:38:56 GMT
|
2555
2555
|
Connection:
|
2556
2556
|
- Keep-Alive
|
2557
2557
|
Set-Cookie:
|
2558
|
-
- _internal_session=
|
2558
|
+
- _internal_session=OUp5akpVUVRDNjFwMjIxTndibmZpYjB4Ymx5d1Jzc09US3Rma1lIUXV5Z0dURG5MM0NZTDFrRHNIaDFQNXhrQnhrQlovRjJ3WGlORE5qYk13ZWplMXAybUNiS2VwclJ0cHo4K1RUK0lHcjNCSmpRN1ptRGpxWDdrcVlsOE9wOGJWSmRvNmttVFcyYmVxTDlWM2oxakZCNzJKS0l2YnJIUzlGekNpYWljZmFaclBTVTZ5UmFZeHM0dUhvMkt1STJmLS1kNXFhK3pqd3QyajVqSHZpWFlEY0JBPT0%3D--f306a06e64db0f1466e4bbd257a370b23f38d4dc;
|
2559
2559
|
path=/; HttpOnly
|
2560
2560
|
- request_method=DELETE; path=/
|
2561
2561
|
body:
|
2562
2562
|
encoding: UTF-8
|
2563
2563
|
string: ''
|
2564
2564
|
http_version:
|
2565
|
-
recorded_at:
|
2565
|
+
recorded_at: Fri, 19 Jun 2015 18:38:56 GMT
|
2566
2566
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://localhost:3000/annotations/
|
5
|
+
uri: http://localhost:3000/annotations/foo/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: commit=Create%20Annotation&annotation[data]=%7B%22%40context%22%3A%22http%3A%2F%2Fiiif.io%2Fapi%2Fpresentation%2F2%2Fcontext.json%22%2C%22%40graph%22%3A%5B%7B%22%40id%22%3A%22_%3Ag70349699654640%22%2C%22%40type%22%3A%5B%22dctypes%3AText%22%2C%22cnt%3AContentAsText%22%5D%2C%22chars%22%3A%22I%20love%20this!%22%2C%22format%22%3A%22text%2Fplain%22%2C%22language%22%3A%22en%22%7D%2C%7B%22%40type%22%3A%22oa%3AAnnotation%22%2C%22motivation%22%3A%22oa%3Acommenting%22%2C%22on%22%3A%22http%3A%2F%2Fpurl.stanford.edu%2Fkq131cs7229%22%2C%22resource%22%3A%22_%3Ag70349699654640%22%7D%5D%7D
|
@@ -31,31 +31,31 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/ld+json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"63c600f16180a5268944a438c711cdf8"
|
35
35
|
Cache-Control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- 82553c0a-b51f-43f8-95b3-681eae9c005c
|
39
39
|
X-Runtime:
|
40
|
-
- '1.
|
40
|
+
- '1.910743'
|
41
41
|
Server:
|
42
42
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
43
43
|
Date:
|
44
|
-
-
|
44
|
+
- Fri, 19 Jun 2015 18:38:30 GMT
|
45
45
|
Content-Length:
|
46
|
-
- '
|
46
|
+
- '447'
|
47
47
|
Connection:
|
48
48
|
- Keep-Alive
|
49
49
|
Set-Cookie:
|
50
|
-
- _internal_session=
|
50
|
+
- _internal_session=aUpuVmluWmlKUk5pcmVYajBNdjA2Q0ZWR0lhMVUzL2JhNzdvZTZsbXNmZmlEdzBhaEpCNndVODhXaWRFMHorWjVjalN1TmhLOGRsTGlHbisrWFFrNkRvV05rRktLRDFXRm82YmRkRXZWbms4cENrV1lLZG04Q0NYM1VSMm1uUElZL295dUJjZVJHazY3elc0K0tscmZ4T2NFWGliK3NoQ1NUY2Q5QndwMGsyQklkdm9YRzM5ZXBIYjJSSWlYU285bkVSY3pwSlFoRVh1NitnOUVZRjlnb05EbjFBSDl1K3N4R0lOaTVmVXFUM2xxZUpVYmNTcHFzZEw1dFhjRkI1dy0tZ24vbFZmMDlqTFRoMEV3eTV3RVVZUT09--84fd9c736151c1f04f47dbbe2c67196ab7d81752;
|
51
51
|
path=/; HttpOnly
|
52
52
|
- request_method=POST; path=/
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
|
-
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:
|
56
|
-
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/
|
55
|
+
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g70154597346100","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
56
|
+
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/foo/cc/8f/dd/bc/cc8fddbc-c750-46d0-ace0-e92b3084d2c1","@type":"oa:Annotation","hasBody":"_:g70154597346100","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
|
57
57
|
http_version:
|
58
|
-
recorded_at:
|
58
|
+
recorded_at: Fri, 19 Jun 2015 18:38:30 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
61
61
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
message: Temporary Redirect
|
76
76
|
headers:
|
77
77
|
Date:
|
78
|
-
-
|
78
|
+
- Fri, 19 Jun 2015 18:38:31 GMT
|
79
79
|
Server:
|
80
80
|
- Apache/2
|
81
81
|
Location:
|
@@ -83,7 +83,7 @@ http_interactions:
|
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=21600
|
85
85
|
Expires:
|
86
|
-
-
|
86
|
+
- Sat, 20 Jun 2015 00:38:31 GMT
|
87
87
|
Content-Length:
|
88
88
|
- '240'
|
89
89
|
Content-Type:
|
@@ -99,7 +99,7 @@ http_interactions:
|
|
99
99
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
100
100
|
</body></html>
|
101
101
|
http_version:
|
102
|
-
recorded_at:
|
102
|
+
recorded_at: Fri, 19 Jun 2015 18:38:31 GMT
|
103
103
|
- request:
|
104
104
|
method: get
|
105
105
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -121,7 +121,7 @@ http_interactions:
|
|
121
121
|
message: OK
|
122
122
|
headers:
|
123
123
|
Date:
|
124
|
-
-
|
124
|
+
- Fri, 19 Jun 2015 18:38:31 GMT
|
125
125
|
Server:
|
126
126
|
- Apache/2
|
127
127
|
Last-Modified:
|
@@ -135,7 +135,7 @@ http_interactions:
|
|
135
135
|
Cache-Control:
|
136
136
|
- max-age=21600
|
137
137
|
Expires:
|
138
|
-
-
|
138
|
+
- Sat, 20 Jun 2015 00:38:31 GMT
|
139
139
|
P3p:
|
140
140
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
141
141
|
Access-Control-Allow-Origin:
|
@@ -1253,7 +1253,7 @@ http_interactions:
|
|
1253
1253
|
|
1254
1254
|
|
1255
1255
|
http_version:
|
1256
|
-
recorded_at:
|
1256
|
+
recorded_at: Fri, 19 Jun 2015 18:38:31 GMT
|
1257
1257
|
- request:
|
1258
1258
|
method: get
|
1259
1259
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -1273,7 +1273,7 @@ http_interactions:
|
|
1273
1273
|
message: Temporary Redirect
|
1274
1274
|
headers:
|
1275
1275
|
Date:
|
1276
|
-
-
|
1276
|
+
- Fri, 19 Jun 2015 18:38:31 GMT
|
1277
1277
|
Server:
|
1278
1278
|
- Apache/2
|
1279
1279
|
Location:
|
@@ -1281,7 +1281,7 @@ http_interactions:
|
|
1281
1281
|
Cache-Control:
|
1282
1282
|
- max-age=21600
|
1283
1283
|
Expires:
|
1284
|
-
-
|
1284
|
+
- Sat, 20 Jun 2015 00:38:31 GMT
|
1285
1285
|
Content-Length:
|
1286
1286
|
- '240'
|
1287
1287
|
Content-Type:
|
@@ -1297,7 +1297,7 @@ http_interactions:
|
|
1297
1297
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
1298
1298
|
</body></html>
|
1299
1299
|
http_version:
|
1300
|
-
recorded_at:
|
1300
|
+
recorded_at: Fri, 19 Jun 2015 18:38:31 GMT
|
1301
1301
|
- request:
|
1302
1302
|
method: get
|
1303
1303
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -1319,7 +1319,7 @@ http_interactions:
|
|
1319
1319
|
message: OK
|
1320
1320
|
headers:
|
1321
1321
|
Date:
|
1322
|
-
-
|
1322
|
+
- Fri, 19 Jun 2015 18:38:32 GMT
|
1323
1323
|
Server:
|
1324
1324
|
- Apache/2
|
1325
1325
|
Last-Modified:
|
@@ -1333,7 +1333,7 @@ http_interactions:
|
|
1333
1333
|
Cache-Control:
|
1334
1334
|
- max-age=21600
|
1335
1335
|
Expires:
|
1336
|
-
-
|
1336
|
+
- Sat, 20 Jun 2015 00:38:32 GMT
|
1337
1337
|
P3p:
|
1338
1338
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
1339
1339
|
Access-Control-Allow-Origin:
|
@@ -2451,10 +2451,10 @@ http_interactions:
|
|
2451
2451
|
|
2452
2452
|
|
2453
2453
|
http_version:
|
2454
|
-
recorded_at:
|
2454
|
+
recorded_at: Fri, 19 Jun 2015 18:38:32 GMT
|
2455
2455
|
- request:
|
2456
2456
|
method: get
|
2457
|
-
uri: http://localhost:3000/annotations/
|
2457
|
+
uri: http://localhost:3000/annotations/foo/cc%2F8f%2Fdd%2Fbc%2Fcc8fddbc-c750-46d0-ace0-e92b3084d2c1
|
2458
2458
|
body:
|
2459
2459
|
encoding: US-ASCII
|
2460
2460
|
string: ''
|
@@ -2479,19 +2479,19 @@ http_interactions:
|
|
2479
2479
|
Content-Type:
|
2480
2480
|
- text/turtle; charset=utf-8
|
2481
2481
|
Etag:
|
2482
|
-
- W/"
|
2482
|
+
- W/"60e6fd84b93c25fd40fa30d6fc402482"
|
2483
2483
|
Cache-Control:
|
2484
2484
|
- max-age=0, private, must-revalidate
|
2485
2485
|
X-Request-Id:
|
2486
|
-
-
|
2486
|
+
- 69c144d3-de97-4d64-b6c0-50144029228f
|
2487
2487
|
X-Runtime:
|
2488
|
-
- '0.
|
2488
|
+
- '0.211714'
|
2489
2489
|
Server:
|
2490
2490
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2491
2491
|
Date:
|
2492
|
-
-
|
2492
|
+
- Fri, 19 Jun 2015 18:38:32 GMT
|
2493
2493
|
Content-Length:
|
2494
|
-
- '
|
2494
|
+
- '667'
|
2495
2495
|
Connection:
|
2496
2496
|
- Keep-Alive
|
2497
2497
|
body:
|
@@ -2504,7 +2504,7 @@ http_interactions:
|
|
2504
2504
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
2505
2505
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
2506
2506
|
|
2507
|
-
<http://your.triannon-server.com/annotations/
|
2507
|
+
<http://your.triannon-server.com/annotations/foo/cc/8f/dd/bc/cc8fddbc-c750-46d0-ace0-e92b3084d2c1> a oa:Annotation;
|
2508
2508
|
oa:hasBody [
|
2509
2509
|
a dcmitype:Text,
|
2510
2510
|
cnt:ContentAsText;
|
@@ -2515,10 +2515,10 @@ http_interactions:
|
|
2515
2515
|
oa:hasTarget <http://purl.stanford.edu/kq131cs7229>;
|
2516
2516
|
oa:motivatedBy oa:commenting .
|
2517
2517
|
http_version:
|
2518
|
-
recorded_at:
|
2518
|
+
recorded_at: Fri, 19 Jun 2015 18:38:32 GMT
|
2519
2519
|
- request:
|
2520
2520
|
method: delete
|
2521
|
-
uri: http://localhost:3000/annotations/
|
2521
|
+
uri: http://localhost:3000/annotations/foo/cc%2F8f%2Fdd%2Fbc%2Fcc8fddbc-c750-46d0-ace0-e92b3084d2c1
|
2522
2522
|
body:
|
2523
2523
|
encoding: US-ASCII
|
2524
2524
|
string: ''
|
@@ -2541,26 +2541,26 @@ http_interactions:
|
|
2541
2541
|
X-Content-Type-Options:
|
2542
2542
|
- nosniff
|
2543
2543
|
Location:
|
2544
|
-
- http://localhost:3000/annotations
|
2544
|
+
- http://localhost:3000/annotations?anno_root=foo
|
2545
2545
|
Cache-Control:
|
2546
2546
|
- no-cache
|
2547
2547
|
X-Request-Id:
|
2548
|
-
-
|
2548
|
+
- d850d573-dbca-419a-889a-31ce04f375fc
|
2549
2549
|
X-Runtime:
|
2550
|
-
- '0.
|
2550
|
+
- '0.190720'
|
2551
2551
|
Server:
|
2552
2552
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2553
2553
|
Date:
|
2554
|
-
-
|
2554
|
+
- Fri, 19 Jun 2015 18:38:32 GMT
|
2555
2555
|
Connection:
|
2556
2556
|
- Keep-Alive
|
2557
2557
|
Set-Cookie:
|
2558
|
-
- _internal_session=
|
2558
|
+
- _internal_session=MXZaZ2FQa3Z0b1RiVEc1eTg4ZWR4U0xrMXlHckw0RnVHTjZlVlBHSTJ1eVVQU1RQd3pROVljRlE2OFdWV3g4bzlSSlpKTU5Vb1AvdE9hdzFtdlJIWW5UaHBGV0dMd2dkanNoNHRTOWh4VzFQTDRmd0krdUlKWFRGSzl5R0QvT3NLbkdVcXprbXRhdmtUajZKNDNHUXRuQWRyRityS0VDMjhLTnNYQ3RTckxvTHlPWndvUy9BZVN1MjBuNlVRMUtJLS1Na3BmMWkxVHU4L1g3QjJVSWFNeG5BPT0%3D--0a297d55090a55bb1c02dadd1f70feabbd993beb;
|
2559
2559
|
path=/; HttpOnly
|
2560
2560
|
- request_method=DELETE; path=/
|
2561
2561
|
body:
|
2562
2562
|
encoding: UTF-8
|
2563
2563
|
string: ''
|
2564
2564
|
http_version:
|
2565
|
-
recorded_at:
|
2565
|
+
recorded_at: Fri, 19 Jun 2015 18:38:32 GMT
|
2566
2566
|
recorded_with: VCR 2.9.3
|