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.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.env_example +1 -1
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/checks_the_annotation_ID.yml +29 -29
  38. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +29 -29
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +46 -46
  48. 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
  49. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +50 -50
  50. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_404_responses_.yml +8 -8
  51. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_410_responses_.yml +8 -8
  52. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/logs_exceptions.yml +8 -8
  53. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_FALSE_for_a_500_response_to_a_DELETE_request.yml +12 -11
  54. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml +12 -11
  55. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml +12 -11
  56. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml +12 -11
  57. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml +12 -11
  58. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml +12 -11
  59. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_does_NOT_exist.yml +18 -18
  60. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_exists.yml +38 -38
  61. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml +8 -8
  62. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml +24 -24
  63. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +24 -24
  64. data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +54 -54
  65. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +29 -29
  66. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml +1377 -1623
  67. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml +1377 -1623
  68. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +29 -29
  69. 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
  70. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +29 -29
  71. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_RDF_URI_that_is_a_valid_URI.yml +38 -38
  72. 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
  73. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +41 -41
  74. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +29 -29
  75. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +29 -29
  76. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +29 -29
  77. data/triannon-client.gemspec +1 -1
  78. metadata +2 -2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:3000/annotations/
5
+ uri: http://localhost:3000/annotations/foo/
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -25,31 +25,31 @@ http_interactions:
25
25
  X-Content-Type-Options:
26
26
  - nosniff
27
27
  Location:
28
- - http://localhost:3000/search
28
+ - http://localhost:3000/foo/search
29
29
  Content-Type:
30
30
  - text/html; charset=utf-8
31
31
  Cache-Control:
32
32
  - no-cache
33
33
  X-Request-Id:
34
- - 364b2de7-7cd3-4ae5-a7f9-708969e350ff
34
+ - 1e1256d4-32bf-457d-8c1e-f7b5244dcacc
35
35
  X-Runtime:
36
- - '0.003035'
36
+ - '0.003007'
37
37
  Server:
38
38
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
39
39
  Date:
40
- - Mon, 18 May 2015 20:06:14 GMT
40
+ - Fri, 19 Jun 2015 18:37:46 GMT
41
41
  Content-Length:
42
- - '94'
42
+ - '98'
43
43
  Connection:
44
44
  - Keep-Alive
45
45
  body:
46
46
  encoding: UTF-8
47
- string: <html><body>You are being <a href="http://localhost:3000/search">redirected</a>.</body></html>
47
+ string: <html><body>You are being <a href="http://localhost:3000/foo/search">redirected</a>.</body></html>
48
48
  http_version:
49
- recorded_at: Mon, 18 May 2015 20:06:14 GMT
49
+ recorded_at: Fri, 19 Jun 2015 18:37:46 GMT
50
50
  - request:
51
51
  method: get
52
- uri: http://localhost:3000/search
52
+ uri: http://localhost:3000/foo/search
53
53
  body:
54
54
  encoding: US-ASCII
55
55
  string: ''
@@ -76,26 +76,26 @@ http_interactions:
76
76
  Content-Type:
77
77
  - application/ld+json; charset=utf-8
78
78
  Etag:
79
- - W/"142b5b57e954e5889d787015364100f1"
79
+ - W/"2cd0a171b9c9cffab65bf4dc9dc7a67f"
80
80
  Cache-Control:
81
81
  - max-age=0, private, must-revalidate
82
82
  X-Request-Id:
83
- - 25b92e22-ece9-4d73-a56a-12734a773716
83
+ - 91e81cae-08b9-4ec4-9e71-7ff96b34f2a6
84
84
  X-Runtime:
85
- - '0.012135'
85
+ - '0.013654'
86
86
  Server:
87
87
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
88
88
  Date:
89
- - Mon, 18 May 2015 20:06:14 GMT
89
+ - Fri, 19 Jun 2015 18:37:46 GMT
90
90
  Content-Length:
