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.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/.env_example +16 -2
  3. data/.rspec +1 -0
  4. data/README.md +49 -18
  5. data/Rakefile +15 -2
  6. data/lib/triannon-client.rb +12 -6
  7. data/lib/triannon-client/configuration.rb +26 -14
  8. data/lib/triannon-client/triannon_client.rb +139 -44
  9. 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
  10. data/spec/fixtures/vcr_cassettes/TriannonClientAUTH/with_authentication/behaves_like_authenticate/-_authenticate_returns_true.yml +343 -0
  11. 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
  12. 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
  13. 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
  14. 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
  15. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/logs_RuntimeError_message.yml +170 -0
  16. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/_post_annotation/with_authentication/behaves_like_create_annotations/returns_a_RestClient_Response_object.yml +170 -0
  17. 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
  18. data/spec/fixtures/vcr_cassettes/TriannonClientCREATE/clear_annotations.yml +590 -0
  19. 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
  20. 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
  21. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/_delete_annotation/with_authentication/behaves_like_delete_annotations/validates_the_annotation_ID.yml +288 -0
  22. 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
  23. 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
  24. data/spec/fixtures/vcr_cassettes/{TriannonClient/_delete_annotation → TriannonClientDELETE/_delete_annotation/without_authentication/behaves_like_delete_annotations}/validates_the_annotation_ID.yml +7 -5
  25. data/spec/fixtures/vcr_cassettes/TriannonClientDELETE/clear_annotations.yml +594 -0
  26. data/spec/fixtures/vcr_cassettes/{TriannonClient → TriannonClientREAD/GET}/_get_annotations/returns_an_RDF_Graph.yml +30 -23
  27. data/spec/fixtures/vcr_cassettes/{TriannonClient → TriannonClientREAD/GET}/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +30 -23
  28. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +302 -0
  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 → TriannonClientREAD/GET/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml} +25 -78
  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/n-triples_.yml → TriannonClientREAD/GET/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml} +25 -78
  31. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/GET/_response2graph/accepts_a_RestClient_Response_instance.yml +2399 -0
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. data/spec/fixtures/vcr_cassettes/TriannonClientREAD/clear_annotations.yml +648 -0
  57. 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
  58. data/spec/lib/triannon-client/configuration_spec.rb +83 -27
  59. data/spec/lib/triannon-client/triannon_client_auth_spec.rb +61 -0
  60. data/spec/lib/triannon-client/triannon_client_class_spec.rb +104 -0
  61. data/spec/lib/triannon-client/triannon_client_create_spec.rb +119 -0
  62. data/spec/lib/triannon-client/triannon_client_delete_spec.rb +117 -0
  63. data/spec/lib/triannon-client/triannon_client_read_spec.rb +342 -0
  64. data/spec/spec_helper.rb +140 -4
  65. data/triannon-client.gemspec +1 -1
  66. metadata +112 -153
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +0 -2502
  96. 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
  97. 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
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. 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
  104. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +0 -2746
  105. 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
  106. data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +0 -4946
  107. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_404_responses_.yml +0 -64
  108. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/does_not_log_exceptions_for_missing_annotations_410_responses_.yml +0 -64
  109. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/logs_exceptions.yml +0 -64
  110. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_FALSE_for_a_500_response_to_a_DELETE_request.yml +0 -64
  111. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_200_response_to_a_DELETE_request.yml +0 -64
  112. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_202_response_to_a_DELETE_request.yml +0 -64
  113. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_204_response_to_a_DELETE_request.yml +0 -64
  114. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_404_response_to_a_DELETE_request.yml +0 -64
  115. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_for_a_410_response_to_a_DELETE_request.yml +0 -64
  116. data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_TRUE_when_deleting_an_open_annotation_that_exists.yml +0 -2549
  117. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions.yml +0 -5355
  118. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/logs_exceptions_for_RestClient_Exception.yml +0 -5355
  119. data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +0 -2502
  120. 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
  121. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +0 -2502
  122. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uris/returns_an_RDF_URI_that_is_a_valid_URI.yml +0 -2551
  123. 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
  124. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +0 -4898
  125. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +0 -2502
  126. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +0 -2502
  127. data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +0 -2502
  128. data/spec/lib/triannon-client/triannon_client_spec.rb +0 -546
