triannon-client 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env_example +16 -2
- data/.rspec +1 -0
- data/README.md +49 -18
- data/Rakefile +15 -2
- data/lib/triannon-client.rb +12 -6
- data/lib/triannon-client/configuration.rb +26 -14
- data/lib/triannon-client/triannon_client.rb +139 -44
- 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 → CRUD/create_annotation.yml} +192 -132
- data/spec/fixtures/vcr_cassettes/TriannonClientAUTH/with_authentication/behaves_like_authenticate/-_authenticate_returns_true.yml +343 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/POST_401_response_retries_and_logs_RestClient_Exception_message.yml +170 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/POST_403_response_does_not_retry_and_logs_RestClient_Exception_message.yml +170 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/POST_500_response_does_not_retry_and_logs_RestClient_Exception_message.yml +170 -0
- data/spec/fixtures/vcr_cassettes/{TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml → TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml} +203 -319
- data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/logs_RuntimeError_message.yml +170 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/returns_a_RestClient_Response_object.yml +170 -0
- data/spec/fixtures/vcr_cassettes/{TriannonClient/_post_annotation → TriannonClientCREATE/_post_annotation/without_authentication/behaves_like_create_annotations}/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +29 -27
- data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/clear_annotations.yml +590 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/with_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_does_NOT_exist.yml +349 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/with_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_exists.yml +332 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/with_authentication/behaves_like_delete_annotations/validates_the_annotation_ID.yml +288 -0
- data/spec/fixtures/vcr_cassettes/{TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_does_NOT_exist.yml → TriannonClientDELETE/_delete_annotation/without_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_does_NOT_exist.yml} +13 -9
- data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/without_authentication/behaves_like_delete_annotations/returns_TRUE_when_deleting_an_annotation_that_exists.yml +127 -0
- data/spec/fixtures/vcr_cassettes/{TriannonClient/_delete_annotation → TriannonClientDELETE/_delete_annotation/without_authentication/behaves_like_delete_annotations}/validates_the_annotation_ID.yml +7 -5
- data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/clear_annotations.yml +594 -0
- data/spec/fixtures/vcr_cassettes/{TriannonClient → TriannonClientREAD/GET}/_get_annotations/returns_an_RDF_Graph.yml +30 -23
- data/spec/fixtures/vcr_cassettes/{TriannonClient → TriannonClientREAD/GET}/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +30 -23
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +302 -0
- 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 → TriannonClientREAD/GET/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml} +25 -78
- 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 → TriannonClientREAD/GET/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml} +25 -78
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/_response2graph/accepts_a_RestClient_Response_instance.yml +2399 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/csvm_json_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trig_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/trix_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/csv_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/n3_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/plain_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/tab-separated-values_.yml +1231 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +1231 -0
- 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 → TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_application}/ld_json_.yml +25 -78
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +68 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +69 -0
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_custom_content_type/gets_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +69 -0
- data/spec/fixtures/vcr_cassettes/{TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type → TriannonClientREAD/GET/annotation_by_ID/using_default_content_type}/checks_the_annotation_ID.yml +25 -78
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/annotation_by_ID/using_default_content_type/returns_an_EMPTY_RDF_graph_with_a_valid_ID_for_NO_annotation_on_the_server.yml +186 -0
- 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 → TriannonClientREAD/GET/annotation_by_ID/using_default_content_type/returns_an_RDF_graph_with_a_valid_ID_for_an_annotation_on_the_server.yml} +25 -78
- data/spec/fixtures/vcr_cassettes/TriannonClientREAD/clear_annotations.yml +648 -0
- 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 → TriannonClientREAD/create_annotation.yml} +192 -131
- data/spec/lib/triannon-client/configuration_spec.rb +83 -27
- data/spec/lib/triannon-client/triannon_client_auth_spec.rb +61 -0
- data/spec/lib/triannon-client/triannon_client_class_spec.rb +104 -0
- data/spec/lib/triannon-client/triannon_client_create_spec.rb +119 -0
- data/spec/lib/triannon-client/triannon_client_delete_spec.rb +117 -0
- data/spec/lib/triannon-client/triannon_client_read_spec.rb +342 -0
- data/spec/spec_helper.rb +140 -4
- data/triannon-client.gemspec +1 -1
- metadata +112 -153
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -3995
- 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 +0 -4946
- 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 +0 -2566
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_a_nil_ID.yml +0 -2502
- 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 +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_integer_ID.yml +0 -2502
- 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 +0 -2502
- 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 +0 -2502
- 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 +0 -2561
- 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 +0 -4946
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/requests_an_open_annotation_by_ID_using_a_IIIF_profile.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +0 -2746
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +0 -4946
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_404_responses_.yml +0 -64
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_410_responses_.yml +0 -64
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/logs_exceptions.yml +0 -64
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_FALSE_for_a_500_response_to_a_DELETE_request.yml +0 -64
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml +0 -64
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml +0 -64
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml +0 -64
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml +0 -64
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml +0 -64
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_exists.yml +0 -2549
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml +0 -5355
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml +0 -5355
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_RDF_URI_that_is_a_valid_URI.yml +0 -2551
- 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 +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +0 -4898
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +0 -2502
- data/spec/lib/triannon-client/triannon_client_spec.rb +0 -546
@@ -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/bar/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- application/ld+json
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/ld+json
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -25,31 +27,31 @@ http_interactions:
|
|
25
27
|
X-Content-Type-Options:
|
26
28
|
- nosniff
|
27
29
|
Location:
|
28
|
-
- http://localhost:3000/
|
30
|
+
- http://localhost:3000/bar/search
|
29
31
|
Content-Type:
|
30
32
|
- text/html; charset=utf-8
|
31
33
|
Cache-Control:
|
32
34
|
- no-cache
|
33
35
|
X-Request-Id:
|
34
|
-
-
|
36
|
+
- 39452433-78a6-4d3f-8d7a-cc00bb8490fd
|
35
37
|
X-Runtime:
|
36
|
-
- '0.
|
38
|
+
- '0.003195'
|
37
39
|
Server:
|
38
40
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
39
41
|
Date:
|
40
|
-
-
|
42
|
+
- Mon, 03 Aug 2015 22:12:10 GMT
|
41
43
|
Content-Length:
|
42
44
|
- '98'
|
43
45
|
Connection:
|
44
46
|
- Keep-Alive
|
45
47
|
body:
|
46
48
|
encoding: UTF-8
|
47
|
-
string: <html><body>You are being <a href="http://localhost:3000/
|
49
|
+
string: <html><body>You are being <a href="http://localhost:3000/bar/search">redirected</a>.</body></html>
|
48
50
|
http_version:
|
49
|
-
recorded_at:
|
51
|
+
recorded_at: Mon, 03 Aug 2015 22:12:10 GMT
|
50
52
|
- request:
|
51
53
|
method: get
|
52
|
-
uri: http://localhost:3000/
|
54
|
+
uri: http://localhost:3000/bar/search
|
53
55
|
body:
|
54
56
|
encoding: US-ASCII
|
55
57
|
string: ''
|
@@ -58,6 +60,8 @@ http_interactions:
|
|
58
60
|
- application/ld+json
|
59
61
|
Accept-Encoding:
|
60
62
|
- gzip, deflate
|
63
|
+
Content-Type:
|
64
|
+
- application/ld+json
|
61
65
|
Cookie:
|
62
66
|
- ''
|
63
67
|
User-Agent:
|
@@ -76,26 +80,29 @@ http_interactions:
|
|
76
80
|
Content-Type:
|
77
81
|
- application/ld+json; charset=utf-8
|
78
82
|
Etag:
|
79
|
-
- W/"
|
83
|
+
- W/"c9a494501dfac047a339e5a5cd6d7241"
|
80
84
|
Cache-Control:
|
81
85
|
- max-age=0, private, must-revalidate
|
82
86
|
X-Request-Id:
|
83
|
-
-
|
87
|
+
- 26313bc4-a231-4149-8c75-e56f8d0ecc62
|
84
88
|
X-Runtime:
|
85
|
-
- '
|
89
|
+
- '3.432036'
|
86
90
|
Server:
|
87
91
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
88
92
|
Date:
|
89
|
-
-
|
93
|
+
- Mon, 03 Aug 2015 22:12:14 GMT
|
90
94
|
Content-Length:
|
91
|
-
- '
|
95
|
+
- '1192'
|
92
96
|
Connection:
|
93
97
|
- Keep-Alive
|
94
98
|
body:
|
95
99
|
encoding: UTF-8
|
96
|
-
string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":
|
100
|
+
string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":3},"resources":[{"@id":"http://your.triannon-server.com/annotations/bar/44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
101
|
+
love this!","format":"text/plain","language":"en"}},{"@id":"http://your.triannon-server.com/annotations/bar/66/75/cc/61/6675cc61-4a6d-4959-ba09-8d64f5c5d03e","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
102
|
+
love this!","format":"text/plain","language":"en"}},{"@id":"http://your.triannon-server.com/annotations/bar/11/4f/9b/26/114f9b26-4b59-4e9b-a3a8-41b03318bc5f","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
103
|
+
love this!","format":"text/plain","language":"en"}}],"@id":"http://localhost:3000/bar/search"}'
|
97
104
|
http_version:
|
98
|
-
recorded_at:
|
105
|
+
recorded_at: Mon, 03 Aug 2015 22:12:14 GMT
|
99
106
|
- request:
|
100
107
|
method: get
|
101
108
|
uri: http://iiif.io/api/presentation/2/context.json
|
@@ -115,11 +122,11 @@ http_interactions:
|
|
115
122
|
message: OK
|
116
123
|
headers:
|
117
124
|
Date:
|
118
|
-
-
|
125
|
+
- Mon, 03 Aug 2015 22:16:54 GMT
|
119
126
|
Server:
|
120
127
|
- Apache/2.2.15 (Red Hat)
|
121
128
|
Last-Modified:
|
122
|
-
-
|
129
|
+
- Tue, 28 Jul 2015 23:04:16 GMT
|
123
130
|
Accept-Ranges:
|
124
131
|
- bytes
|
125
132
|
Content-Length:
|
@@ -127,7 +134,7 @@ http_interactions:
|
|
127
134
|
Cache-Control:
|
128
135
|
- max-age=86400
|
129
136
|
Expires:
|
130
|
-
-
|
137
|
+
- Tue, 04 Aug 2015 22:16:54 GMT
|
131
138
|
Content-Type:
|
132
139
|
- application/ld+json
|
133
140
|
Access-Control-Allow-Origin:
|
@@ -193,7 +200,7 @@ http_interactions:
|
|
193
200
|
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
194
201
|
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
195
202
|
http_version:
|
196
|
-
recorded_at:
|
203
|
+
recorded_at: Mon, 03 Aug 2015 22:12:14 GMT
|
197
204
|
- request:
|
198
205
|
method: get
|
199
206
|
uri: http://iiif.io/api/presentation/2/context.json
|
@@ -213,11 +220,11 @@ http_interactions:
|
|
213
220
|
message: OK
|
214
221
|
headers:
|
215
222
|
Date:
|
216
|
-
-
|
223
|
+
- Mon, 03 Aug 2015 22:16:54 GMT
|
217
224
|
Server:
|
218
225
|
- Apache/2.2.15 (Red Hat)
|
219
226
|
Last-Modified:
|
220
|
-
-
|
227
|
+
- Tue, 28 Jul 2015 23:04:16 GMT
|
221
228
|
Accept-Ranges:
|
222
229
|
- bytes
|
223
230
|
Content-Length:
|
@@ -225,7 +232,7 @@ http_interactions:
|
|
225
232
|
Cache-Control:
|
226
233
|
- max-age=86400
|
227
234
|
Expires:
|
228
|
-
-
|
235
|
+
- Tue, 04 Aug 2015 22:16:54 GMT
|
229
236
|
Content-Type:
|
230
237
|
- application/ld+json
|
231
238
|
Access-Control-Allow-Origin:
|
@@ -291,5 +298,5 @@ http_interactions:
|
|
291
298
|
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
292
299
|
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
293
300
|
http_version:
|
294
|
-
recorded_at:
|
301
|
+
recorded_at: Mon, 03 Aug 2015 22:12:14 GMT
|
295
302
|
recorded_with: VCR 2.9.3
|
@@ -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/bar/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -11,6 +11,8 @@ http_interactions:
|
|
11
11
|
- application/ld+json
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/ld+json
|
14
16
|
User-Agent:
|
15
17
|
- Ruby
|
16
18
|
response:
|
@@ -25,31 +27,31 @@ http_interactions:
|
|
25
27
|
X-Content-Type-Options:
|
26
28
|
- nosniff
|
27
29
|
Location:
|
28
|
-
- http://localhost:3000/
|
30
|
+
- http://localhost:3000/bar/search
|
29
31
|
Content-Type:
|
30
32
|
- text/html; charset=utf-8
|
31
33
|
Cache-Control:
|
32
34
|
- no-cache
|
33
35
|
X-Request-Id:
|
34
|
-
-
|
36
|
+
- 9f4332cd-67d3-4296-9bd6-e8de4273acca
|
35
37
|
X-Runtime:
|
36
|
-
- '0.
|
38
|
+
- '0.003076'
|
37
39
|
Server:
|
38
40
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
39
41
|
Date:
|
40
|
-
-
|
42
|
+
- Mon, 03 Aug 2015 22:12:14 GMT
|
41
43
|
Content-Length:
|
42
44
|
- '98'
|
43
45
|
Connection:
|
44
46
|
- Keep-Alive
|
45
47
|
body:
|
46
48
|
encoding: UTF-8
|
47
|
-
string: <html><body>You are being <a href="http://localhost:3000/
|
49
|
+
string: <html><body>You are being <a href="http://localhost:3000/bar/search">redirected</a>.</body></html>
|
48
50
|
http_version:
|
49
|
-
recorded_at:
|
51
|
+
recorded_at: Mon, 03 Aug 2015 22:12:14 GMT
|
50
52
|
- request:
|
51
53
|
method: get
|
52
|
-
uri: http://localhost:3000/
|
54
|
+
uri: http://localhost:3000/bar/search
|
53
55
|
body:
|
54
56
|
encoding: US-ASCII
|
55
57
|
string: ''
|
@@ -58,6 +60,8 @@ http_interactions:
|
|
58
60
|
- application/ld+json
|
59
61
|
Accept-Encoding:
|
60
62
|
- gzip, deflate
|
63
|
+
Content-Type:
|
64
|
+
- application/ld+json
|
61
65
|
Cookie:
|
62
66
|
- ''
|
63
67
|
User-Agent:
|
@@ -76,26 +80,29 @@ http_interactions:
|
|
76
80
|
Content-Type:
|
77
81
|
- application/ld+json; charset=utf-8
|
78
82
|
Etag:
|
79
|
-
- W/"
|
83
|
+
- W/"c9a494501dfac047a339e5a5cd6d7241"
|
80
84
|
Cache-Control:
|
81
85
|
- max-age=0, private, must-revalidate
|
82
86
|
X-Request-Id:
|
83
|
-
-
|
87
|
+
- af51f683-5a0c-431c-90d0-c29b4c0a62cc
|
84
88
|
X-Runtime:
|
85
|
-
- '
|
89
|
+
- '3.531760'
|
86
90
|
Server:
|
87
91
|
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
88
92
|
Date:
|
89
|
-
-
|
93
|
+
- Mon, 03 Aug 2015 22:12:17 GMT
|
90
94
|
Content-Length:
|
91
|
-
- '
|
95
|
+
- '1192'
|
92
96
|
Connection:
|
93
97
|
- Keep-Alive
|
94
98
|
body:
|
95
99
|
encoding: UTF-8
|
96
|
-
string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":
|
100
|
+
string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":3},"resources":[{"@id":"http://your.triannon-server.com/annotations/bar/44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
101
|
+
love this!","format":"text/plain","language":"en"}},{"@id":"http://your.triannon-server.com/annotations/bar/66/75/cc/61/6675cc61-4a6d-4959-ba09-8d64f5c5d03e","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
102
|
+
love this!","format":"text/plain","language":"en"}},{"@id":"http://your.triannon-server.com/annotations/bar/11/4f/9b/26/114f9b26-4b59-4e9b-a3a8-41b03318bc5f","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
103
|
+
love this!","format":"text/plain","language":"en"}}],"@id":"http://localhost:3000/bar/search"}'
|
97
104
|
http_version:
|
98
|
-
recorded_at:
|
105
|
+
recorded_at: Mon, 03 Aug 2015 22:12:17 GMT
|
99
106
|
- request:
|
100
107
|
method: get
|
101
108
|
uri: http://iiif.io/api/presentation/2/context.json
|
@@ -115,11 +122,11 @@ http_interactions:
|
|
115
122
|
message: OK
|
116
123
|
headers:
|
117
124
|
Date:
|
118
|
-
-
|
125
|
+
- Mon, 03 Aug 2015 22:16:58 GMT
|
119
126
|
Server:
|
120
127
|
- Apache/2.2.15 (Red Hat)
|
121
128
|
Last-Modified:
|
122
|
-
-
|
129
|
+
- Tue, 28 Jul 2015 23:04:16 GMT
|
123
130
|
Accept-Ranges:
|
124
131
|
- bytes
|
125
132
|
Content-Length:
|
@@ -127,7 +134,7 @@ http_interactions:
|
|
127
134
|
Cache-Control:
|
128
135
|
- max-age=86400
|
129
136
|
Expires:
|
130
|
-
-
|
137
|
+
- Tue, 04 Aug 2015 22:16:58 GMT
|
131
138
|
Content-Type:
|
132
139
|
- application/ld+json
|
133
140
|
Access-Control-Allow-Origin:
|
@@ -193,7 +200,7 @@ http_interactions:
|
|
193
200
|
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
194
201
|
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
195
202
|
http_version:
|
196
|
-
recorded_at:
|
203
|
+
recorded_at: Mon, 03 Aug 2015 22:12:17 GMT
|
197
204
|
- request:
|
198
205
|
method: get
|
199
206
|
uri: http://iiif.io/api/presentation/2/context.json
|
@@ -213,11 +220,11 @@ http_interactions:
|
|
213
220
|
message: OK
|
214
221
|
headers:
|
215
222
|
Date:
|
216
|
-
-
|
223
|
+
- Mon, 03 Aug 2015 22:16:58 GMT
|
217
224
|
Server:
|
218
225
|
- Apache/2.2.15 (Red Hat)
|
219
226
|
Last-Modified:
|
220
|
-
-
|
227
|
+
- Tue, 28 Jul 2015 23:04:16 GMT
|
221
228
|
Accept-Ranges:
|
222
229
|
- bytes
|
223
230
|
Content-Length:
|
@@ -225,7 +232,7 @@ http_interactions:
|
|
225
232
|
Cache-Control:
|
226
233
|
- max-age=86400
|
227
234
|
Expires:
|
228
|
-
-
|
235
|
+
- Tue, 04 Aug 2015 22:16:58 GMT
|
229
236
|
Content-Type:
|
230
237
|
- application/ld+json
|
231
238
|
Access-Control-Allow-Origin:
|
@@ -291,5 +298,5 @@ http_interactions:
|
|
291
298
|
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
292
299
|
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
293
300
|
http_version:
|
294
|
-
recorded_at:
|
301
|
+
recorded_at: Mon, 03 Aug 2015 22:12:18 GMT
|
295
302
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,302 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/annotations/bar/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/ld+json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/ld+json
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 302
|
21
|
+
message: 'Found '
|
22
|
+
headers:
|
23
|
+
X-Frame-Options:
|
24
|
+
- SAMEORIGIN
|
25
|
+
X-Xss-Protection:
|
26
|
+
- 1; mode=block
|
27
|
+
X-Content-Type-Options:
|
28
|
+
- nosniff
|
29
|
+
Location:
|
30
|
+
- http://localhost:3000/bar/search
|
31
|
+
Content-Type:
|
32
|
+
- text/html; charset=utf-8
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache
|
35
|
+
X-Request-Id:
|
36
|
+
- f48a1658-8ec8-47ce-9b2b-e7df0ff720dc
|
37
|
+
X-Runtime:
|
38
|
+
- '0.003352'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
41
|
+
Date:
|
42
|
+
- Mon, 03 Aug 2015 22:12:18 GMT
|
43
|
+
Content-Length:
|
44
|
+
- '98'
|
45
|
+
Connection:
|
46
|
+
- Keep-Alive
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: <html><body>You are being <a href="http://localhost:3000/bar/search">redirected</a>.</body></html>
|
50
|
+
http_version:
|
51
|
+
recorded_at: Mon, 03 Aug 2015 22:12:18 GMT
|
52
|
+
- request:
|
53
|
+
method: get
|
54
|
+
uri: http://localhost:3000/bar/search
|
55
|
+
body:
|
56
|
+
encoding: US-ASCII
|
57
|
+
string: ''
|
58
|
+
headers:
|
59
|
+
Accept:
|
60
|
+
- application/ld+json
|
61
|
+
Accept-Encoding:
|
62
|
+
- gzip, deflate
|
63
|
+
Content-Type:
|
64
|
+
- application/ld+json
|
65
|
+
Cookie:
|
66
|
+
- ''
|
67
|
+
User-Agent:
|
68
|
+
- Ruby
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 200
|
72
|
+
message: 'OK '
|
73
|
+
headers:
|
74
|
+
X-Frame-Options:
|
75
|
+
- SAMEORIGIN
|
76
|
+
X-Xss-Protection:
|
77
|
+
- 1; mode=block
|
78
|
+
X-Content-Type-Options:
|
79
|
+
- nosniff
|
80
|
+
Content-Type:
|
81
|
+
- application/ld+json; charset=utf-8
|
82
|
+
Etag:
|
83
|
+
- W/"c9a494501dfac047a339e5a5cd6d7241"
|
84
|
+
Cache-Control:
|
85
|
+
- max-age=0, private, must-revalidate
|
86
|
+
X-Request-Id:
|
87
|
+
- 27f7d598-5032-48e4-9e07-4f0e894e99fd
|
88
|
+
X-Runtime:
|
89
|
+
- '3.516744'
|
90
|
+
Server:
|
91
|
+
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
92
|
+
Date:
|
93
|
+
- Mon, 03 Aug 2015 22:12:21 GMT
|
94
|
+
Content-Length:
|
95
|
+
- '1192'
|
96
|
+
Connection:
|
97
|
+
- Keep-Alive
|
98
|
+
body:
|
99
|
+
encoding: UTF-8
|
100
|
+
string: '{"@context":"http://iiif.io/api/presentation/2/context.json","@type":"sc:AnnotationList","within":{"@type":"sc:Layer","total":3},"resources":[{"@id":"http://your.triannon-server.com/annotations/bar/44/88/5a/75/44885a75-6c5b-4da8-8871-bb60932e42f7","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
101
|
+
love this!","format":"text/plain","language":"en"}},{"@id":"http://your.triannon-server.com/annotations/bar/66/75/cc/61/6675cc61-4a6d-4959-ba09-8d64f5c5d03e","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
102
|
+
love this!","format":"text/plain","language":"en"}},{"@id":"http://your.triannon-server.com/annotations/bar/11/4f/9b/26/114f9b26-4b59-4e9b-a3a8-41b03318bc5f","@type":"oa:Annotation","motivation":"oa:commenting","on":"http://purl.stanford.edu/kq131cs7229","resource":{"@id":"_:b0","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
103
|
+
love this!","format":"text/plain","language":"en"}}],"@id":"http://localhost:3000/bar/search"}'
|
104
|
+
http_version:
|
105
|
+
recorded_at: Mon, 03 Aug 2015 22:12:21 GMT
|
106
|
+
- request:
|
107
|
+
method: get
|
108
|
+
uri: http://iiif.io/api/presentation/2/context.json
|
109
|
+
body:
|
110
|
+
encoding: US-ASCII
|
111
|
+
string: ''
|
112
|
+
headers:
|
113
|
+
Accept:
|
114
|
+
- application/ld+json, application/json
|
115
|
+
Accept-Encoding:
|
116
|
+
- gzip, deflate
|
117
|
+
User-Agent:
|
118
|
+
- Ruby
|
119
|
+
response:
|
120
|
+
status:
|
121
|
+
code: 200
|
122
|
+
message: OK
|
123
|
+
headers:
|
124
|
+
Date:
|
125
|
+
- Mon, 03 Aug 2015 22:17:01 GMT
|
126
|
+
Server:
|
127
|
+
- Apache/2.2.15 (Red Hat)
|
128
|
+
Last-Modified:
|
129
|
+
- Tue, 28 Jul 2015 23:04:16 GMT
|
130
|
+
Accept-Ranges:
|
131
|
+
- bytes
|
132
|
+
Content-Length:
|
133
|
+
- '4235'
|
134
|
+
Cache-Control:
|
135
|
+
- max-age=86400
|
136
|
+
Expires:
|
137
|
+
- Tue, 04 Aug 2015 22:17:01 GMT
|
138
|
+
Content-Type:
|
139
|
+
- application/ld+json
|
140
|
+
Access-Control-Allow-Origin:
|
141
|
+
- "*"
|
142
|
+
body:
|
143
|
+
encoding: UTF-8
|
144
|
+
string: "{\n\t\"@context\": [\n\t\t{\n\t\t\t\"sc\": \"http://iiif.io/api/presentation/2#\",\n\t
|
145
|
+
\ \"iiif\": \"http://iiif.io/api/image/2#\",\n\t \"exif\":
|
146
|
+
\ \"http://www.w3.org/2003/12/exif/ns#\",\n\t \"oa\": \"http://www.w3.org/ns/oa#\",\n\t
|
147
|
+
\ \"cnt\": \"http://www.w3.org/2011/content#\",\n\t \"dc\":
|
148
|
+
\ \"http://purl.org/dc/elements/1.1/\",\n\t \"dcterms\": \"http://purl.org/dc/terms/\",\n\t
|
149
|
+
\ \"dctypes\": \"http://purl.org/dc/dcmitype/\",\n\t \"foaf\":
|
150
|
+
\ \"http://xmlns.com/foaf/0.1/\",\n\t \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n\t
|
151
|
+
\ \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\",\n\t \"xsd\":
|
152
|
+
\ \"http://www.w3.org/2001/XMLSchema#\",\n\t\t\t\"svcs\": \"http://rdfs.org/sioc/services#\",\n\n\t
|
153
|
+
\ \"license\": {\"@type\":\"@id\", \"@id\":\"dcterms:license\"},\n\t
|
154
|
+
\ \"service\": {\"@type\":\"@id\", \"@id\":\"svcs:has_service\"},\n\t
|
155
|
+
\ \"seeAlso\": {\"@type\":\"@id\", \"@id\":\"foaf:page\"},\n\t \"within\":
|
156
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:isPartOf\"},\n\t \"profile\":
|
157
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:conformsTo\"},\n\t \"related\":
|
158
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:relation\"},\n\t \"logo\":
|
159
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:logo\"},\n\t \"thumbnail\":
|
160
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:thumbnail\"},\n\t \"startCanvas\":
|
161
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasStartCanvas\"},\n\n\t \"collections\":
|
162
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasCollections\", \"@container\":\"@list\"},\n\t
|
163
|
+
\ \"manifests\": {\"@type\":\"@id\", \"@id\":\"sc:hasManifests\",
|
164
|
+
\"@container\":\"@list\"},\n\t \"sequences\": {\"@type\":\"@id\",
|
165
|
+
\"@id\":\"sc:hasSequences\", \"@container\":\"@list\"},\n\t \"canvases\":
|
166
|
+
\ {\"@type\":\"@id\", \"@id\":\"sc:hasCanvases\", \"@container\":\"@list\"},\n\t
|
167
|
+
\ \"resources\": {\"@type\":\"@id\", \"@id\":\"sc:hasAnnotations\",
|
168
|
+
\"@container\":\"@list\"},\n\t \"images\": {\"@type\":\"@id\",
|
169
|
+
\"@id\":\"sc:hasImageAnnotations\",\"@container\":\"@list\"},\n\t \"otherContent\":
|
170
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasLists\", \"@container\":\"@list\"},\n\t
|
171
|
+
\ \"structures\": {\"@type\":\"@id\", \"@id\":\"sc:hasRanges\", \"@container\":\"@list\"},\n\t
|
172
|
+
\ \"ranges\" : {\"@type\": \"@id\", \"@id\": \"sc:hasRanges\", \"@container\":\"@list\"},\n\n\t
|
173
|
+
\ \"metadata\": {\"@type\":\"@id\", \"@id\":\"sc:metadataLabels\",
|
174
|
+
\"@container\":\"@list\"},\n\n\t \"description\": {\"@id\": \"dc:description\"},\n\t
|
175
|
+
\ \"height\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:height\"},\n\t
|
176
|
+
\ \"width\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:width\"},\n\n\t
|
177
|
+
\ \"attribution\": {\"@id\": \"sc:attributionLabel\"},\n\t \"viewingDirection\":
|
178
|
+
{\"@id\": \"sc:viewingDirection\", \"@type\":\"@id\"},\n\t \"viewingHint\":
|
179
|
+
{\"@id\": \"sc:viewingHint\", \"@type\":\"@id\"},\n\n\t \"left-to-right\":
|
180
|
+
{\"@id\":\"sc:leftToRightDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
181
|
+
\ \"right-to-left\": {\"@id\":\"sc:rightToLeftDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
182
|
+
\ \"top-to-bottom\": {\"@id\":\"sc:topToBottomDirection\", \"@type\":\"sc:ViewingDirection\"},\t
|
183
|
+
\ \n\t \"bottom-to-top\": {\"@id\":\"sc:bottomToTopDirection\",
|
184
|
+
\"@type\":\"sc:ViewingDirection\"},\n\n\t \"paged\": {\"@id\":\"sc:pagedHint\",
|
185
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"non-paged\": {\"@id\":\"sc:nonPagedHint\",
|
186
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"continuous\": {\"@id\":\"sc:continuousHint\",
|
187
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"individuals\": {\"@id\":\"sc:individualsHint\",
|
188
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"top\": {\"@id\":\"sc:topHint\",
|
189
|
+
\"@type\":\"sc:ViewingHint\"},\n\n\t \"motivation\": {\"@type\":\"@id\",
|
190
|
+
\"@id\":\"oa:motivatedBy\"},\n\t \"resource\": {\"@type\":\"@id\",
|
191
|
+
\"@id\":\"oa:hasBody\"},\n\t \"on\": {\"@type\":\"@id\", \"@id\":\"oa:hasTarget\"},\n\t
|
192
|
+
\ \"full\": {\"@type\":\"@id\", \"@id\":\"oa:hasSource\"},\n\t
|
193
|
+
\ \"selector\": {\"@type\":\"@id\", \"@id\":\"oa:hasSelector\"},\n\t
|
194
|
+
\ \"stylesheet\": {\"@type\":\"@id\", \"@id\":\"oa:styledBy\"},\n\t
|
195
|
+
\ \"style\": {\"@id\":\"oa:styleClass\"},\n\n\t\t \"default\":
|
196
|
+
\ {\"@type\":\"@id\", \"@id\" : \"oa:default\"},\n\t\t \"item\": {\"@type\":\"@id\",
|
197
|
+
\"@id\" : \"oa:item\"},\n\t\t \"chars\": {\"@id\": \"cnt:chars\"},\n\t\t
|
198
|
+
\ \"encoding\": {\"@id\": \"cnt:characterEncoding\"},\n\t\t \"bytes\":
|
199
|
+
\ {\"@id\": \"cnt:bytes\"},\n\t\t \"format\": {\"@id\": \"dc:format\"},\n\t\t
|
200
|
+
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
201
|
+
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
202
|
+
http_version:
|
203
|
+
recorded_at: Mon, 03 Aug 2015 22:12:21 GMT
|
204
|
+
- request:
|
205
|
+
method: get
|
206
|
+
uri: http://iiif.io/api/presentation/2/context.json
|
207
|
+
body:
|
208
|
+
encoding: US-ASCII
|
209
|
+
string: ''
|
210
|
+
headers:
|
211
|
+
Accept:
|
212
|
+
- application/ld+json, application/json
|
213
|
+
Accept-Encoding:
|
214
|
+
- gzip, deflate
|
215
|
+
User-Agent:
|
216
|
+
- Ruby
|
217
|
+
response:
|
218
|
+
status:
|
219
|
+
code: 200
|
220
|
+
message: OK
|
221
|
+
headers:
|
222
|
+
Date:
|
223
|
+
- Mon, 03 Aug 2015 22:17:01 GMT
|
224
|
+
Server:
|
225
|
+
- Apache/2.2.15 (Red Hat)
|
226
|
+
Last-Modified:
|
227
|
+
- Tue, 28 Jul 2015 23:04:16 GMT
|
228
|
+
Accept-Ranges:
|
229
|
+
- bytes
|
230
|
+
Content-Length:
|
231
|
+
- '4235'
|
232
|
+
Cache-Control:
|
233
|
+
- max-age=86400
|
234
|
+
Expires:
|
235
|
+
- Tue, 04 Aug 2015 22:17:01 GMT
|
236
|
+
Content-Type:
|
237
|
+
- application/ld+json
|
238
|
+
Access-Control-Allow-Origin:
|
239
|
+
- "*"
|
240
|
+
body:
|
241
|
+
encoding: UTF-8
|
242
|
+
string: "{\n\t\"@context\": [\n\t\t{\n\t\t\t\"sc\": \"http://iiif.io/api/presentation/2#\",\n\t
|
243
|
+
\ \"iiif\": \"http://iiif.io/api/image/2#\",\n\t \"exif\":
|
244
|
+
\ \"http://www.w3.org/2003/12/exif/ns#\",\n\t \"oa\": \"http://www.w3.org/ns/oa#\",\n\t
|
245
|
+
\ \"cnt\": \"http://www.w3.org/2011/content#\",\n\t \"dc\":
|
246
|
+
\ \"http://purl.org/dc/elements/1.1/\",\n\t \"dcterms\": \"http://purl.org/dc/terms/\",\n\t
|
247
|
+
\ \"dctypes\": \"http://purl.org/dc/dcmitype/\",\n\t \"foaf\":
|
248
|
+
\ \"http://xmlns.com/foaf/0.1/\",\n\t \"rdf\": \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n\t
|
249
|
+
\ \"rdfs\": \"http://www.w3.org/2000/01/rdf-schema#\",\n\t \"xsd\":
|
250
|
+
\ \"http://www.w3.org/2001/XMLSchema#\",\n\t\t\t\"svcs\": \"http://rdfs.org/sioc/services#\",\n\n\t
|
251
|
+
\ \"license\": {\"@type\":\"@id\", \"@id\":\"dcterms:license\"},\n\t
|
252
|
+
\ \"service\": {\"@type\":\"@id\", \"@id\":\"svcs:has_service\"},\n\t
|
253
|
+
\ \"seeAlso\": {\"@type\":\"@id\", \"@id\":\"foaf:page\"},\n\t \"within\":
|
254
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:isPartOf\"},\n\t \"profile\":
|
255
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:conformsTo\"},\n\t \"related\":
|
256
|
+
\ {\"@type\":\"@id\", \"@id\":\"dcterms:relation\"},\n\t \"logo\":
|
257
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:logo\"},\n\t \"thumbnail\":
|
258
|
+
\ {\"@type\":\"@id\", \"@id\":\"foaf:thumbnail\"},\n\t \"startCanvas\":
|
259
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasStartCanvas\"},\n\n\t \"collections\":
|
260
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasCollections\", \"@container\":\"@list\"},\n\t
|
261
|
+
\ \"manifests\": {\"@type\":\"@id\", \"@id\":\"sc:hasManifests\",
|
262
|
+
\"@container\":\"@list\"},\n\t \"sequences\": {\"@type\":\"@id\",
|
263
|
+
\"@id\":\"sc:hasSequences\", \"@container\":\"@list\"},\n\t \"canvases\":
|
264
|
+
\ {\"@type\":\"@id\", \"@id\":\"sc:hasCanvases\", \"@container\":\"@list\"},\n\t
|
265
|
+
\ \"resources\": {\"@type\":\"@id\", \"@id\":\"sc:hasAnnotations\",
|
266
|
+
\"@container\":\"@list\"},\n\t \"images\": {\"@type\":\"@id\",
|
267
|
+
\"@id\":\"sc:hasImageAnnotations\",\"@container\":\"@list\"},\n\t \"otherContent\":
|
268
|
+
{\"@type\":\"@id\", \"@id\":\"sc:hasLists\", \"@container\":\"@list\"},\n\t
|
269
|
+
\ \"structures\": {\"@type\":\"@id\", \"@id\":\"sc:hasRanges\", \"@container\":\"@list\"},\n\t
|
270
|
+
\ \"ranges\" : {\"@type\": \"@id\", \"@id\": \"sc:hasRanges\", \"@container\":\"@list\"},\n\n\t
|
271
|
+
\ \"metadata\": {\"@type\":\"@id\", \"@id\":\"sc:metadataLabels\",
|
272
|
+
\"@container\":\"@list\"},\n\n\t \"description\": {\"@id\": \"dc:description\"},\n\t
|
273
|
+
\ \"height\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:height\"},\n\t
|
274
|
+
\ \"width\": {\"@type\":\"xsd:integer\", \"@id\":\"exif:width\"},\n\n\t
|
275
|
+
\ \"attribution\": {\"@id\": \"sc:attributionLabel\"},\n\t \"viewingDirection\":
|
276
|
+
{\"@id\": \"sc:viewingDirection\", \"@type\":\"@id\"},\n\t \"viewingHint\":
|
277
|
+
{\"@id\": \"sc:viewingHint\", \"@type\":\"@id\"},\n\n\t \"left-to-right\":
|
278
|
+
{\"@id\":\"sc:leftToRightDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
279
|
+
\ \"right-to-left\": {\"@id\":\"sc:rightToLeftDirection\", \"@type\":\"sc:ViewingDirection\"},\n\t
|
280
|
+
\ \"top-to-bottom\": {\"@id\":\"sc:topToBottomDirection\", \"@type\":\"sc:ViewingDirection\"},\t
|
281
|
+
\ \n\t \"bottom-to-top\": {\"@id\":\"sc:bottomToTopDirection\",
|
282
|
+
\"@type\":\"sc:ViewingDirection\"},\n\n\t \"paged\": {\"@id\":\"sc:pagedHint\",
|
283
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"non-paged\": {\"@id\":\"sc:nonPagedHint\",
|
284
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"continuous\": {\"@id\":\"sc:continuousHint\",
|
285
|
+
\"@type\":\"sc:ViewingHint\"},\n\t \"individuals\": {\"@id\":\"sc:individualsHint\",
|
286
|
+
\"@type\":\"sc:ViewingHint\"}, \n\t \"top\": {\"@id\":\"sc:topHint\",
|
287
|
+
\"@type\":\"sc:ViewingHint\"},\n\n\t \"motivation\": {\"@type\":\"@id\",
|
288
|
+
\"@id\":\"oa:motivatedBy\"},\n\t \"resource\": {\"@type\":\"@id\",
|
289
|
+
\"@id\":\"oa:hasBody\"},\n\t \"on\": {\"@type\":\"@id\", \"@id\":\"oa:hasTarget\"},\n\t
|
290
|
+
\ \"full\": {\"@type\":\"@id\", \"@id\":\"oa:hasSource\"},\n\t
|
291
|
+
\ \"selector\": {\"@type\":\"@id\", \"@id\":\"oa:hasSelector\"},\n\t
|
292
|
+
\ \"stylesheet\": {\"@type\":\"@id\", \"@id\":\"oa:styledBy\"},\n\t
|
293
|
+
\ \"style\": {\"@id\":\"oa:styleClass\"},\n\n\t\t \"default\":
|
294
|
+
\ {\"@type\":\"@id\", \"@id\" : \"oa:default\"},\n\t\t \"item\": {\"@type\":\"@id\",
|
295
|
+
\"@id\" : \"oa:item\"},\n\t\t \"chars\": {\"@id\": \"cnt:chars\"},\n\t\t
|
296
|
+
\ \"encoding\": {\"@id\": \"cnt:characterEncoding\"},\n\t\t \"bytes\":
|
297
|
+
\ {\"@id\": \"cnt:bytes\"},\n\t\t \"format\": {\"@id\": \"dc:format\"},\n\t\t
|
298
|
+
\ \"language\": {\"@id\": \"dc:language\"},\n\t\t \"value\": {\"@id\":
|
299
|
+
\"rdf:value\"},\n\t\t \"label\": {\"@id\": \"rdfs:label\"}\n\t\t}\n\t]\n}"
|
300
|
+
http_version:
|
301
|
+
recorded_at: Mon, 03 Aug 2015 22:12:21 GMT
|
302
|
+
recorded_with: VCR 2.9.3
|