91
- - '181'
91
+ - '185'
92
92
  Connection:
93
93
  - Keep-Alive
94
94
  body:
95
95
  encoding: UTF-8
96
- string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":0},"resources":[],"@id":"http://localhost:3000/search"}'
96
+ string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":0},"resources":[],"@id":"http://localhost:3000/foo/search"}'
97
97
  http_version:
98
- recorded_at: Mon, 18 May 2015 20:06:14 GMT
98
+ recorded_at: Fri, 19 Jun 2015 18:37:46 GMT
99
99
  - request:
100
100
  method: get
101
101
  uri: http://iiif.io/api/presentation/2/context.json
@@ -115,11 +115,11 @@ http_interactions:
115
115
  message: OK
116
116
  headers:
117
117
  Date:
118
- - Mon, 18 May 2015 20:09:02 GMT
118
+ - Fri, 19 Jun 2015 18:41:21 GMT
119
119
  Server:
120
120
  - Apache/2.2.15 (Red Hat)
121
121
  Last-Modified:
122
- - Wed, 13 May 2015 19:46:47 GMT
122
+ - Thu, 18 Jun 2015 18:49:34 GMT
123
123
  Accept-Ranges:
124
124
  - bytes
125
125
  Content-Length:
@@ -127,7 +127,7 @@ http_interactions:
127
127
  Cache-Control:
128
128
  - max-age=86400
129
129
  Expires:
130
- - Tue, 19 May 2015 20:09:02 GMT
130
+ - Sat, 20 Jun 2015 18:41:21 GMT
131
131
  Content-Type:
132
132
  - application/ld+json
133
133
  Access-Control-Allow-Origin:
@@ -193,7 +193,7 @@ http_interactions:
193
193
  \ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
194
194
  \"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
195
195
  http_version:
196
- recorded_at: Mon, 18 May 2015 20:06:14 GMT
196
+ recorded_at: Fri, 19 Jun 2015 18:37:46 GMT
197
197
  - request:
198
198
  method: get
199
199
  uri: http://iiif.io/api/presentation/2/context.json
@@ -213,11 +213,11 @@ http_interactions:
213
213
  message: OK
214
214
  headers:
215
215
  Date:
216
- - Mon, 18 May 2015 20:09:02 GMT
216
+ - Fri, 19 Jun 2015 18:41:21 GMT
217
217
  Server:
218
218
  - Apache/2.2.15 (Red Hat)
219
219
  Last-Modified:
220
- - Wed, 13 May 2015 19:46:47 GMT
220
+ - Thu, 18 Jun 2015 18:49:34 GMT
221
221
  Accept-Ranges:
222
222
  - bytes
223
223
  Content-Length:
@@ -225,7 +225,7 @@ http_interactions:
225
225
  Cache-Control:
226
226
  - max-age=86400
227
227
  Expires:
228
- - Tue, 19 May 2015 20:09:02 GMT
228
+ - Sat, 20 Jun 2015 18:41:21 GMT
229
229
  Content-Type:
230
230
  - application/ld+json
231
231
  Access-Control-Allow-Origin:
@@ -291,5 +291,5 @@ http_interactions:
291
291
  \ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
292
292
  \"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
293
293
  http_version:
294
- recorded_at: Mon, 18 May 2015 20:06:14 GMT
294
+ recorded_at: Fri, 19 Jun 2015 18:37:47 GMT
295
295
  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/"8cfba80ee206028f3f2c46777fab7c18"
34
+ - W/"bb115ddc0532b626f9325ca947aed353"
35
35
  Cache-Control:
36
36
  - max-age=0, private, must-revalidate
37
37
  X-Request-Id:
38
- - 2d69bbd6-bea1-4dd6-9ca8-f3d86eaf78e1
38
+ - 3d452953-6a48-41a4-ac7e-a1e458b2260c
39
39
  X-Runtime:
40
- - '1.807308'
40
+ - '1.749144'
41
41
  Server:
42
42
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
43
43
  Date:
44
- - Mon, 18 May 2015 20:06:16 GMT
44
+ - Fri, 19 Jun 2015 18:37:48 GMT
45
45
  Content-Length:
46
- - '443'
46
+ - '447'
47
47
  Connection:
48
48
  - Keep-Alive
49
49
  Set-Cookie:
50
- - _internal_session=RVptSERVNXM5YnByRTFYS2FXT3RHVG9oYUlxeHZJZW1jcTRkbWQvai9FSU5SYWxUQ0RKTFZkRm8zei9YREtxT21UYmd2VHRRVURJblFLL3dlYytIWEFEdGg3V2FxcURwSktMUVgvOTdCN0tWKzBOWkFYMkk5SjVOS0xpVVIyUENHTVQ2MUlBTmlxeEZJKzRlZk1HeW5uczFBTEt0Uk1uUXFqV2lzSmpyOUJJdytkWTZMbG0wcWRJN1BFb0pReEhoNWE0Y0lmRkZlR3lzS012NU5XYUdtWXhWNnRvZEY1aEZsTW9DUmlkWDlKQng5YzZRTllOc2dUdlZBMmJWSGxNai0tc251YTJrWm1PVW5jNk9xcFpJdVJVUT09--63b2db4c082fc0f6d05715763db01e5fc3c91b2e;
50
+ - _internal_session=ODlDWFZqTFhNNldQQ3VqYlRDOGlWZmlWR0FsU2dpLzIvSm8waWF0aTdJYmtiRXp5aC9zNUx2SklFSURwMk5BVlYwUkVZSDQ2QU1JaWM5UmRWSzgrajZML0EzMDFIY05zSnVmZVNIUkNvQlVEWE44WDRjVXJSNHMrVnJkUVZqNEFIbUM5T0NMOHBQbDZlRllvV2ZGdnEvalF6eC9hVzRhWkRpNWRxcWRDZGpoa3h6Qjl3TXhiNHEwWVpJNnN6dkxZNThscFhabFhVMDMraUJDWC9OTE80ZjM3NWtHNkttOTFjVmlhQkVXemdkSTlRSGtxNUhqazA2OVpIYklNelVjeC0tcWpDUFVkUW5VMFhoYTRLbStUSm9iUT09--87eb31db70651a29f95f71275baca5ec83051f91;
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":"_:g70310874467640","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
56
- love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/34/10/9b/76/34109b76-7ff4-48db-a5d4-4703e8c0042e","@type":"oa:Annotation","hasBody":"_:g70310874467640","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
55
+ string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g70154573362840","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
56
+ love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/foo/8f/87/ac/fc/8f87acfc-b5b2-484d-809e-6d8f96cb5002","@type":"oa:Annotation","hasBody":"_:g70154573362840","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
57
57
  http_version:
58
- recorded_at: Mon, 18 May 2015 20:06:16 GMT
58
+ recorded_at: Fri, 19 Jun 2015 18:37:48 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
- - Mon, 18 May 2015 20:06:16 GMT
78
+ - Fri, 19 Jun 2015 18:37:49 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
- - Tue, 19 May 2015 02:06:16 GMT
86
+ - Sat, 20 Jun 2015 00:37:49 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: Mon, 18 May 2015 20:06:16 GMT
102
+ recorded_at: Fri, 19 Jun 2015 18:37:49 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
- - Mon, 18 May 2015 20:06:16 GMT
124
+ - Fri, 19 Jun 2015 18:37:49 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
- - Tue, 19 May 2015 02:06:16 GMT
138
+ - Sat, 20 Jun 2015 00:37:49 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: Mon, 18 May 2015 20:06:16 GMT
1256
+ recorded_at: Fri, 19 Jun 2015 18:37:49 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
- - Mon, 18 May 2015 20:06:16 GMT
1276
+ - Fri, 19 Jun 2015 18:37:49 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
- - Tue, 19 May 2015 02:06:16 GMT
1284
+ - Sat, 20 Jun 2015 00:37:49 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: Mon, 18 May 2015 20:06:16 GMT
1300
+ recorded_at: Fri, 19 Jun 2015 18:37:49 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
- - Mon, 18 May 2015 20:06:17 GMT
1322
+ - Fri, 19 Jun 2015 18:37:50 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
- - Tue, 19 May 2015 02:06:17 GMT
1336
+ - Sat, 20 Jun 2015 00:37:50 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: Mon, 18 May 2015 20:06:17 GMT
2454
+ recorded_at: Fri, 19 Jun 2015 18:37:50 GMT
2455
2455
  - request:
2456
2456
  method: get
2457
- uri: http://localhost:3000/annotations/
2457
+ uri: http://localhost:3000/annotations/foo/
2458
2458
  body:
2459
2459
  encoding: US-ASCII
2460
2460
  string: ''
@@ -2477,31 +2477,31 @@ http_interactions:
2477
2477
  X-Content-Type-Options:
2478
2478
  - nosniff
2479
2479
  Location:
2480
- - http://localhost:3000/search
2480
+ - http://localhost:3000/foo/search
2481
2481
  Content-Type:
2482
2482
  - text/html; charset=utf-8
2483
2483
  Cache-Control:
2484
2484
  - no-cache
2485
2485
  X-Request-Id:
2486
- - 161c7fa6-b3d2-4ffa-afa0-704bbb5aef6a
2486
+ - 252f3061-2ea4-4c72-8eb8-f99766742c93
2487
2487
  X-Runtime:
2488
- - '0.002922'
2488
+ - '0.003551'
2489
2489
  Server:
2490
2490
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
2491
2491
  Date:
2492
- - Mon, 18 May 2015 20:06:17 GMT
2492
+ - Fri, 19 Jun 2015 18:37:50 GMT
2493
2493
  Content-Length:
2494
- - '94'
2494
+ - '98'
2495
2495
  Connection:
2496
2496
  - Keep-Alive
2497
2497
  body:
2498
2498
  encoding: UTF-8
2499
- string: <html><body>You are being <a href="http://localhost:3000/search">redirected</a>.</body></html>
2499
+ string: <html><body>You are being <a href="http://localhost:3000/foo/search">redirected</a>.</body></html>
2500
2500
  http_version:
2501
- recorded_at: Mon, 18 May 2015 20:06:17 GMT
2501
+ recorded_at: Fri, 19 Jun 2015 18:37:50 GMT
2502
2502
  - request:
2503
2503
  method: get
2504
- uri: http://localhost:3000/search
2504
+ uri: http://localhost:3000/foo/search
2505
2505
  body:
2506
2506
  encoding: US-ASCII
2507
2507
  string: ''
@@ -2528,27 +2528,27 @@ http_interactions:
2528
2528
  Content-Type:
2529
2529
  - application/ld+json; charset=utf-8
2530
2530
  Etag:
2531
- - W/"b8c43a97907457eb0d3b6831c55a31b7"
2531
+ - W/"1f32b6ee49f9958e6576869ec23ec0ad"
2532
2532
  Cache-Control:
2533
2533
  - max-age=0, private, must-revalidate
2534
2534
  X-Request-Id:
2535
- - 4137f1f1-aab0-4bd8-86b1-e35a68f2ec50
2535
+ - 786de66e-aee8-4651-b518-d5e632ee041e
2536
2536
  X-Runtime:
2537
- - '1.569506'
2537
+ - '1.425269'
2538
2538
  Server:
2539
2539
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
2540
2540
  Date:
2541
- - Mon, 18 May 2015 20:06:18 GMT
2541
+ - Fri, 19 Jun 2015 18:37:51 GMT
2542
2542
  Content-Length:
2543
- - '512'
2543
+ - '520'
2544
2544
  Connection:
2545
2545
  - Keep-Alive
2546
2546
  body:
2547
2547
  encoding: UTF-8
2548
- string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":1},"resources":[{"@id":"http://your.triannon-server.com/annotations/34/10/9b/76/34109b76-7ff4-48db-a5d4-4703e8c0042e","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
2549
- love this!","format":"text/plain","language":"en"}}],"@id":"http://localhost:3000/search"}'
2548
+ string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":1},"resources":[{"@id":"http://your.triannon-server.com/annotations/foo/8f/87/ac/fc/8f87acfc-b5b2-484d-809e-6d8f96cb5002","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
2549
+ love this!","format":"text/plain","language":"en"}}],"@id":"http://localhost:3000/foo/search"}'
2550
2550
  http_version:
2551
- recorded_at: Mon, 18 May 2015 20:06:18 GMT
2551
+ recorded_at: Fri, 19 Jun 2015 18:37:51 GMT
2552
2552
  - request:
2553
2553
  method: get
2554
2554
  uri: http://iiif.io/api/presentation/2/context.json
@@ -2568,11 +2568,11 @@ http_interactions:
2568
2568
  message: OK
2569
2569
  headers:
2570
2570
  Date:
2571
- - Mon, 18 May 2015 20:09:07 GMT
2571
+ - Fri, 19 Jun 2015 18:41:26 GMT
2572
2572
  Server:
2573
2573
  - Apache/2.2.15 (Red Hat)
2574
2574
  Last-Modified:
2575
- - Wed, 13 May 2015 19:46:47 GMT
2575
+ - Thu, 18 Jun 2015 18:49:34 GMT
2576
2576
  Accept-Ranges:
2577
2577
  - bytes
2578
2578
  Content-Length:
@@ -2580,7 +2580,7 @@ http_interactions:
2580
2580
  Cache-Control:
2581
2581
  - max-age=86400
2582
2582
  Expires:
2583
- - Tue, 19 May 2015 20:09:07 GMT
2583
+ - Sat, 20 Jun 2015 18:41:26 GMT
2584
2584
  Content-Type:
2585
2585
  - application/ld+json
2586
2586
  Access-Control-Allow-Origin:
@@ -2646,7 +2646,7 @@ http_interactions:
2646
2646
  \ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
2647
2647
  \"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
2648
2648
  http_version:
2649
- recorded_at: Mon, 18 May 2015 20:06:18 GMT
2649
+ recorded_at: Fri, 19 Jun 2015 18:37:52 GMT
2650
2650
  - request:
2651
2651
  method: get
2652
2652
  uri: http://iiif.io/api/presentation/2/context.json
@@ -2666,11 +2666,11 @@ http_interactions:
2666
2666
  message: OK
2667
2667
  headers:
2668
2668
  Date:
2669
- - Mon, 18 May 2015 20:09:07 GMT
2669
+ - Fri, 19 Jun 2015 18:41:26 GMT
2670
2670
  Server:
2671
2671
  - Apache/2.2.15 (Red Hat)
2672
2672
  Last-Modified:
2673
- - Wed, 13 May 2015 19:46:47 GMT
2673
+ - Thu, 18 Jun 2015 18:49:34 GMT
2674
2674
  Accept-Ranges:
2675
2675
  - bytes
2676
2676
  Content-Length:
@@ -2678,7 +2678,7 @@ http_interactions:
2678
2678
  Cache-Control:
2679
2679
  - max-age=86400
2680
2680
  Expires:
2681
- - Tue, 19 May 2015 20:09:07 GMT
2681
+ - Sat, 20 Jun 2015 18:41:26 GMT
2682
2682
  Content-Type:
2683
2683
  - application/ld+json
2684
2684
  Access-Control-Allow-Origin:
@@ -2744,10 +2744,10 @@ http_interactions:
2744
2744
  \ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
2745
2745
  \"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
2746
2746
  http_version:
2747
- recorded_at: Mon, 18 May 2015 20:06:18 GMT
2747
+ recorded_at: Fri, 19 Jun 2015 18:37:52 GMT
2748
2748
  - request:
2749
2749
  method: delete
2750
- uri: http://localhost:3000/annotations/34%2F10%2F9b%2F76%2F34109b76-7ff4-48db-a5d4-4703e8c0042e
2750
+ uri: http://localhost:3000/annotations/foo/8f%2F87%2Fac%2Ffc%2F8f87acfc-b5b2-484d-809e-6d8f96cb5002
2751
2751
  body:
2752
2752
  encoding: US-ASCII
2753
2753
  string: ''
@@ -2770,26 +2770,26 @@ http_interactions:
2770
2770
  X-Content-Type-Options:
2771
2771
  - nosniff
2772
2772
  Location:
2773
- - http://localhost:3000/annotations
2773
+ - http://localhost:3000/annotations?anno_root=foo
2774
2774
  Cache-Control:
2775
2775
  - no-cache
2776
2776
  X-Request-Id:
2777
- - ca6d05d7-5dfa-4fdf-a423-e7bb881f0901
2777
+ - 087310d8-7230-4be9-9b41-93b653143a75
2778
2778
  X-Runtime:
2779
- - '0.248550'
2779
+ - '0.251255'
2780
2780
  Server:
2781
2781
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
2782
2782
  Date:
2783
- - Mon, 18 May 2015 20:06:19 GMT
2783
+ - Fri, 19 Jun 2015 18:37:52 GMT
2784
2784
  Connection:
2785
2785
  - Keep-Alive
2786
2786
  Set-Cookie:
2787
- - _internal_session=Qzc4UnVTT0hEMzdMc0FqenJQQWppQkpObWYrSFZBaUFHV1dWc2dJZmVWVDREQmNOeVVzZXVzQ1lsVHBiL1prZHRiRmw1Qzd2SXYybHJvU0wyaG45NUlmdTFBMVNUeStvRjRNOVFSdTNvYTVYZmV1elBpRFhjQmhJOE4ycE5kVWF4R0x3SUNBMmtaZU43aUZZWWdkMy9FbnU4WDNia3hjUWRZSlFwbDkxa0VoYjN6dXlNbXpPUHpNZWFJeGV0bVpILS1aam1YTVhmQzlJby9TQmNROFN5ejhnPT0%3D--a283c20f14cb8d853bd226fa3015907ecd9b3aef;
2787
+ - _internal_session=dXlHUy80dm05U25rWlVFbGlmcVZqTnpmWlEwcFhtUTNyOGVNblNmeis5VWIwUXhsVGEwNjlnS09oWGdVSmR1Rk8vV094SVVtMlRjS0ZxL1JVazUydlBpVVArTGlwWktQdG9iRDIxcXVISVFwY0xSbFRvd0VZaXBQdkt4QkpIK0lOcnYxYlFDWVdjNWI0REJIelhOZlFDRzl4dkRpRklJQ3ZkSnN0TTd5WkhDSFpPUzNQclJhOEZERW1rTk5ROElOLS0yRC94eVY5RS9Sd3MwR09uYllIdXVRPT0%3D--0693ca74c7907330f3b95b30cc5dd8930c1874ca;
2788
2788
  path=/; HttpOnly
2789
2789
  - request_method=DELETE; path=/
2790
2790
  body:
2791
2791
  encoding: UTF-8
2792
2792
  string: ''
2793
2793
  http_version:
2794
- recorded_at: Mon, 18 May 2015 20:06:19 GMT
2794
+ recorded_at: Fri, 19 Jun 2015 18:37:52 GMT
2795
2795
  recorded_with: VCR 2.9.3