@@ -1,26 +1,24 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
5
- uri: http://localhost:3000/annotations/foo/
4
+ method: get
5
+ uri: http://localhost:3000/annotations/bar/%2F11%2F4f%2F9b%2F26%2F114f9b26-4b59-4e9b-a3a8-41b03318bc5f
6
6
  body:
7
7
  encoding: US-ASCII
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
8
+ string: ''
9
9
  headers:
10
10
  Accept:
11
11
  - application/ld+json
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Type:
15
- - application/x-www-form-urlencoded
16
- Content-Length:
17
- - '580'
15
+ - application/ld+json
18
16
  User-Agent:
19
17
  - Ruby
20
18
  response:
21
19
  status:
22
- code: 201
23
- message: 'Created '
20
+ code: 200
21
+ message: 'OK '
24
22
  headers:
25
23
  X-Frame-Options:
26
24
  - SAMEORIGIN
@@ -31,31 +29,27 @@ http_interactions:
31
29
  Content-Type:
32
30
  - application/ld+json; charset=utf-8
33
31
  Etag:
34
- - W/"ef980d149734e6e9c19b4744012ebdd2"
32
+ - W/"f43a65b986df14da43bb01d808ef77f3"
35
33
  Cache-Control:
36
34
  - max-age=0, private, must-revalidate
37
35
  X-Request-Id:
38
- - bf867c2e-dce6-45d8-80dd-f6ce76b6f652
36
+ - 697d85be-dfae-42cc-93ba-48d3b1852e54
39
37
  X-Runtime:
40
- - '1.674336'
38
+ - '0.698935'
41
39
  Server:
42
40
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
43
41
  Date:
44
- - Fri, 19 Jun 2015 18:37:54 GMT
42
+ - Mon, 03 Aug 2015 22:12:30 GMT
45
43
  Content-Length:
46
44
  - '447'
47
45
  Connection:
48
46
  - Keep-Alive
49
- Set-Cookie:
50
- - _internal_session=UytKbVpXQWhRYmN3K1d1dHBGWVhhc2RNaWRybXZGdGpnNTh3YnJ3NmZkOUxvSFdqNXZTR3EzK0RFRE1KRmRSa1FFeDdOVzdtMCtDYTdCYlEvaXVyZ3ZuM05lUGdLT0k1WmpqVnFlNWhSK2Z5U2p0YWR4MVgzR1p1MlhTTmpxVFpwbGQ1UE12eHV1ZkpFd0Z6V0dNc0o0VTBNU0tRUmJlWTZNN1ZqcW11UGtaNEthQ0hkMEowbkxhQlVzZ0dIVUVOcHYvQmEzd0RBV2JjdytUK1QvOTNLQndqb1BidWFENkVONktPMVE4SEgvb3RkcGVCOTc1VHJ3TWd1elR4WDBYZS0tRzVzbU16SGN0ak92VzNtMDB6Wi90Zz09--d38e82143201dbab7c54e8cc12e6f2c2cba28c61;
51
- path=/; HttpOnly
52
- - request_method=POST; path=/
53
47
  body:
54
48
  encoding: UTF-8
55
- string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g70154451174740","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
56
- love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/foo/e0/3e/f5/b5/e03ef5b5-db55-4925-abf3-45524ef6d4a4","@type":"oa:Annotation","hasBody":"_:g70154451174740","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
49
+ string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g69926410643100","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
50
+ 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","hasBody":"_:g69926410643100","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
57
51
  http_version:
58
- recorded_at: Fri, 19 Jun 2015 18:37:54 GMT
52
+ recorded_at: Mon, 03 Aug 2015 22:12:30 GMT
59
53
  - request:
60
54
  method: get
61
55
  uri: http://www.w3.org/ns/oa-context-20130208.json
@@ -75,7 +69,7 @@ http_interactions:
75
69
  message: Temporary Redirect
76
70
  headers:
77
71
  Date:
78
- - Fri, 19 Jun 2015 18:37:54 GMT
72
+ - Mon, 03 Aug 2015 22:12:31 GMT
79
73
  Server:
80
74
  - Apache/2
81
75
  Location:
@@ -83,7 +77,7 @@ http_interactions:
83
77
  Cache-Control:
84
78
  - max-age=21600
85
79
  Expires:
86
- - Sat, 20 Jun 2015 00:37:54 GMT
80
+ - Tue, 04 Aug 2015 04:12:31 GMT
87
81
  Content-Length:
88
82
  - '240'
89
83
  Content-Type:
@@ -99,7 +93,7 @@ http_interactions:
99
93
  <p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
100
94
  </body></html>
101
95
  http_version:
102
- recorded_at: Fri, 19 Jun 2015 18:37:54 GMT
96
+ recorded_at: Mon, 03 Aug 2015 22:12:31 GMT
103
97
  - request:
104
98
  method: get
105
99
  uri: http://www.w3.org/ns/oa.jsonld
@@ -121,7 +115,7 @@ http_interactions:
121
115
  message: OK
122
116
  headers:
123
117
  Date:
124
- - Fri, 19 Jun 2015 18:37:54 GMT
118
+ - Mon, 03 Aug 2015 22:12:31 GMT
125
119
  Server:
126
120
  - Apache/2
127
121
  Last-Modified:
@@ -135,7 +129,7 @@ http_interactions:
135
129
  Cache-Control:
136
130
  - max-age=21600
137
131
  Expires:
138
- - Sat, 20 Jun 2015 00:37:54 GMT
132
+ - Tue, 04 Aug 2015 04:12:31 GMT
139
133
  P3p:
140
134
  - policyref="http://www.w3.org/2014/08/p3p.xml"
141
135
  Access-Control-Allow-Origin:
@@ -1253,7 +1247,7 @@ http_interactions:
1253
1247
 
1254
1248
 
1255
1249
  http_version:
1256
- recorded_at: Fri, 19 Jun 2015 18:37:54 GMT
1250
+ recorded_at: Mon, 03 Aug 2015 22:12:31 GMT
1257
1251
  - request:
1258
1252
  method: get
1259
1253
  uri: http://www.w3.org/ns/oa-context-20130208.json
@@ -1273,7 +1267,7 @@ http_interactions:
1273
1267
  message: Temporary Redirect
1274
1268
  headers:
1275
1269
  Date:
1276
- - Fri, 19 Jun 2015 18:37:55 GMT
1270
+ - Mon, 03 Aug 2015 22:12:31 GMT
1277
1271
  Server:
1278
1272
  - Apache/2
1279
1273
  Location:
@@ -1281,7 +1275,7 @@ http_interactions:
1281
1275
  Cache-Control:
1282
1276
  - max-age=21600
1283
1277
  Expires:
1284
- - Sat, 20 Jun 2015 00:37:55 GMT
1278
+ - Tue, 04 Aug 2015 04:12:31 GMT
1285
1279
  Content-Length:
1286
1280
  - '240'
1287
1281
  Content-Type:
@@ -1297,7 +1291,7 @@ http_interactions:
1297
1291
  <p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
1298
1292
  </body></html>
1299
1293
  http_version:
1300
- recorded_at: Fri, 19 Jun 2015 18:37:55 GMT
1294
+ recorded_at: Mon, 03 Aug 2015 22:12:31 GMT
1301
1295
  - request:
1302
1296
  method: get
1303
1297
  uri: http://www.w3.org/ns/oa.jsonld
@@ -1319,7 +1313,7 @@ http_interactions:
1319
1313
  message: OK
1320
1314
  headers:
1321
1315
  Date:
1322
- - Fri, 19 Jun 2015 18:37:55 GMT
1316
+ - Mon, 03 Aug 2015 22:12:31 GMT
1323
1317
  Server:
1324
1318
  - Apache/2
1325
1319
  Last-Modified:
@@ -1333,7 +1327,7 @@ http_interactions:
1333
1327
  Cache-Control:
1334
1328
  - max-age=21600
