Hi Jenny,
What Virtuoso documentation page are you referring to ?
If curl can perform the insert which I presume you are performing as indicated
at:
http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtuosoRDFSinkFolder
$ more single.ttl
<http:/www.ebremer.com/foaf.rdf> a <http://xmlns.com/foaf/0.1/Person> .
$ curl -T ./single.ttl http://localhost:8890/DAV/home/dba/rdf_sink/single.ttl
-u dba:dba
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><HTML><HEAD><TITLE>201
Created</TITLE></HEAD><BODY><H1>Created</H1>Resource
/DAV/home/dba/rdf_sink/single.ttl has been
created.</BODY></HTML>Hughs-MacBook-Pro-618:~ hwilliams$
$ Downloads/isql 1111
Connected to OpenLink Virtuoso
Driver: 07.10.3211 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL> sparql select * from <urn:dav:home:dba:rdf_sink> where {?s ?p ?o};
s
p
o
VARCHAR
VARCHAR
VARCHAR
_______________________________________________________________________________
http:/www.ebremer.com/foaf.rdf
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://xmlns.com/foaf/0.1/Person
1 Rows. -- 2 msec.
SQL>
Then you should be able to use a http put command to do the same thing, thus
how exactly are you trying to this with the apache httpclient ?
Best Regards
Hugh Williams
Professional Services
OpenLink Software, Inc. // http://www.openlinksw.com/
Weblog -- http://www.openlinksw.com/blogs/
LinkedIn -- http://www.linkedin.com/company/openlink-software/
Twitter -- http://twitter.com/OpenLink
Google+ -- http://plus.google.com/100570109519069333827/
Facebook -- http://www.facebook.com/OpenLinkSoftware
Universal Data Access, Integration, and Management Technology Providers
On 27 Aug 2014, at 17:47, S Liu <jennyin...@gmail.com> wrote:
> Hi,
>
> I need to upload a rdf file to virtuoso WebDAV repository in a java client
> program.
>
> I tried to use http put method as mentioned in virtuoso documentation.
>
> I tired apache httpclient to send http put request, and I got error
> "connection reset" that virtuoso server may not support.
>
> I used command line tool curl to do the http put request, and it successfully
> completed the uploading, but curl is not a java client.
>
> If I still use java, how can I achieve this?
>
> Thanks,
> Jenny
>
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users