Hi Garry

Your first curl command seems very similar to what I've been doing with my webdav client (konqueror) except that you're putting to home/demo rather that home/dav as I did. If I understand things correctly PUTting to the rdf_sink should make the triples directly available Still it doesn't work for me with konqueror nor with curl.

That's how the communication looks like with konqueror:

PUT /DAV/home/demo/rdf_sink/University0_14.owl HTTP/1.1
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like Gecko)
Pragma: no-cache
Cache-control: no-cache
Accept: text/html, image/jpeg, image/png, text/*, image/*, */*
Accept-Encoding: x-gzip, x-deflate, gzip, deflate
Accept-Charset: iso-8859-1, utf-8;q=0.5, *;q=0.5
Accept-Language: en
Host: localhost:8890
Authorization: Basic ZGF2OmRhdg==
Connection: Keep-Alive
Content-Length: 442158

<?xml version="1.0" encoding=."UTF-8" ?>
<rdf:RDF
....


The transcript of a CURL upload looks like this:



PUT /DAV/home/demo/rdf_sink/University0_7.rdf HTTP/1.1
Authorization: Basic ZGJhOmRiYQ==
User-Agent: curl/7.16.4 (i686-pc-linux-gnu) libcurl/7.16.4 OpenSSL/0.9.8g zlib/1.2.3
Host: localhost:8890
Accept: */*
Content-Length: 599509
Expect: 100-continue


HTTP/1.1 100 Continue

<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF
....


Interestingly the latter creates a resource called http://localhost:8890/DAV/home/demo/rdf_sink/http___localhost_8890_DAV_home_demo_rdf_sink_.RDF, which seems against the RDF 2616 PUT semantics " The PUT method requests that the enclosed entity be stored under the supplied Request-URI".


However I can't seem to successfully run sparql queries against any of the created URIs, for example


GET /sparql?default-graph-uri=http%3A%2F%2Flocalhost%3A8890%2FDAV%2Fhome%2Fdemo%2Frdf_sink%2Fhttp___loca lhost_8890_DAV_home_demo_rdf_sink_.RDF&should-sponge=&query=SELECT+*+WHERE+%7B%3Fs+%3Fp+%3Fo%7D&format=text%2Fhtml&debug=on HTTP/1.1
Host: localhost:8890
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071205 Firefox/2.0.0.11 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8890/sparql

HTTP/1.1 200 OK
Server: Virtuoso/05.00.3023 (Linux) i686-pc-linux-gnu Connection: Keep-Alive
List-Post: virtuoso-users@lists.sourceforge.net
Date: Tue, 22 Jan 2008 10:08:08 GMT
Accept-Ranges: bytes
Content-Type: text/html; charset=UTF-8
Content-Length: 102

<table class="sparql" border="1">
 <tr>
   <th>s</th>
   <th>p</th>
   <th>o</th>
 </tr>
</table>


What am I missing?

Cheers,
reto



Garry M. Biggs wrote:
Hi Reto,

You can refer to the following URL for information regarding inserting RDF
data into virtuoso -

  http://virtuoso.openlinksw.com/wiki/main/Main/VirtRDFInsert

This Wiki page is still a work in progress so if you require any further
information, please ask?


Also, the following examples may help --

  curl -T myfoaf.rdf
http://demo.openlinksw.com/DAV/home/demo/rdf_sink/myfoaf.rdf

  curl -i -d "INSERT {<s> <p> <o>}" -H "Content-Type:
application/sparql-query" http://host:port/DAV/xx/yy

Finally, apologies, I was not in receipt of you original mailing list mail
so I was unable to reply in the conventional means.

Regards,

Garry M. Biggs
Technical Support
OpenLink Software
http://www.openlinksw.com
Product Weblogs:
Virtuoso: http://www.openlinksw.com/weblogs/virtuoso
UDA: http://www.openlinksw.com/weblogs/uda
Universal Data Access & Virtual Database Technology




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


--
Reto Bachmann-Gmür
Talis Information Limited

Find out more about Talis at www.talis.com
Shared InovationTM

Any views or personal opinions expressed within this email may not be those of 
Talis Information Ltd.



Reply via email to