triannon-client 0.2.0.pre.0.rc1 → 0.2.1.pre.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env_example +1 -0
- data/bin/console +7 -1
- data/lib/triannon-client/configuration.rb +3 -0
- data/lib/triannon-client/triannon_client.rb +27 -11
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/cannot_get_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +78 -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_application/n-triples_.yml +78 -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_application/rdf_json_.yml +78 -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_application/rdf_n3_.yml +78 -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_application/trig_.yml +78 -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_application/trix_.yml +78 -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_application/turtle_.yml +78 -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_application/x-ld_json_.yml +78 -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_application/x-trig_.yml +78 -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/n3_.yml +78 -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_n3_.yml +78 -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 +78 -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/x-nquads_.yml +78 -78
- 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 +51 -51
- 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 +46 -46
- 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 +45 -45
- 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 +45 -45
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/ld_json_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/n-quads_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/n-triples_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_json_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_n3_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/rdf_xml_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/trig_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/trix_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/turtle_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-ld_json_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-trig_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_application/x-turtle_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/n3_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/rdf_n3_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/rdf_turtle_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/turtle_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_with_content_type_text/x-nquads_.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/checks_the_annotation_ID.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/logs_exceptions.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_a_nil_ID.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_empty_string_ID.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/raises_an_argument_error_with_an_integer_ID.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/requests_an_open_annotation_by_ID_accepting_a_default_JSON-LD_content.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_EMPTY_RDF_graph_for_a_500_server_response.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/without_content_type/returns_an_EMPTY_RDF_graph_with_a_valid_ID_for_NO_annotation_on_the_server.yml +85 -498
- 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 +51 -51
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/requests_an_open_annotation_by_ID_using_a_IIIF_profile.yml +29 -273
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_iiif_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +45 -45
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/requests_an_open_annotation_by_ID_using_an_OA_profile.yml +29 -2473
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_oa_annotation/returns_an_RDF_Graph_of_an_open_annotation.yml +51 -51
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/deletes_an_open_annotation_that_exists.yml +39 -38
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/fails_to_delete_an_open_annotation_that_does_NOT_exist.yml +10 -10
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_false_for_a_500_response_to_a_DELETE_request.yml +5 -5
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_200_response_to_a_DELETE_request.yml +5 -5
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_202_response_to_a_DELETE_request.yml +5 -5
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/returns_true_for_a_204_response_to_a_DELETE_request.yml +5 -5
- data/spec/fixtures/vcr_cassettes/TriannonClient/_delete_annotation/validates_the_annotation_ID.yml +5 -5
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph.yml +17 -17
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_RDF_Graph_that_contains_an_AnnotationList.yml +17 -17
- data/spec/fixtures/vcr_cassettes/TriannonClient/_get_annotations/returns_an_annotation_list_with_an_annotation_created_by_a_prior_POST.yml +49 -49
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/does_not_raise_an_error_when_submitting_a_valid_open_annotation.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/_post_annotation/returns_a_RestClient_Response_object.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_from_the_RDF_URI_of_an_annotation.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_id/returns_a_String_ID_that_is_not_empty.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uri/returns_an_RDF_URI_from_an_RDF_Graph_of_an_annotation.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_annotation_uri/returns_an_RDF_URI_that_is_a_valid_URI.yml +39 -38
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/accepts_a_RestClient_Response_instance.yml +41 -41
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_an_empty_String.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/raises_ArgumentError_when_given_nil.yml +29 -29
- data/spec/fixtures/vcr_cassettes/TriannonClient/response_processing_utilities/_response2graph/returns_an_RDF_Graph.yml +29 -29
- data/spec/lib/triannon-client/configuration_spec.rb +18 -2
- data/spec/lib/triannon-client/triannon_client_spec.rb +14 -6
- data/triannon-client.gemspec +3 -4
- metadata +10 -76
- 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/n-quads_.yml +0 -4088
- 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/n-triples_.yml +0 -4088
- 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_json_.yml +0 -4088
- 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_n3_.yml +0 -4088
- 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/trig_.yml +0 -4088
- 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/trix_.yml +0 -4088
- 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/turtle_.yml +0 -4088
- 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-ld_json_.yml +0 -4088
- 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-trig_.yml +0 -4088
- 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/n3_.yml +0 -4088
- 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/rdf_n3_.yml +0 -4088
- 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/rdf_turtle_.yml +0 -4088
- 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/x-nquads_.yml +0 -4088
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_content_type/requests_an_open_annotation_by_ID_accepting_JSON-LD_content.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_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/with_content_type/requests_an_open_annotation_by_ID_using_a_default_JSON-LD_content.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_optional_content_type_parameter.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_turtle_content_type_parameter.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/checks_the_annotation_ID.yml +0 -2561
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/logs_exceptions.yml +0 -2502
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_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/with_no_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/with_no_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/with_no_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/with_no_content_type/returns_an_EMPTY_RDF_graph_with_a_valid_ID_for_NO_annotation_on_the_server.yml +0 -3623
- data/spec/fixtures/vcr_cassettes/TriannonClient/GET_annotation_by_ID_/_get_annotation/with_no_content_type/returns_an_RDF_graph_with_a_valid_ID_for_an_annotation_on_the_server.yml +0 -4946
@@ -31,31 +31,31 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/ld+json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"0c68ed329db1999243dd13d22fb8653a"
|
35
35
|
Cache-Control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- afa47481-d8fc-44cc-a16e-6523c9b70b09
|
39
39
|
X-Runtime:
|
40
|
-
- '1.
|
40
|
+
- '1.421647'
|
41
41
|
Server:
|
42
|
-
- WEBrick/1.3.1 (Ruby/2.
|
42
|
+
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
43
43
|
Date:
|
44
|
-
- Mon,
|
44
|
+
- Mon, 11 May 2015 21:28:26 GMT
|
45
45
|
Content-Length:
|
46
|
-
- '
|
46
|
+
- '443'
|
47
47
|
Connection:
|
48
48
|
- Keep-Alive
|
49
49
|
Set-Cookie:
|
50
|
-
- _internal_session=
|
50
|
+
- _internal_session=WnFqOFNSWFdVWjhjUmMxRS9paXhLR3BSRlVUdmhhazRnY3doMVlmenZ6RFdBYXp0ejZqYmVQUFpQaVg3ZXFPcW1oMDVEdUNzbzZLbDZIc0s1akhObVhhak5MMmtCdDZGVzlLdUlMeEVybHVtVldyMk1qM0xHeGF6MjZ5dEpMTnhsVnJ0TWNDaldGMGJOWVpzcm9tNWVpS05COHU0V2p1NjU3NDNPWXJEYm5vMFdIcThyQ3BBeWZiMXE4d01hVXRQWHM4dmMvVXRScGxEeUNOMUhqVmc3MEdUYlVSbjBEUkhjWGxJcmx0U3VjQ1pzYndVc2JLM3VydTRFNG9TSUFLcS0tTlNJZWp5aXhYRm8wK3FrNkZuQUg0Zz09--e19361591fdd2f830e062e0a36a2ba35561d92a4;
|
51
51
|
path=/; HttpOnly
|
52
52
|
- request_method=POST; path=/
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
|
-
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:
|
56
|
-
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/
|
55
|
+
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g69902323328760","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
56
|
+
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/c1/89/77/98/c1897798-2584-4e95-a668-ffd1957a3a21","@type":"oa:Annotation","hasBody":"_:g69902323328760","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
|
57
57
|
http_version:
|
58
|
-
recorded_at: Mon,
|
58
|
+
recorded_at: Mon, 11 May 2015 21:28:26 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
61
61
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
message: Temporary Redirect
|
76
76
|
headers:
|
77
77
|
Date:
|
78
|
-
- Mon,
|
78
|
+
- Mon, 11 May 2015 21:28:26 GMT
|
79
79
|
Server:
|
80
80
|
- Apache/2
|
81
81
|
Location:
|
@@ -83,7 +83,7 @@ http_interactions:
|
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=21600
|
85
85
|
Expires:
|
86
|
-
- Tue,
|
86
|
+
- Tue, 12 May 2015 03:28:26 GMT
|
87
87
|
Content-Length:
|
88
88
|
- '240'
|
89
89
|
Content-Type:
|
@@ -99,7 +99,7 @@ http_interactions:
|
|
99
99
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
100
100
|
</body></html>
|
101
101
|
http_version:
|
102
|
-
recorded_at: Mon,
|
102
|
+
recorded_at: Mon, 11 May 2015 21:28:26 GMT
|
103
103
|
- request:
|
104
104
|
method: get
|
105
105
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -121,7 +121,7 @@ http_interactions:
|
|
121
121
|
message: OK
|
122
122
|
headers:
|
123
123
|
Date:
|
124
|
-
- Mon,
|
124
|
+
- Mon, 11 May 2015 21:28:26 GMT
|
125
125
|
Server:
|
126
126
|
- Apache/2
|
127
127
|
Last-Modified:
|
@@ -135,7 +135,7 @@ http_interactions:
|
|
135
135
|
Cache-Control:
|
136
136
|
- max-age=21600
|
137
137
|
Expires:
|
138
|
-
- Tue,
|
138
|
+
- Tue, 12 May 2015 03:28:26 GMT
|
139
139
|
P3p:
|
140
140
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
141
141
|
Access-Control-Allow-Origin:
|
@@ -1253,7 +1253,7 @@ http_interactions:
|
|
1253
1253
|
|
1254
1254
|
|
1255
1255
|
http_version:
|
1256
|
-
recorded_at: Mon,
|
1256
|
+
recorded_at: Mon, 11 May 2015 21:28:26 GMT
|
1257
1257
|
- request:
|
1258
1258
|
method: get
|
1259
1259
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -1273,7 +1273,7 @@ http_interactions:
|
|
1273
1273
|
message: Temporary Redirect
|
1274
1274
|
headers:
|
1275
1275
|
Date:
|
1276
|
-
- Mon,
|
1276
|
+
- Mon, 11 May 2015 21:28:26 GMT
|
1277
1277
|
Server:
|
1278
1278
|
- Apache/2
|
1279
1279
|
Location:
|
@@ -1281,7 +1281,7 @@ http_interactions:
|
|
1281
1281
|
Cache-Control:
|
1282
1282
|
- max-age=21600
|
1283
1283
|
Expires:
|
1284
|
-
- Tue,
|
1284
|
+
- Tue, 12 May 2015 03:28:26 GMT
|
1285
1285
|
Content-Length:
|
1286
1286
|
- '240'
|
1287
1287
|
Content-Type:
|
@@ -1297,7 +1297,7 @@ http_interactions:
|
|
1297
1297
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
1298
1298
|
</body></html>
|
1299
1299
|
http_version:
|
1300
|
-
recorded_at: Mon,
|
1300
|
+
recorded_at: Mon, 11 May 2015 21:28:26 GMT
|
1301
1301
|
- request:
|
1302
1302
|
method: get
|
1303
1303
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -1319,7 +1319,7 @@ http_interactions:
|
|
1319
1319
|
message: OK
|
1320
1320
|
headers:
|
1321
1321
|
Date:
|
1322
|
-
- Mon,
|
1322
|
+
- Mon, 11 May 2015 21:28:26 GMT
|
1323
1323
|
Server:
|
1324
1324
|
- Apache/2
|
1325
1325
|
Last-Modified:
|
@@ -1333,7 +1333,7 @@ http_interactions:
|
|
1333
1333
|
Cache-Control:
|
1334
1334
|
- max-age=21600
|
1335
1335
|
Expires:
|
1336
|
-
- Tue,
|
1336
|
+
- Tue, 12 May 2015 03:28:26 GMT
|
1337
1337
|
P3p:
|
1338
1338
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
1339
1339
|
Access-Control-Allow-Origin:
|
@@ -2451,10 +2451,10 @@ http_interactions:
|
|
2451
2451
|
|
2452
2452
|
|
2453
2453
|
http_version:
|
2454
|
-
recorded_at: Mon,
|
2454
|
+
recorded_at: Mon, 11 May 2015 21:28:27 GMT
|
2455
2455
|
- request:
|
2456
2456
|
method: get
|
2457
|
-
uri: http://localhost:3000/annotations/
|
2457
|
+
uri: http://localhost:3000/annotations/c1%2F89%2F77%2F98%2Fc1897798-2584-4e95-a668-ffd1957a3a21
|
2458
2458
|
body:
|
2459
2459
|
encoding: US-ASCII
|
2460
2460
|
string: ''
|
@@ -2479,46 +2479,46 @@ http_interactions:
|
|
2479
2479
|
Content-Type:
|
2480
2480
|
- application/x-turtle; charset=utf-8
|
2481
2481
|
Etag:
|
2482
|
-
- W/"
|
2482
|
+
- W/"9464f9ae0daea706bd05a6dd55047e94"
|
2483
2483
|
Cache-Control:
|
2484
2484
|
- max-age=0, private, must-revalidate
|
2485
2485
|
X-Request-Id:
|
2486
|
-
-
|
2486
|
+
- df157424-b9f4-4a00-a8c5-36463e6a7ae4
|
2487
2487
|
X-Runtime:
|
2488
|
-
- '0.
|
2488
|
+
- '0.167693'
|
2489
2489
|
Server:
|
2490
|
-
- WEBrick/1.3.1 (Ruby/2.
|
2490
|
+
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2491
2491
|
Date:
|
2492
|
-
- Mon,
|
2492
|
+
- Mon, 11 May 2015 21:28:27 GMT
|
2493
2493
|
Content-Length:
|
2494
|
-
- '
|
2494
|
+
- '663'
|
2495
2495
|
Connection:
|
2496
2496
|
- Keep-Alive
|
2497
2497
|
body:
|
2498
2498
|
encoding: UTF-8
|
2499
2499
|
string: |
|
2500
|
-
@prefix
|
2500
|
+
@prefix cnt: <http://www.w3.org/2011/content#> .
|
2501
2501
|
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
|
2502
2502
|
@prefix dcmitype: <http://purl.org/dc/dcmitype/> .
|
2503
|
-
@prefix
|
2503
|
+
@prefix oa: <http://www.w3.org/ns/oa#> .
|
2504
2504
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
2505
2505
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
2506
2506
|
|
2507
|
-
<http://your.triannon-server.com/annotations/
|
2508
|
-
|
2507
|
+
<http://your.triannon-server.com/annotations/c1/89/77/98/c1897798-2584-4e95-a668-ffd1957a3a21> a oa:Annotation;
|
2508
|
+
oa:hasBody [
|
2509
2509
|
a dcmitype:Text,
|
2510
|
-
|
2510
|
+
cnt:ContentAsText;
|
2511
2511
|
dc11:format "text/plain";
|
2512
2512
|
dc11:language "en";
|
2513
|
-
|
2513
|
+
cnt:chars "I love this!"
|
2514
2514
|
];
|
2515
|
-
|
2516
|
-
|
2515
|
+
oa:hasTarget <http://purl.stanford.edu/kq131cs7229>;
|
2516
|
+
oa:motivatedBy oa:commenting .
|
2517
2517
|
http_version:
|
2518
|
-
recorded_at: Mon,
|
2518
|
+
recorded_at: Mon, 11 May 2015 21:28:27 GMT
|
2519
2519
|
- request:
|
2520
2520
|
method: delete
|
2521
|
-
uri: http://localhost:3000/annotations/
|
2521
|
+
uri: http://localhost:3000/annotations/c1%2F89%2F77%2F98%2Fc1897798-2584-4e95-a668-ffd1957a3a21
|
2522
2522
|
body:
|
2523
2523
|
encoding: US-ASCII
|
2524
2524
|
string: ''
|
@@ -2545,22 +2545,22 @@ http_interactions:
|
|
2545
2545
|
Cache-Control:
|
2546
2546
|
- no-cache
|
2547
2547
|
X-Request-Id:
|
2548
|
-
-
|
2548
|
+
- 0f538958-b9b2-40c6-93ae-1a9c467b2944
|
2549
2549
|
X-Runtime:
|
2550
|
-
- '0.
|
2550
|
+
- '0.194128'
|
2551
2551
|
Server:
|
2552
|
-
- WEBrick/1.3.1 (Ruby/2.
|
2552
|
+
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2553
2553
|
Date:
|
2554
|
-
- Mon,
|
2554
|
+
- Mon, 11 May 2015 21:28:27 GMT
|
2555
2555
|
Connection:
|
2556
2556
|
- Keep-Alive
|
2557
2557
|
Set-Cookie:
|
2558
|
-
- _internal_session=
|
2558
|
+
- _internal_session=aklpSDE1eVBZVTROVWM5TjZYL2N6V3luMysrMExtM3lpZS9aRnM3cE5ZOUxUemdYZDRLZ1FNUXBhTXZrWHZnMjZMM3kyMWh3clVTOW1aNlVxYWQ4V1RHVUI1VGFCV0hEVE9HZ0JSZkh4ZGhBSzVFTW1BTlY0L0ZjOW5xb2E1WXRuTlJGTCtBVnVCWUxVRDhNTTVpSHVGb0pxOXFweDBxd2gwZGNzL0p0dXpTVHRmZHJidEFYb1pQckorbUNaWDNzLS1yKzYrV0Qwc0UzeWd6UFIycEtjcUR3PT0%3D--05953629d8c88c4c07367e83be39051b5902587e;
|
2559
2559
|
path=/; HttpOnly
|
2560
2560
|
- request_method=DELETE; path=/
|
2561
2561
|
body:
|
2562
2562
|
encoding: UTF-8
|
2563
2563
|
string: ''
|
2564
2564
|
http_version:
|
2565
|
-
recorded_at: Mon,
|
2565
|
+
recorded_at: Mon, 11 May 2015 21:28:27 GMT
|
2566
2566
|
recorded_with: VCR 2.9.3
|
@@ -31,31 +31,31 @@ http_interactions:
|
|
31
31
|
Content-Type:
|
32
32
|
- application/ld+json; charset=utf-8
|
33
33
|
Etag:
|
34
|
-
- W/"
|
34
|
+
- W/"c774516979d06c728ab2ec64ada2af6c"
|
35
35
|
Cache-Control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
X-Request-Id:
|
38
|
-
-
|
38
|
+
- fb35af07-33b3-4373-9c01-b67111d969cc
|
39
39
|
X-Runtime:
|
40
|
-
- '
|
40
|
+
- '1.453402'
|
41
41
|
Server:
|
42
|
-
- WEBrick/1.3.1 (Ruby/2.
|
42
|
+
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
43
43
|
Date:
|
44
|
-
- Mon,
|
44
|
+
- Mon, 11 May 2015 21:27:58 GMT
|
45
45
|
Content-Length:
|
46
|
-
- '
|
46
|
+
- '443'
|
47
47
|
Connection:
|
48
48
|
- Keep-Alive
|
49
49
|
Set-Cookie:
|
50
|
-
- _internal_session=
|
50
|
+
- _internal_session=UUtWN2drS0pYSGllc2lJQXRNbENGVlAwcURXUjZpNW43OHJDbDF2UW8rc3NxdlhXUVd3dVNMbU1IN1J2K1JlNjg3N1FSNysxS2JDcTNQNG1FT21Na0pYbjYxdEpjbU9jQkwxczJGRVFwNEprSjRuQzFxRVdZVnNhZVllN1dESnpRWHVtSndPbGNVL1R6TThLMWw3NTBld0VQbGdkMUFpMGRReHlTZlJPb1hYS21jcFhVeDdieGJSY05Vdm1CSitIN05jZ3RReXcyM0RHRHhsK3ZiS2ErS2NWWWcwSTJpM2Zuc000VHdhenZKbEhSaTZNWUtyZGprZENxVmxrQ1NjeS0tZXI4ejR2Rlc2SVJ4TmJjZXVEMm1BQT09--f5d4f8deb268f45e534d925b47832764304c7711;
|
51
51
|
path=/; HttpOnly
|
52
52
|
- request_method=POST; path=/
|
53
53
|
body:
|
54
54
|
encoding: UTF-8
|
55
|
-
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:
|
56
|
-
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/
|
55
|
+
string: '{"@context":"http://www.w3.org/ns/oa-context-20130208.json","@graph":[{"@id":"_:g69902320305180","@type":["dctypes:Text","cnt:ContentAsText"],"chars":"I
|
56
|
+
love this!","format":"text/plain","language":"en"},{"@id":"http://your.triannon-server.com/annotations/61/44/dd/07/6144dd07-78ba-4510-9c76-238470191a2e","@type":"oa:Annotation","hasBody":"_:g69902320305180","hasTarget":"http://purl.stanford.edu/kq131cs7229","motivatedBy":"oa:commenting"}]}'
|
57
57
|
http_version:
|
58
|
-
recorded_at: Mon,
|
58
|
+
recorded_at: Mon, 11 May 2015 21:27:58 GMT
|
59
59
|
- request:
|
60
60
|
method: get
|
61
61
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
message: Temporary Redirect
|
76
76
|
headers:
|
77
77
|
Date:
|
78
|
-
- Mon,
|
78
|
+
- Mon, 11 May 2015 21:27:58 GMT
|
79
79
|
Server:
|
80
80
|
- Apache/2
|
81
81
|
Location:
|
@@ -83,7 +83,7 @@ http_interactions:
|
|
83
83
|
Cache-Control:
|
84
84
|
- max-age=21600
|
85
85
|
Expires:
|
86
|
-
- Tue,
|
86
|
+
- Tue, 12 May 2015 03:27:58 GMT
|
87
87
|
Content-Length:
|
88
88
|
- '240'
|
89
89
|
Content-Type:
|
@@ -99,7 +99,7 @@ http_interactions:
|
|
99
99
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
100
100
|
</body></html>
|
101
101
|
http_version:
|
102
|
-
recorded_at: Mon,
|
102
|
+
recorded_at: Mon, 11 May 2015 21:27:58 GMT
|
103
103
|
- request:
|
104
104
|
method: get
|
105
105
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -121,7 +121,7 @@ http_interactions:
|
|
121
121
|
message: OK
|
122
122
|
headers:
|
123
123
|
Date:
|
124
|
-
- Mon,
|
124
|
+
- Mon, 11 May 2015 21:27:58 GMT
|
125
125
|
Server:
|
126
126
|
- Apache/2
|
127
127
|
Last-Modified:
|
@@ -135,7 +135,7 @@ http_interactions:
|
|
135
135
|
Cache-Control:
|
136
136
|
- max-age=21600
|
137
137
|
Expires:
|
138
|
-
- Tue,
|
138
|
+
- Tue, 12 May 2015 03:27:58 GMT
|
139
139
|
P3p:
|
140
140
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
141
141
|
Access-Control-Allow-Origin:
|
@@ -1253,7 +1253,7 @@ http_interactions:
|
|
1253
1253
|
|
1254
1254
|
|
1255
1255
|
http_version:
|
1256
|
-
recorded_at: Mon,
|
1256
|
+
recorded_at: Mon, 11 May 2015 21:27:59 GMT
|
1257
1257
|
- request:
|
1258
1258
|
method: get
|
1259
1259
|
uri: http://www.w3.org/ns/oa-context-20130208.json
|
@@ -1273,7 +1273,7 @@ http_interactions:
|
|
1273
1273
|
message: Temporary Redirect
|
1274
1274
|
headers:
|
1275
1275
|
Date:
|
1276
|
-
- Mon,
|
1276
|
+
- Mon, 11 May 2015 21:27:59 GMT
|
1277
1277
|
Server:
|
1278
1278
|
- Apache/2
|
1279
1279
|
Location:
|
@@ -1281,7 +1281,7 @@ http_interactions:
|
|
1281
1281
|
Cache-Control:
|
1282
1282
|
- max-age=21600
|
1283
1283
|
Expires:
|
1284
|
-
- Tue,
|
1284
|
+
- Tue, 12 May 2015 03:27:59 GMT
|
1285
1285
|
Content-Length:
|
1286
1286
|
- '240'
|
1287
1287
|
Content-Type:
|
@@ -1297,7 +1297,7 @@ http_interactions:
|
|
1297
1297
|
<p>The document has moved <a href="http://www.w3.org/ns/oa.jsonld">here</a>.</p>
|
1298
1298
|
</body></html>
|
1299
1299
|
http_version:
|
1300
|
-
recorded_at: Mon,
|
1300
|
+
recorded_at: Mon, 11 May 2015 21:27:59 GMT
|
1301
1301
|
- request:
|
1302
1302
|
method: get
|
1303
1303
|
uri: http://www.w3.org/ns/oa.jsonld
|
@@ -1319,7 +1319,7 @@ http_interactions:
|
|
1319
1319
|
message: OK
|
1320
1320
|
headers:
|
1321
1321
|
Date:
|
1322
|
-
- Mon,
|
1322
|
+
- Mon, 11 May 2015 21:27:59 GMT
|
1323
1323
|
Server:
|
1324
1324
|
- Apache/2
|
1325
1325
|
Last-Modified:
|
@@ -1333,7 +1333,7 @@ http_interactions:
|
|
1333
1333
|
Cache-Control:
|
1334
1334
|
- max-age=21600
|
1335
1335
|
Expires:
|
1336
|
-
- Tue,
|
1336
|
+
- Tue, 12 May 2015 03:27:59 GMT
|
1337
1337
|
P3p:
|
1338
1338
|
- policyref="http://www.w3.org/2014/08/p3p.xml"
|
1339
1339
|
Access-Control-Allow-Origin:
|
@@ -2451,10 +2451,10 @@ http_interactions:
|
|
2451
2451
|
|
2452
2452
|
|
2453
2453
|
http_version:
|
2454
|
-
recorded_at: Mon,
|
2454
|
+
recorded_at: Mon, 11 May 2015 21:27:59 GMT
|
2455
2455
|
- request:
|
2456
2456
|
method: get
|
2457
|
-
uri: http://localhost:3000/annotations/
|
2457
|
+
uri: http://localhost:3000/annotations/61%2F44%2Fdd%2F07%2F6144dd07-78ba-4510-9c76-238470191a2e
|
2458
2458
|
body:
|
2459
2459
|
encoding: US-ASCII
|
2460
2460
|
string: ''
|
@@ -2479,46 +2479,46 @@ http_interactions:
|
|
2479
2479
|
Content-Type:
|
2480
2480
|
- text/turtle; charset=utf-8
|
2481
2481
|
Etag:
|
2482
|
-
- W/"
|
2482
|
+
- W/"dcf0e35e9225de03ce2f457e62b7e28f"
|
2483
2483
|
Cache-Control:
|
2484
2484
|
- max-age=0, private, must-revalidate
|
2485
2485
|
X-Request-Id:
|
2486
|
-
-
|
2486
|
+
- 9c6f6b0c-d59d-490b-a329-8d03d2c6cc9d
|
2487
2487
|
X-Runtime:
|
2488
|
-
- '0.
|
2488
|
+
- '0.125556'
|
2489
2489
|
Server:
|
2490
|
-
- WEBrick/1.3.1 (Ruby/2.
|
2490
|
+
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2491
2491
|
Date:
|
2492
|
-
- Mon,
|
2492
|
+
- Mon, 11 May 2015 21:27:59 GMT
|
2493
2493
|
Content-Length:
|
2494
|
-
- '
|
2494
|
+
- '663'
|
2495
2495
|
Connection:
|
2496
2496
|
- Keep-Alive
|
2497
2497
|
body:
|
2498
2498
|
encoding: UTF-8
|
2499
2499
|
string: |
|
2500
|
-
@prefix
|
2500
|
+
@prefix cnt: <http://www.w3.org/2011/content#> .
|
2501
2501
|
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
|
2502
2502
|
@prefix dcmitype: <http://purl.org/dc/dcmitype/> .
|
2503
|
-
@prefix
|
2503
|
+
@prefix oa: <http://www.w3.org/ns/oa#> .
|
2504
2504
|
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
2505
2505
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
2506
2506
|
|
2507
|
-
<http://your.triannon-server.com/annotations/
|
2508
|
-
|
2507
|
+
<http://your.triannon-server.com/annotations/61/44/dd/07/6144dd07-78ba-4510-9c76-238470191a2e> a oa:Annotation;
|
2508
|
+
oa:hasBody [
|
2509
2509
|
a dcmitype:Text,
|
2510
|
-
|
2510
|
+
cnt:ContentAsText;
|
2511
2511
|
dc11:format "text/plain";
|
2512
2512
|
dc11:language "en";
|
2513
|
-
|
2513
|
+
cnt:chars "I love this!"
|
2514
2514
|
];
|
2515
|
-
|
2516
|
-
|
2515
|
+
oa:hasTarget <http://purl.stanford.edu/kq131cs7229>;
|
2516
|
+
oa:motivatedBy oa:commenting .
|
2517
2517
|
http_version:
|
2518
|
-
recorded_at: Mon,
|
2518
|
+
recorded_at: Mon, 11 May 2015 21:27:59 GMT
|
2519
2519
|
- request:
|
2520
2520
|
method: delete
|
2521
|
-
uri: http://localhost:3000/annotations/
|
2521
|
+
uri: http://localhost:3000/annotations/61%2F44%2Fdd%2F07%2F6144dd07-78ba-4510-9c76-238470191a2e
|
2522
2522
|
body:
|
2523
2523
|
encoding: US-ASCII
|
2524
2524
|
string: ''
|
@@ -2545,22 +2545,22 @@ http_interactions:
|
|
2545
2545
|
Cache-Control:
|
2546
2546
|
- no-cache
|
2547
2547
|
X-Request-Id:
|
2548
|
-
-
|
2548
|
+
- 24df86b0-4790-4259-b5ac-5359c39eb871
|
2549
2549
|
X-Runtime:
|
2550
|
-
- '0.
|
2550
|
+
- '0.241909'
|
2551
2551
|
Server:
|
2552
|
-
- WEBrick/1.3.1 (Ruby/2.
|
2552
|
+
- WEBrick/1.3.1 (Ruby/2.2.2/2015-04-13)
|
2553
2553
|
Date:
|
2554
|
-
- Mon,
|
2554
|
+
- Mon, 11 May 2015 21:28:00 GMT
|
2555
2555
|
Connection:
|
2556
2556
|
- Keep-Alive
|
2557
2557
|
Set-Cookie:
|
2558
|
-
- _internal_session=
|
2558
|
+
- _internal_session=MXJiUlM5VlBLRTBIblA2bzBId0tINzBCR1RlYmtHTjJCb09salU0WUhKS2x5U0krZG9wOUQzdW13cFZieG1sbjNZS3oxbnJqTzJTTnpUMC9mM0xFa0VXOUF2KzdQWkhuVnlrakJyYUJzUmM5U2Z6RXZReS9uazlhYnNMb0Q4MnBNRGsyOE45eVRObkE4bWI5TnFPWURFUHlKd0JyMUd4WDJ3UDh6SGdMb0NUUktta0F1OGJQa0o1REtuK09IcEhnLS0xaC9Wb3hFbXYyWjlUQTNRazlyRWZRPT0%3D--aff342ea3d7d0fe3e0af42c4ee95a2a024eeb58a;
|
2559
2559
|
path=/; HttpOnly
|
2560
2560
|
- request_method=DELETE; path=/
|
2561
2561
|
body:
|
2562
2562
|
encoding: UTF-8
|
2563
2563
|
string: ''
|
2564
2564
|
http_version:
|
2565
|
-
recorded_at: Mon,
|
2565
|
+
recorded_at: Mon, 11 May 2015 21:28:00 GMT
|
2566
2566
|
recorded_with: VCR 2.9.3
|