$HOST$ is the host where the Graph Store Protocol implementation is listening
$GRAPHSTORE$ is the path of the URL of the graph store
$NEWPATH$ is the URL returned in the Location HTTP header
HTTP response messages are in the format:
            HTTP Status code
            Headers
            <space>
            Body                    
        
        
        
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 "John Doe" 
    ].            
        
        
201 Created            
        
        
GET /person/1.ttl HTTP/1.1
Host: $HOST$
Accept: text/turtle; charset=utf-8
        
        
200 OK
Content-type: text/turtle
<http://$HOST$/person/1> a foaf:Person;
   foaf:businessCard [ 
        a v:VCard;
        v:fn "John Doe" 
   ].
        
        
        
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" 
    ].
        
        
204 No Content
        
        
GET /person/1.ttl HTTP/1.1
Host: $HOST$
Accept: text/turtle; charset=utf-8
        
        
200 OK
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" 
   ] .
        
        
PUT $GRAPHSTORE$?default 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" 
    ] .
        
        
201 Created            
        
        
GET $GRAPHSTORE$?default HTTP/1.1
Host: $HOST$
Accept: text/turtle; charset=utf-8   
         
        
        
200 OK
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" 
    ] .            
        
        
PUT /person/1.ttl HTTP/1.1
Host: $HOST$
Content-Type: application/rdf+xml
@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" 
    ].            
        
        
400 Bad Request            
        
        
        
PUT /person/2.ttl HTTP/1.1
Host: $HOST$
Content-Type: text/turtle         
   
        
        
200 OK            
        
        
        
GET /person/2.ttl HTTP/1.1
Host: $HOST$
Accept: text/turtle; charset=utf-8            
        
        
200 OK
Content-type: text/turtle            
        
        
DELETE /person/2.ttl HTTP/1.1
Host: $HOST$            
        
        
200 OK            
        
        
GET /person/2.ttl HTTP/1.1
Host: $HOST$            
        
        
404 Not Found            
        
        
DELETE /person/2.ttl HTTP/1.1
Host: $HOST$            
        
        
404 Not Found            
        
        
POST /person/1.ttl HTTP/1.1
Host: $HOST$
Content-Type: text/turtle
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<http://$HOST$/person/1> foaf:name "Jane Doe"            
        
        
200 OK            
        
        
GET /person/1.ttl HTTP/1.1
Host: $HOST$
Accept: text/turtle; charset=utf-8 
           
        
        
200 OK
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:name "Jane Doe";
    foaf:businessCard [ 
        a v:VCard;
        v:fn "Jane Doe" 
    ] .            
        
        
POST /person/1.ttl HTTP/1.1
Host: $HOST$
Content-type: multipart/form-data; boundary=AaB03x
--AaB03x
content-disposition: form-data; name="graphs"
Content-type: multipart/mixed; boundary=BbC04y
--BbC04y
Content-disposition: attachment; filename="lastName.ttl"
Content-type: text/turtle
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<http://$HOST$/person/1> foaf:familyName "Doe" 
--BbC04y
Content-disposition: attachment; filename="firstName.ttl"
Content-type: text/turtle
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<http://$HOST$/person/1> foaf:givenName  "Jane"
--BbC04y
--AaB03x            
        
        
200 OK            
        
        
GET /person/1.ttl HTTP/1.1
Host: $HOST$         
   
        
        
200 OK
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:name           "Jane Doe";
    foaf:givenName      "Jane";
    foaf:familyName     "Doe";
    foaf:businessCard [ 
        a               v:VCard;
        v:fn            "Jane Doe" 
    ] .
        
        
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" 
    ] .            
        
        
201 Created
Location: $NEWPATH$
        
        
GET $NEWPATH$ HTTP/1.1
Host: $HOST$
Accept: text/turtle; charset=utf-8    
        
        
        
200 OK
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" 
    ] .         
        
        
POST $NEWPATH$ HTTP/1.1
Host: $HOST$
Content-Type: text/turtle       
     
        
        
204 No Content            
        
        
GET $NEWPATH$ HTTP/1.1
Host: $HOST$
Accept: text/turtle; charset=utf-8   
         
        
        
200 OK
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" 
    ] .            
        
        
HEAD /person/1.ttl HTTP/1.1
Host: $HOST$
        
        
200 OK
Content-type: text/turtle       
                 
        
        
HEAD /person/2.ttl HTTP/1.1
Host: $HOST$
        
        
404 Not Found