1335
1329
  Expires:
1336
- - Sat, 20 Jun 2015 00:37:55 GMT
1330
+ - Tue, 04 Aug 2015 04:12:31 GMT
1337
1331
  P3p:
1338
1332
  - policyref="http://www.w3.org/2014/08/p3p.xml"
1339
1333
  Access-Control-Allow-Origin:
@@ -2451,52 +2445,5 @@ http_interactions:
2451
2445
 
2452
2446
 
2453
2447
  http_version:
2454
- recorded_at: Fri, 19 Jun 2015 18:37:55 GMT
2455
- - request:
2456
- method: delete
2457
- uri: http://localhost:3000/annotations/foo/e0%2F3e%2Ff5%2Fb5%2Fe03ef5b5-db55-4925-abf3-45524ef6d4a4
2458
- body:
2459
- encoding: US-ASCII
2460
- string: ''
2461
- headers:
2462
- Accept:
2463
- - "*/*; q=0.5, application/xml"
2464
- Accept-Encoding:
2465
- - gzip, deflate
2466
- User-Agent:
2467
- - Ruby
2468
- response:
2469
- status:
2470
- code: 204
2471
- message: 'No Content '
2472
- headers:
2473
- X-Frame-Options:
2474
- - SAMEORIGIN
2475
- X-Xss-Protection:
2476
- - 1; mode=block
2477
- X-Content-Type-Options:
2478
- - nosniff
2479
- Location:
2480
- - http://localhost:3000/annotations?anno_root=foo
2481
- Cache-Control:
2482
- - no-cache
2483
- X-Request-Id:
2484
- - d5c3c514-6fd3-4a51-9ef7-49d17f54f962
2485
- X-Runtime:
2486
- - '0.195401'
2487
- Server:
2488
- - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
2489
- Date:
2490
- - Fri, 19 Jun 2015 18:37:55 GMT
2491
- Connection:
2492
- - Keep-Alive
2493
- Set-Cookie:
2494
- - _internal_session=eFhxUVovL0FGcHJYa294RDJ2Wmw0aHoyNDBYeDU3b3pqS0g4WkpjTW4vYlNtRCt4aUh4ZzQ2aENVbDVIOER2ejVsQ1U5NHdkNVJIcU5RR2pWMDJKSWhOMWJBNmtwcW5EZTVyUEQySTZVSlpDdXlQTTVpSzBxTXcrM0hzU0ZpQWlUbDhQSW5ZMzkzWFYyVllHdjVwUFVXbnhjRllJM0ZSSWowdmJlZFlXbmdtbndkRjVxMGtmQm1nbjU5eElBQnJLLS1wTjVSRFphOWdwMHpsekUrQ09hWTBnPT0%3D--cacb1e1312e5a6ba20b809fac5da2386f1c43451;
2495
- path=/; HttpOnly
2496
- - request_method=DELETE; path=/
2497
- body:
2498
- encoding: UTF-8
2499
- string: ''
2500
- http_version:
2501
- recorded_at: Fri, 19 Jun 2015 18:37:55 GMT
2448
+ recorded_at: Mon, 03 Aug 2015 22:12:32 GMT
2502
2449
  recorded_with: VCR 2.9.3
