Thanks, much less confusing now! (as opposed to "much less confusing not")

Aldo Bucchi wrote:
not -> now?

On Tue, Feb 10, 2009 at 1:57 PM, Bob DuCharme <b...@snee.com> wrote:
Hi Kingsley,

Where is the FROM in the SPARQL?
I didn't know it was required. Issuing the query at 
http://localhost:8890/sparql  with no FROM does return some data, so I assumed 
that there was some default scope for the query, and that for user3 it would be 
any data accessible by that user.

As you'll see from my followup to Rumi I tried some IRIs, which were probably 
the wrong ones, because I still couldn't get it to work.

Graph IRI should be the IRI/URL of the RDF file in DAV which is not used
as Graph IRI inside the Quad Store for the data from the RDF info. resource.
I don't follow you there. "which is not used as the Graph IRI inside the quad 
store"?

Is this (identification of proper IRI, etc.) covered in any particular place in 
the documentation?

thanks,

Bob



Kingsley Idehen wrote:
Bob DuCharme wrote:

Thanks Rumi, that worked! Before, I hadn't checked "Allow SQL/ODBC
Logins,"and I thought /DAV/home// was a default value for "DAV Home
Path" and didn't realize what I was supposed to do with it--I guess I
assumed that a home/username directory would be created based on the
login ID name, and I also missed the "Create" checkbox there. I created
user3:pw3 as the account with the following,

    curl -i -T myfoaf.rdf
http://localhost:8890/DAV/home/user3/rdf_sink/myfoaf.rdf -u user3:pw3

and got "Resource /DAV/home/user3/rdf_sink/myfoaf.rdf has been created."

Now, I'm trying to query that data. I tried this (on one line) and got
an HTTP 201 ("Created") but it didn't t show me any results of the query.

  curl -i -u user3:pw3  -H "Content-Type: application/sparql-query" -d
"SELECT DISTINCT ?p WHERE {?s ?p ?o}"
http://localhost:8890/DAV/home/user3/rdf_sink/myfoaf.rdf


Where is the FROM in the SPARQL?

When I went http://localhost:8890/sparql after logging on as user3, the
query "SELECT DISTINCT ?p WHERE {?s ?p ?o}" only showed me predicates in
the http://www.openlinksw.com/schemas/virtrdf# namespace and none from
the myfoaf.rdf file. I tried specifying
http://localhost:8890/DAV/home/user3/rdf_sink/myfoaf.rdf as the graph
name to retrieve from, but then the query retrieved nothing.

I have a feeling that I'm just missing some tiny detail...


Yes FROM GRAPH IRI.

Graph IRI should be the IRI/URL of the RDF file in DAV which is not used
as Graph IRI inside the Quad Store for the data from the RDF info. resource.


Kingsley

thanks,

Bob


Rumi Tsekova wrote:


Hi Bob,



Thanks Hugh!

Any suggestions about point 2?


Here is what I performed locally on winxp installation:

1. Go to Conductor and click "Create New Account"
2. Enter account name: user11 and also enter pwd, for ex.: 1
3. Check "User Enabled" and "Allow SQL/ODBC Logins"
4. Add roles SPARQL_SELECT and SPARQL_UPDATE
5. Check "Allow DAV logins"
6. Enter for "DAV Home path": /DAV/home/user11/
7. Check the "create" check-box.
8. Click "Save".

Then I've executed this (being in the folder where I have a myfoaf.rdf
file):



$ curl -T myfoaf.rdf
http://host:port/DAV/home/user11/rdf_sink/myfoaf.rdf -u user11:1

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


Hope this to help.

Best Regards,
Rumi





------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users




------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users





Reply via email to