|
1 | 1 | <!DOCTYPE html> |
2 | | -<html lang='en' prefix='dawgt: http://www.w3.org/2001/sw/DataAccess/tests/test-dawg# mf: http://www.w3.org/2001/sw/DataAccess/tests/test-manifest# cnt: http://www.w3.org/2011/content# ht: http://www.w3.org/2011/http#'> |
| 2 | +<html lang='en' prefix='dawg: http://www.w3.org/2001/sw/DataAccess/tests/test-dawg# mf: http://www.w3.org/2001/sw/DataAccess/tests/test-manifest# cnt: http://www.w3.org/2011/content# ht: http://www.w3.org/2011/http#'> |
3 | 3 | <head> |
4 | 4 | <meta content='text/html;charset=utf-8' http-equiv='Content-Type'> |
5 | 5 | <meta content='width=device-width, initial-scale=1.0' name='viewport'> |
@@ -77,14 +77,62 @@ <h2 id='abstract'>Abstract</h2> |
77 | 77 | <dd>is the URL returned in the Location HTTP header</dd> |
78 | 78 | </dl> |
79 | 79 |
|
80 | | -<p>HTTP response messages are in the format:</p> |
| 80 | +<p>The Turtle and JSON-LD versions of this manifest use the <a href="http://www.w3.org/2011/http#"><code>ht</code></a> |
| 81 | +and <a href="http://www.w3.org/2011/content#"><code>cnt</code></a> to describe the |
| 82 | +HTTP actions that a test client can use to provision call and response |
| 83 | +that a server will use to run each test. |
| 84 | +This includes a sequence of HTTP requests, with headers and other information |
| 85 | +that can be used for the provisioned client to will use to send HTTP methods |
| 86 | +to the system under test along with the expected response.</p> |
81 | 87 |
|
82 | | -<pre><code>HTTP Status code |
83 | | -Headers |
84 | | -<space> |
85 | | -Body |
| 88 | +<p>For example, the following entry for <code>gsp:delete__existing_graph</code> |
| 89 | +has an action described as an <code>ht:Connection</code>, with the authority <code>"www.example"</code> |
| 90 | +and a sequence of requests having a single entry of type <code>ht:Request</code>, |
| 91 | +an <code>ht:absolutePath</code> of <code>"$GRAPHSTORE$/person/2.ttl"</code> (where the |
| 92 | +test runner will substitute <code>$GRAPHSTORE</code> with the path to the graph store service |
| 93 | +being tested), and the expected response:</p> |
| 94 | + |
| 95 | +<pre><code>gsp:delete__existing_graph a mf:mf:GraphStoreProtocolTest; |
| 96 | + dawg:approval dawg:Approved; |
| 97 | + dawg:approvedBy <http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3>; |
| 98 | + mf:action [ |
| 99 | + a ht:Connection; |
| 100 | + ht:connectionAuthority "www.example"; |
| 101 | + ht:requests ([ |
| 102 | + a ht:Request; |
| 103 | + ht:absolutePath "$GRAPHSTORE$/person/2.ttl"; |
| 104 | + ht:headers ([ |
| 105 | + a ht:RequestHeader; |
| 106 | + ht:fieldName "Host"; |
| 107 | + ht:fieldValue "$HOST$"; |
| 108 | + ht:headerElements ([ |
| 109 | + a ht:HeaderElement; |
| 110 | + ht:elementName "$HOST$" |
| 111 | + ]) |
| 112 | + ]); |
| 113 | + ht:httpVersion "1.1"; |
| 114 | + ht:methodName "DELETE"; |
| 115 | + ht:resp [ |
| 116 | + a ht:Response; |
| 117 | + ht:statusCodeValue "200" |
| 118 | + ] |
| 119 | + ]) |
| 120 | + ]; |
| 121 | + mf:name "DELETE - existing graph" . |
86 | 122 | </code></pre> |
87 | 123 |
|
| 124 | +<p>This is rendered into HTTP envelopes:</p> |
| 125 | + |
| 126 | +<p><strong>Request</strong></p> |
| 127 | + |
| 128 | +<p>DELETE $GRAPHSTORE$/person/2.ttl HTTP/1.1 |
| 129 | + Host: www.example |
| 130 | + Host: $HOST$</p> |
| 131 | + |
| 132 | +<p><strong>Response</strong></p> |
| 133 | + |
| 134 | +<p>200 response</p> |
| 135 | + |
88 | 136 |
|
89 | 137 | <h3 id='contributing-tests'>Contributing Tests</h3> |
90 | 138 | <p>The test manifests and entries are built automatically from <a href="manifest.ttl">manifest.ttl</a> using a Rake task. Tests may be contributed via pull request to <a href="https://github.com/w3c/rdf-tests">https://github.com/w3c/rdf-tests</a> with suitable changes to the <a href="manifest.ttl">manifest.ttl</a> and referenced files.</p> |
|
119 | 167 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
120 | 168 | <dt>approvedBy</dt> |
121 | 169 | <dd> |
122 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 170 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
123 | 171 | </dd> |
124 | 172 | </dl> |
125 | 173 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -186,7 +234,7 @@ <h4>Response</h4> |
186 | 234 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
187 | 235 | <dt>approvedBy</dt> |
188 | 236 | <dd> |
189 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 237 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
190 | 238 | </dd> |
191 | 239 | </dl> |
192 | 240 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -259,7 +307,7 @@ <h4>Response</h4> |
259 | 307 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
260 | 308 | <dt>approvedBy</dt> |
261 | 309 | <dd> |
262 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 310 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
263 | 311 | </dd> |
264 | 312 | </dl> |
265 | 313 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -326,7 +374,7 @@ <h4>Response</h4> |
326 | 374 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
327 | 375 | <dt>approvedBy</dt> |
328 | 376 | <dd> |
329 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 377 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
330 | 378 | </dd> |
331 | 379 | </dl> |
332 | 380 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -399,7 +447,7 @@ <h4>Response</h4> |
399 | 447 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
400 | 448 | <dt>approvedBy</dt> |
401 | 449 | <dd> |
402 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 450 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
403 | 451 | </dd> |
404 | 452 | </dl> |
405 | 453 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -466,7 +514,7 @@ <h4>Response</h4> |
466 | 514 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
467 | 515 | <dt>approvedBy</dt> |
468 | 516 | <dd> |
469 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 517 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
470 | 518 | </dd> |
471 | 519 | </dl> |
472 | 520 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -539,7 +587,7 @@ <h4>Response</h4> |
539 | 587 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
540 | 588 | <dt>approvedBy</dt> |
541 | 589 | <dd> |
542 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 590 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
543 | 591 | </dd> |
544 | 592 | </dl> |
545 | 593 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -606,7 +654,7 @@ <h4>Response</h4> |
606 | 654 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
607 | 655 | <dt>approvedBy</dt> |
608 | 656 | <dd> |
609 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 657 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
610 | 658 | </dd> |
611 | 659 | </dl> |
612 | 660 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -652,7 +700,7 @@ <h4>Response</h4> |
652 | 700 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
653 | 701 | <dt>approvedBy</dt> |
654 | 702 | <dd> |
655 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 703 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
656 | 704 | </dd> |
657 | 705 | </dl> |
658 | 706 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -698,7 +746,7 @@ <h4>Response</h4> |
698 | 746 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
699 | 747 | <dt>approvedBy</dt> |
700 | 748 | <dd> |
701 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 749 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
702 | 750 | </dd> |
703 | 751 | </dl> |
704 | 752 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -744,7 +792,7 @@ <h4>Response</h4> |
744 | 792 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
745 | 793 | <dt>approvedBy</dt> |
746 | 794 | <dd> |
747 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 795 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
748 | 796 | </dd> |
749 | 797 | </dl> |
750 | 798 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -806,7 +854,7 @@ <h4>Response</h4> |
806 | 854 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
807 | 855 | <dt>approvedBy</dt> |
808 | 856 | <dd> |
809 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 857 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
810 | 858 | </dd> |
811 | 859 | </dl> |
812 | 860 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -880,7 +928,7 @@ <h4>Response</h4> |
880 | 928 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
881 | 929 | <dt>approvedBy</dt> |
882 | 930 | <dd> |
883 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 931 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
884 | 932 | </dd> |
885 | 933 | </dl> |
886 | 934 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -954,7 +1002,7 @@ <h4>Response</h4> |
954 | 1002 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
955 | 1003 | <dt>approvedBy</dt> |
956 | 1004 | <dd> |
957 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 1005 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
958 | 1006 | </dd> |
959 | 1007 | </dl> |
960 | 1008 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -1024,7 +1072,7 @@ <h4>Response</h4> |
1024 | 1072 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
1025 | 1073 | <dt>approvedBy</dt> |
1026 | 1074 | <dd> |
1027 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 1075 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
1028 | 1076 | </dd> |
1029 | 1077 | </dl> |
1030 | 1078 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -1097,7 +1145,7 @@ <h4>Response</h4> |
1097 | 1145 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
1098 | 1146 | <dt>approvedBy</dt> |
1099 | 1147 | <dd> |
1100 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 1148 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
1101 | 1149 | </dd> |
1102 | 1150 | </dl> |
1103 | 1151 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -1167,7 +1215,7 @@ <h4>Response</h4> |
1167 | 1215 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
1168 | 1216 | <dt>approvedBy</dt> |
1169 | 1217 | <dd> |
1170 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 1218 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
1171 | 1219 | </dd> |
1172 | 1220 | </dl> |
1173 | 1221 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -1237,7 +1285,7 @@ <h4>Response</h4> |
1237 | 1285 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
1238 | 1286 | <dt>approvedBy</dt> |
1239 | 1287 | <dd> |
1240 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 1288 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
1241 | 1289 | </dd> |
1242 | 1290 | </dl> |
1243 | 1291 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
@@ -1291,7 +1339,7 @@ <h4>Response</h4> |
1291 | 1339 | <dd property='mf:approval' resource='dawg:Approved'>dawg:Approved</dd> |
1292 | 1340 | <dt>approvedBy</dt> |
1293 | 1341 | <dd> |
1294 | | -<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawgt:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
| 1342 | +<a href='http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3' property='dawg:approvedBy'>http://www.w3.org/2009/sparql/meeting/2012-11-20#resolution_3</a> |
1295 | 1343 | </dd> |
1296 | 1344 | </dl> |
1297 | 1345 | <div class='test-detail' property='mf:action' typeof='ht:Connection'> |
|
0 commit comments