@@ -0,0 +1,68 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/annotations/bar/%2F11%2F4f%2F9b%2F26%2F114f9b26-4b59-4e9b-a3a8-41b03318bc5f
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/rdf+xml
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/ld+json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: 'OK '
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ Content-Type:
30
+ - application/rdf+xml; charset=utf-8
31
+ Etag:
32
+ - W/"0889150704a17b8651df837c478a2571"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - a01d9876-85ff-437a-ad79-b26c55e079bc
37
+ X-Runtime:
38
+ - '0.141135'
39
+ Server:
40
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
41
+ Date:
42
+ - Mon, 03 Aug 2015 22:12:32 GMT
43
+ Content-Length:
44
+ - '913'
45
+ Connection:
46
+ - Keep-Alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: |
50
+ <?xml version='1.0' encoding='utf-8' ?>
51
+ <rdf:RDF xmlns:cnt='http://www.w3.org/2011/content#' xmlns:dc11='http://purl.org/dc/elements/1.1/' xmlns:dcmitype='http://purl.org/dc/dcmitype/' xmlns:oa='http://www.w3.org/ns/oa#' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
52
+ <oa:Annotation rdf:about='http://your.triannon-server.com/annotations/bar/11/4f/9b/26/114f9b26-4b59-4e9b-a3a8-41b03318bc5f'>
53
+ <oa:hasBody>
54
+ <dcmitype:Text rdf:nodeID='g69926415579280'>
55
+ <rdf:type rdf:resource='http://www.w3.org/2011/content#ContentAsText'></rdf:type>
56
+ <dc11:format>text/plain</dc11:format>
57
+ <dc11:language>en</dc11:language>
58
+ <cnt:chars>I love this!</cnt:chars>
59
+ </dcmitype:Text>
60
+ </oa:hasBody>
61
+ <oa:hasTarget rdf:resource='http://purl.stanford.edu/kq131cs7229' />
62
+ <oa:motivatedBy rdf:resource='http://www.w3.org/ns/oa#commenting' />
63
+ </oa:Annotation>
64
+
65
+ </rdf:RDF>
66
+ http_version:
67
+ recorded_at: Mon, 03 Aug 2015 22:12:32 GMT
68
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/annotations/bar/%2F11%2F4f%2F9b%2F26%2F114f9b26-4b59-4e9b-a3a8-41b03318bc5f
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/x-turtle
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/ld+json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: 'OK '
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ Content-Type:
30
+ - application/x-turtle; charset=utf-8
31
+ Etag:
32
+ - W/"e8820caeae39270b8dc376ec568f9c1b"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 9dda0e6c-f084-4f0d-b80b-d347b57c685c
37
+ X-Runtime:
38
+ - '0.133606'
39
+ Server:
40
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
41
+ Date:
42
+ - Mon, 03 Aug 2015 22:12:32 GMT
43
+ Content-Length:
44
+ - '667'
45
+ Connection:
46
+ - Keep-Alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: |
50
+ @prefix cnt: <http://www.w3.org/2011/content#> .
51
+ @prefix dc11: <http://purl.org/dc/elements/1.1/> .
52
+ @prefix dcmitype: <http://purl.org/dc/dcmitype/> .
53
+ @prefix oa: <http://www.w3.org/ns/oa#> .
54
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
55
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
56
+
57
+ <http://your.triannon-server.com/annotations/bar/11/4f/9b/26/114f9b26-4b59-4e9b-a3a8-41b03318bc5f> a oa:Annotation;
58
+ oa:hasBody [
59
+ a dcmitype:Text,
60
+ cnt:ContentAsText;
61
+ dc11:format "text/plain";
62
+ dc11:language "en";
63
+ cnt:chars "I love this!"
64
+ ];
65
+ oa:hasTarget <http://purl.stanford.edu/kq131cs7229>;
66
+ oa:motivatedBy oa:commenting .
67
+ http_version:
68
+ recorded_at: Mon, 03 Aug 2015 22:12:32 GMT
69
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,69 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/annotations/bar/%2F11%2F4f%2F9b%2F26%2F114f9b26-4b59-4e9b-a3a8-41b03318bc5f
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - text/turtle
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/ld+json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: 'OK '
22
+ headers:
23
+ X-Frame-Options:
24
+ - SAMEORIGIN
25
+ X-Xss-Protection:
26
+ - 1; mode=block
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ Content-Type:
30
+ - text/turtle; charset=utf-8
31
+ Etag:
32
+ - W/"e8820caeae39270b8dc376ec568f9c1b"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 085f076c-f49c-4bd7-a7ff-d7de813f90e6
37
+ X-Runtime:
38
+ - '0.136808'
39
+ Server:
40
+ - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
41
+ Date:
42
+ - Mon, 03 Aug 2015 22:12:32 GMT
43
+ Content-Length:
44
+ - '667'
45
+ Connection:
46
+ - Keep-Alive
47
+ body:
48
+ encoding: UTF-8
49
+ string: |
50
+ @prefix cnt: <http://www.w3.org/2011/content#> .
51
+ @prefix dc11: <http://purl.org/dc/elements/1.1/> .
52
+ @prefix dcmitype: <http://purl.org/dc/dcmitype/> .
53
+ @prefix oa: <http://www.w3.org/ns/oa#> .
54
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
55
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
56
+
57
+ <http://your.triannon-server.com/annotations/bar/11/4f/9b/26/114f9b26-4b59-4e9b-a3a8-41b03318bc5f> a oa:Annotation;
58
+ oa:hasBody [
59
+ a dcmitype:Text,
60
+ cnt:ContentAsText;
61
+ dc11:format "text/plain";
62
+ dc11:language "en";
63
+ cnt:chars "I love this!"
64
+ ];
65
+ oa:hasTarget <http://purl.stanford.edu/kq131cs7229>;
66
+ oa:motivatedBy oa:commenting .
67
+ http_version:
68
+ recorded_at: Mon, 03 Aug 2015 22:12:32 GMT
69
+ recorded_with: VCR 2.9.3
@@ -1,26 +1,24 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: post
5
- uri: http://localhost:3000/annotations/foo/
4
+ method: get
5
+ uri: http://localhost:3000/annotations/bar/%2F11%2F4f%2F9b%2F26%2F114f9b26-4b59-4e9b-a3a8-41b03318bc5f
6
6
  body:
