Hi Taalai,

Hi all,

I have created user "tman" with password gxa
and upload rdf file using:

$ curl -i -T myTriples.rdf http://localhost:8890/DAV/home/tman/rdf_sink/myTriples.rdf
 -u tman:gxa
(and also tried uploading using webDAV browser)

and got the result

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//
EN"><HTML><HEAD><TITLE>201 Created</TITLE></HEAD><BODY><H1>Created</
H1>Resource /DAV/home/tman/rdf_sink/myTriples.rdf has been created.</
BODY></HTML>

the WebDAV Browser shows me that the file is there

but when I run query (using end point, tereminal and even internal
SPARQL execution)

default graph uri is : http://localhost:8890/DAV/home/tman/rdf_sink
query:

select * where {?s ?p ?o}   (I tried many different queries)

returns empty table
s-p-o

same happens when I run query form terminal
curl -F "query=SELECT DISTINCT ?p FROM <http://localhost:8890/DAV/home/tman/rdf_sink/
>   WHERE {?s ?p ?o}"  http://localhost:8890/sparql


What can be the reason for that?


Here is what I performed (for ex. on a clear db). Please give us more details if
you are doing different than these steps:

1. install ods, briefcase and conductor packages
2. login at conductor as dba (http://host:port/conductor)
3. go to System Admin->User Accounts->Create New Account
4. In the shown form:
   - enter for Account name/User Login tman, enter and re-type pwd,
   - enter for DAV Home Path: /DAV/home/tman/ and check "create"
   - change user type to WebDAV
   - click Save
5. now execute:

$ curl -i -T TimBLcard.rdf http://host:port/DAV/home/tman/rdf_sink/TimBLcard.rdf -u tman:gxa


Note that host:port is the value of DefaultHost in your virtuoso ini, section [URIQA].


6. The results I got:

HTTP/1.1 100 Continue

HTTP/1.1 201 Created
Server: Virtuoso/05.12.3041 (Win32) i686-generic-win-32  VDB
Connection: close
Content-Type: text/html; charset=ISO-8859-1
List-Post: [email protected]
Date: Thu, 15 Oct 2009 21:21:42 GMT
Accept-Ranges: bytes
Content-Length: 195

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><HTML><HEAD><TITLE>201 Created</TITLE></HEAD><BODY><H1>Created</H1>Resource /DAV/home/tman/rdf_sink/
TimBLcard.rdf has been created.</BODY></HTML>


7. As result the data will be inserted in the graph <http://host:port/DAV/home/tman/rdf_sink/> and also the TimBLcard.rdf will be uploaded to the DAV location DAV/home/tman/rdf_sink in the Virtuoso Server.
 * note you can view your user's WebDAV resource content by:
1. Using Conductor->Web Application Server->Content Management (http://docs.openlinksw.com/virtuoso/htmlconductorbar.html) 2. Using ODS Briefcase UI (see more details here: http://ods.openlinksw.com/dataspace/dav/wiki/ODS/OdsBriefcase)

8. Check the inserted triples using curl or directly from ISQL:

curl -F "query=SELECT DISTINCT ?p FROM <http://host:port/DAV/home/tman/rdf_sink/> WHERE {?s ?p ?o}" http://host:port/sparql

with result:

<sparql xmlns="http://www.w3.org/2005/sparql-results#"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.w3.org/200
1/sw/DataAccess/rf1/result2.xsd">
<head>
 <variable name="p"/>
</head>
<results distinct="false" ordered="true">
 <result>
<binding name="p"><literal>http://www.w3.org/1999/02/22-rdf-syntax-ns#type</literal></binding>
 </result>
 <result>
<binding name="p"><literal>http://purl.org/dc/elements/1.1/title</literal></binding>


or from ISQL:

SQL>SPARQL
SELECT DISTINCT ?p
FROM <http://host:port/DAV/home/tman/rdf_sink/>
WHERE
 {
   ?s ?p ?o .
 }
;
p
VARCHAR
_______________________________________________________________________________

http://www.w3.org/1999/02/22-rdf-syntax-ns#type
http://purl.org/dc/elements/1.1/title
http://xmlns.com/foaf/0.1/maker
http://xmlns.com/foaf/0.1/primaryTopic
http://www.w3.org/2000/01/rdf-schema#label
http://www.w3.org/2000/01/rdf-schema#seeAlso
http://xmlns.com/foaf/0.1/nick
http://xmlns.com/foaf/0.1/name
http://xmlns.com/foaf/0.1/mbox
http://www.w3.org/2000/10/swap/pim/contact#assistant
http://www.w3.org/2000/10/swap/pim/contact#homePage
...
38 Rows. -- 30 msec.



BTW, how big is the file you are uploading?
As for million of triples we highly recommend for faster loading to use the RDF_LOAD_RDFXML_MT () function ( see for reference: http://docs.openlinksw.com/virtuoso/fn_rdf_load_rdfxml_mt.html )


Best Regards,
Rumi




Regards,

Taalai Djumabaev
[email protected]


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Reply via email to