W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2012

Re: ACTION-667: Created initial draft of GSP test suite 'script'

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Tue, 16 Oct 2012 11:33:36 +0100
Message-ID: <507D3800.9050503@epimorphics.com>
To: Chime Ogbuji <chimezie@gmail.com>
CC: public-rdf-dawg@w3.org


On 16/10/12 11:16, Chime Ogbuji wrote:
> On Tuesday, October 16, 2012 at 3:44 AM, Andy Seaborne wrote:
>> ---- Request (POST - create new graph) ----------
>> POST $GRAPHSTORE$ HTTP/1.1
>> Host: $HOST$
>> Content-Type: text/turtle
>> @prefix foaf: <http://xmlns.com/foaf/0.1/> .
>> @prefix v: <http://www.w3.org/2006/vcard/ns#> .
>>
>> [] a foaf:Person;
>> foaf:businessCard [
>> a v:VCard;
>> v:given-name "Alice"
>> ]
>> ------- Response ---------------------------------
>> 201 Created
>> Location: $NEWPATH$
>> --------------------------------------------------
>>
>> In
>> http://www.w3.org/2009/sparql/docs/http-rdf-update/#http-post
>>
>> it says nothing about POSTing to the graph store itself. That makes
>> this test out of scope of GSP.
>
>
> But It says:
>
> "If the request IRI identifies the underlying Graph Store, the origin server MUST create a new RDF graph comprised of the statements in the RDF payload and return a designated graph IRI associated with the new graph. The new graph IRI should be specified in the Location HTTP header along with a 201 Created code and be different from the request IRI."

OK (I won't ask about base URIs :-)

Somewhat problematic for me because of supporting REST on the data store 
directly.  I may just skip that test.

>
>> Other notes:
>>
>> Test 1
>> - add trailing dot to produce valid Turtle
>> (this is in several of the tests)
>
> Ok.  I will make this change to the html version I'm of this document I'm working on shortly (so the tests are better delineated)
>> Test 2
>> - need blank line at end of header
>
> Ok (same as above)
>> Test 3
>> - Malformed request
>> - should be (or can be) 204 (No Content), not 200
>
> Do you mean this test:?
>
> ------ Request (PUT - empty graph) ---------------
> PUT /person/2.ttl HTTP/1.1
> Host: $HOST$
> Content-Type: text/turtle
>

The third test in the file (I split them with csplit)

-- Request (PUT - graph already in store) -------
PUT /person/1.ttl HTTP/1.1
Host: $HOST$
Content-Type: text/turtle
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix v: <http://www.w3.org/2006/vcard/ns#> .

<http://$HOST$/person/1> a foaf:Person;
      foaf:businessCard [
          a v:VCard;
          v:fn "Jane Doe"
      ]
------- Response ---------------------------------
  200 OK
--------------------------------------------------

also needs a blank line.

[[ 204 ->
The server has fulfilled the request but does not need to return an 
entity-body
]]

	Andy

>
>> Andy
>
> --
> Chime Ogbuji
>
> Sent with Sparrow (http://www.sparrowmailapp.com)
>
Received on Tuesday, 16 October 2012 10:34:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:49 GMT