7
7
  encoding: US-ASCII
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
8
+ string: ''
9
9
  headers:
10
10
  Accept:
11
11
  - application/ld+json
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Type:
15
- - application/x-www-form-urlencoded
16
- Content-Length:
17
- - '580'
15
+ - application/ld+json
18
16
  User-Agent:
19
17
  - Ruby
20
18
  response:
21
19
  status:
22
- code: 201
23
- message: 'Created '
20
+ code: 200
21
+ message: 'OK '
24
22
  headers:
25
23
  X-Frame-Options:
26
24
  - SAMEORIGIN
@@ -31,31 +29,27 @@ http_interactions:
31
29
  Content-Type:
32
30
  - application/ld+json; charset=utf-8
33
31
  Etag:
34
- - W/"8a70fc2e483a3cf8261529184a95dc86"
32
+ - W/"71adacca6efdeb0079c23662d95500e4"
35
33
  Cache-Control:
36
34
  - max-age=0, private, must-revalidate
37
35
  X-Request-Id:
38
- - 8e57ab44-4add-4d6c-81aa-7a9457a7691a
36
+ - d7f860ef-309e-45b3-a677-e901f3a053e8
39
37
  X-Runtime:
40
- - '1.842023'
38
+ - '0.724629'
41
39
  Server:
42
40
  - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
43
41
  Date:
44
- - Fri, 19 Jun 2015 18:40:11 GMT
42
+ - Mon, 03 Aug 2015 22:12:27 GMT
45
43
  Content-Length:
46
44
  - '447'
47
45
  Connection:
48
46
  - Keep-Alive
49
- Set-Cookie:
50
- - _internal_session=Wm9IcVRaeit2dkIwdjgwN20yTVByYjBRUHN5cXVLWWRQb2tlSXExWmRicGlEdUNFbFhpUEZ4ZjdIa29pYTIvTmtGcVpPaE1vNzVHOUZ6c1dva0pPMVFqSjZMcmRGdTdCaCtabVhKaHJZNGJhYy9kb3p4d1l5eGhQdGN6SVJWd3F3Y0c1cUt3ZFQxclR4WjVtNHNaN1pLQXR2MkQ2Q2dtTDFldWx5cjZGdG96TVVjRVlCMXFCUkFNNzRweTdESHZFV3BmenNtTFVEUThRcnhKNGZ1ZDhaazNOVDZFYXJ5bnpvWEJnVnoxc1cwcGZGdm5SOWYwejNwYnNkN1NpcDFrbC0tYjhoRlhQRFZQYUpCS0ZLOWI3ekFaZz09--83fd2da56454ab2200f66aa4a92fec163248b1ad;
51
- path=/; HttpOnly
52
- - request_method=POST; path=/
53
47
  body:
