@@ -79,7 +79,7 @@ public void getGraphStoreProtocolWithGraph() throws Exception {
79
79
headers .add (acceptHeader );
80
80
81
81
String urlQuery = GRAPH_STORE_ENDPOINT + "?" + SPARQLTestUtils .generateGraphStoreParameters ("http://example.com/A" );
82
- HttpURLConnection con = SPARQLTestUtils .getConnection (urlQuery , headers );
82
+ HttpURLConnection con = HTTPConnectionUtils .getConnection (urlQuery , headers );
83
83
84
84
BufferedReader in = new BufferedReader (
85
85
new InputStreamReader (con .getInputStream ()));
@@ -112,7 +112,7 @@ public void getGraphStoreProtocolWithDefault() throws Exception{
112
112
headers .add (acceptHeader );
113
113
114
114
String urlQuery = GRAPH_STORE_ENDPOINT + "?" + SPARQLTestUtils .generateGraphStoreParameters ("default" );
115
- HttpURLConnection con = SPARQLTestUtils .getConnection (urlQuery , headers );
115
+ HttpURLConnection con = HTTPConnectionUtils .getConnection (urlQuery , headers );
116
116
117
117
BufferedReader in = new BufferedReader (
118
118
new InputStreamReader (con .getInputStream ()));
@@ -147,7 +147,7 @@ public void getGraphStoreProtocolWithUnknownGraph() throws Exception{
147
147
headers .add (acceptHeader );
148
148
149
149
String urlQuery = GRAPH_STORE_ENDPOINT + "?" + SPARQLTestUtils .generateGraphStoreParameters ("http://example.com/Z" );
150
- HttpURLConnection con = SPARQLTestUtils .getConnection (urlQuery , headers );
150
+ HttpURLConnection con = HTTPConnectionUtils .getConnection (urlQuery , headers );
151
151
152
152
BufferedReader in = new BufferedReader (
153
153
new InputStreamReader (con .getInputStream ()));
@@ -186,7 +186,7 @@ public void putGraphStoreProtocolNewGraph() throws Exception {
186
186
187
187
String rdfPayload = "@prefix ex: <http://example.com/> . ex:C a ex:Thing ." ;
188
188
189
- HttpURLConnection con = SPARQLTestUtils .putConnection (urlQuery , headers , rdfPayload );
189
+ HttpURLConnection con = HTTPConnectionUtils .putConnection (urlQuery , headers , rdfPayload );
190
190
191
191
int status = con .getResponseCode ();
192
192
@@ -214,7 +214,7 @@ public void putGraphStoreProtocolExistingGraph() throws Exception {
214
214
215
215
String rdfPayload = "@prefix ex: <http://example.com/> . ex:C a ex:Thing ." ;
216
216
217
- HttpURLConnection con = SPARQLTestUtils .putConnection (urlQuery , headers , rdfPayload );
217
+ HttpURLConnection con = HTTPConnectionUtils .putConnection (urlQuery , headers , rdfPayload );
218
218
219
219
int status = con .getResponseCode ();
220
220
@@ -233,7 +233,7 @@ public void deleteGraphStoreProtocol() throws Exception {
233
233
boolean presenceTest = SPARQLTestUtils .sendSPARQLAsk ("ASK { GRAPH <http://example.com/B> { ?s ?p ?o } }" );
234
234
235
235
String urlQuery = GRAPH_STORE_ENDPOINT + "?" + SPARQLTestUtils .generateGraphStoreParameters ("http://example.com/B" );
236
- HttpURLConnection deleteCon = SPARQLTestUtils .deleteConnection (urlQuery );
236
+ HttpURLConnection deleteCon = HTTPConnectionUtils .deleteConnection (urlQuery );
237
237
238
238
int status = deleteCon .getResponseCode ();
239
239
@@ -252,7 +252,7 @@ public void deleteGraphStoreProtocolWithUnknownGraph() throws Exception {
252
252
boolean presenceTest = ! SPARQLTestUtils .sendSPARQLAsk ("ASK { GRAPH <http://example.com/Z> { ?s ?p ?o } }" );
253
253
254
254
String urlQuery = GRAPH_STORE_ENDPOINT + "?" + SPARQLTestUtils .generateGraphStoreParameters ("http://example.com/Z" );
255
- HttpURLConnection deleteCon = SPARQLTestUtils .deleteConnection (urlQuery );
255
+ HttpURLConnection deleteCon = HTTPConnectionUtils .deleteConnection (urlQuery );
256
256
257
257
int status = deleteCon .getResponseCode ();
258
258
@@ -280,7 +280,7 @@ public void postGraphStoreProtocolNewGraph() throws Exception {
280
280
281
281
String rdfPayload = "@prefix ex: <http://example.com/> . ex:C a ex:Thing ." ;
282
282
283
- HttpURLConnection con = SPARQLTestUtils .postConnection (urlQuery , headers , rdfPayload );
283
+ HttpURLConnection con = HTTPConnectionUtils .postConnection (urlQuery , headers , rdfPayload );
284
284
285
285
int status = con .getResponseCode ();
286
286
@@ -308,7 +308,7 @@ public void postGraphStoreProtocolExistingGraph() throws Exception {
308
308
309
309
String rdfPayload = "@prefix ex: <http://example.com/> . ex:C a ex:Thing ." ;
310
310
311
- HttpURLConnection con = SPARQLTestUtils .postConnection (urlQuery , headers , rdfPayload );
311
+ HttpURLConnection con = HTTPConnectionUtils .postConnection (urlQuery , headers , rdfPayload );
312
312
313
313
int status = con .getResponseCode ();
314
314
@@ -331,7 +331,7 @@ public void headGraphStoreProtocolWithDefault() throws Exception{
331
331
headers .add (acceptHeader );
332
332
333
333
String urlQuery = GRAPH_STORE_ENDPOINT + "?" + SPARQLTestUtils .generateGraphStoreParameters ("default" );
334
- HttpURLConnection con = SPARQLTestUtils .headConnection (urlQuery );
334
+ HttpURLConnection con = HTTPConnectionUtils .headConnection (urlQuery );
335
335
336
336
BufferedReader in = new BufferedReader (
337
337
new InputStreamReader (con .getInputStream ()));
@@ -356,7 +356,7 @@ public void headGraphStoreProtocolWithGraph() throws Exception{
356
356
boolean presenceTest = SPARQLTestUtils .sendSPARQLAsk ("ASK { GRAPH <http://example.com/A> { ?x ?y ?z } }" );
357
357
358
358
String urlQuery = GRAPH_STORE_ENDPOINT + "?" + SPARQLTestUtils .generateGraphStoreParameters ("http://example.com/A" );
359
- HttpURLConnection con = SPARQLTestUtils .headConnection (urlQuery );
359
+ HttpURLConnection con = HTTPConnectionUtils .headConnection (urlQuery );
360
360
361
361
BufferedReader in = new BufferedReader (new InputStreamReader (con .getInputStream ()));
362
362
String inputLine ;
@@ -381,7 +381,7 @@ public void headGraphStoreProtocolWithUnknownGraph() throws Exception{
381
381
boolean absenceTest = ! SPARQLTestUtils .sendSPARQLAsk ("ASK { GRAPH <http://example.com/Z> { ?x ?y ?z } }" );
382
382
383
383
String urlQuery = GRAPH_STORE_ENDPOINT + "?" + SPARQLTestUtils .generateGraphStoreParameters ("http://example.com/Z" );
384
- HttpURLConnection con = SPARQLTestUtils .headConnection (urlQuery );
384
+ HttpURLConnection con = HTTPConnectionUtils .headConnection (urlQuery );
385
385
386
386
BufferedReader in = new BufferedReader (
387
387
new InputStreamReader (con .getInputStream ()));
0 commit comments