54
48
  encoding: UTF-8
55
- string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g70154567298260","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
56
- love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/foo/35/a5/c2/6f/35a5c26f-a9ca-4f45-bf4c-0c5c88b28058","@type":"oa:Annotation","hasBody":"_:g70154567298260","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
49
+ string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g69926534122960","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
50
+ 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","hasBody":"_:g69926534122960","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
57
51
  http_version:
58
- recorded_at: Fri, 19 Jun 2015 18:40:11 GMT
52
+ recorded_at: Mon, 03 Aug 2015 22:12:27 GMT
59
53
  - request:
60
54
  method: get
61
55
  uri: http://www.w3.org/ns/oa-context-20130208.json
@@ -75,7 +69,7 @@ http_interactions:
75
69
  message: Temporary Redirect
76
70
  headers:
77
71
  Date:
78
- - Fri, 19 Jun 2015 18:40:11 GMT
72
+ - Mon, 03 Aug 2015 22:12:27 GMT
79
73
  Server:
80
74
  - Apache/2
81
75
  Location:
@@ -83,7 +77,7 @@ http_interactions:
83
77
  Cache-Control:
84
78
  - max-age=21600
85
79
  Expires:
86
- - Sat, 20 Jun 2015 00:40:11 GMT
80
+ - Tue, 04 Aug 2015 04:12:27 GMT
87
81
  Content-Length:
88
82
  - '240'
89
83
  Content-Type:
@@ -99,7 +93,7 @@ http_interactions:
99
93
  <p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
100
94
  </body></html>
101
95
  http_version:
102
- recorded_at: Fri, 19 Jun 2015 18:40:11 GMT
96
+ recorded_at: Mon, 03 Aug 2015 22:12:27 GMT
103
97
  - request:
104
98
  method: get
105
99
  uri: http://www.w3.org/ns/oa.jsonld
@@ -121,7 +115,7 @@ http_interactions:
121
115
  message: OK
122
116
  headers:
123
117
  Date:
124
- - Fri, 19 Jun 2015 18:40:11 GMT
118
+ - Mon, 03 Aug 2015 22:12:27 GMT
125
119
  Server:
126
120
  - Apache/2
127
121
  Last-Modified:
@@ -135,7 +129,7 @@ http_interactions:
135
129
  Cache-Control:
136
130
  - max-age=21600
137
131
  Expires:
138
- - Sat, 20 Jun 2015 00:40:11 GMT
132
+ - Tue, 04 Aug 2015 04:12:27 GMT
139
133
  P3p:
140
134
  - policyref="http://www.w3.org/2014/08/p3p.xml"
141
135
  Access-Control-Allow-Origin:
@@ -1253,7 +1247,7 @@ http_interactions:
1253
1247
 
1254
1248
 
1255
1249
  http_version:
1256
- recorded_at: Fri, 19 Jun 2015 18:40:12 GMT
1250
+ recorded_at: Mon, 03 Aug 2015 22:12:27 GMT
1257
1251
  - request:
1258
1252
  method: get
1259
1253
  uri: http://www.w3.org/ns/oa-context-20130208.json
@@ -1273,7 +1267,7 @@ http_interactions:
1273
1267
  message: Temporary Redirect
1274
1268
  headers:
1275
1269
  Date:
1276
- - Fri, 19 Jun 2015 18:40:12 GMT
1270
+ - Mon, 03 Aug 2015 22:12:27 GMT
1277
1271
  Server:
1278
1272
  - Apache/2
1279
1273
  Location:
@@ -1281,7 +1275,7 @@ http_interactions:
1281
1275
  Cache-Control:
1282
1276
  - max-age=21600
1283
1277
  Expires:
1284
- - Sat, 20 Jun 2015 00:40:12 GMT
1278
+ - Tue, 04 Aug 2015 04:12:27 GMT
1285
1279
  Content-Length:
1286
1280
  - '240'
1287
1281
  Content-Type:
@@ -1297,7 +1291,7 @@ http_interactions:
1297
1291
  <p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
1298
1292
  </body></html>
1299
1293
  http_version:
1300
- recorded_at: Fri, 19 Jun 2015 18:40:12 GMT
1294
+ recorded_at: Mon, 03 Aug 2015 22:12:27 GMT
1301
1295
  - request:
1302
1296
  method: get
1303
1297
  uri: http://www.w3.org/ns/oa.jsonld
@@ -1319,7 +1313,7 @@ http_interactions:
1319
1313
  message: OK
1320
1314
  headers:
1321
1315
  Date:
1322
- - Fri, 19 Jun 2015 18:40:12 GMT
1316
+ - Mon, 03 Aug 2015 22:12:28 GMT
1323
1317
  Server:
1324
1318
  - Apache/2
1325
1319
  Last-Modified:
@@ -1333,7 +1327,7 @@ http_interactions:
1333
1327
  Cache-Control:
1334
1328
  - max-age=21600
1335
1329
  Expires:
1336
- - Sat, 20 Jun 2015 00:40:12 GMT
1330
+ - Tue, 04 Aug 2015 04:12:28 GMT
1337
1331
  P3p:
1338
1332
  - policyref="http://www.w3.org/2014/08/p3p.xml"
1339
1333
  Access-Control-Allow-Origin:
@@ -2451,52 +2445,5 @@ http_interactions:
2451
2445
 
2452
2446
 
2453
2447
  http_version:
2454
- recorded_at: Fri, 19 Jun 2015 18:40:12 GMT
2455
- - request:
2456
- method: delete
2457
- uri: http://localhost:3000/annotations/foo/35%2Fa5%2Fc2%2F6f%2F35a5c26f-a9ca-4f45-bf4c-0c5c88b28058
2458
- body:
2459
- encoding: US-ASCII
2460
- string: ''
2461
- headers:
2462
- Accept:
2463
- - "*/*; q=0.5, application/xml"
2464
- Accept-Encoding:
2465
- - gzip, deflate
2466
- User-Agent:
2467
- - Ruby
2468
- response:
2469
- status:
2470
- code: 204
2471
- message: 'No Content '
2472
- headers:
2473
- X-Frame-Options:
2474
- - SAMEORIGIN
2475
- X-Xss-Protection:
2476
- - 1; mode=block
2477
- X-Content-Type-Options:
2478
- - nosniff
2479
- Location:
2480
- - http://localhost:3000/annotations?anno_root=foo
2481
- Cache-Control:
2482
- - no-cache
2483
- X-Request-Id:
2484
- - b2bb403a-c416-4e9e-82df-b79ca3edd6b3
2485
- X-Runtime:
2486
- - '0.200175'
2487
- Server:
2488
- - WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
2489
- Date:
2490
- - Fri, 19 Jun 2015 18:40:13 GMT
2491
- Connection:
2492
- - Keep-Alive
2493
- Set-Cookie:
2494
- - _internal_session=dUlmL1FXSUxEMEZSK0lwV1Vpb2hSK0kwZWtMUGN1SVBKS2Z5dEo5Sml2YWErb0g0dlg1ZzM3eFJLWlpnd0hPK21HQi9WYWo2UHNPNUV1SVZRZ1RRVU5leXpDQzFnRUhLMkNUZ3o4bE9OVWE4c1JKLzRWdG9kSUl5cnBoYzgzdGpIdk5sTC9FRk94ZFhJYjFWR05qSndBZUhyMmp5ZjhIMWFoMDdwYkN5YkJrczRqbzFKdW1ienkzTWtnYmxZclg0LS1ubVlNcVRMd0c5UndTRldlNUJzb0xRPT0%3D--41a279e41cd391b204be5d8fd7bf040ca91d7a38;
2495
- path=/; HttpOnly
2496
- - request_method=DELETE; path=/
2497
- body:
2498
- encoding: UTF-8
2499
- string: ''
2500
- http_version:
2501
- recorded_at: Fri, 19 Jun 2015 18:40:13 GMT
2448
+ recorded_at: Mon, 03 Aug 2015 22:12:28 GMT
2502
2449
  recorded_with: VCR 2.9.3