Steve Judkins wrote:
What is the proper way to query private data in a user's dataspace via
the sparql endpoint? For example, how do I query my private
addressbook data? Perhaps someone can provide a curl example to
clarify, because I have been trying to use these examples for querying
a dataspace:
http://virtuoso.openlinksw.com/wiki/main/Main/ODSSIOCRef
When querying a data space via SPARQL you need to be aware of the target
data sources which take the form of information resource (web doc) URLs
or internal RDF Store Graph IRIs.
Re. ODS, when you create an account you end up with a personal
identifier (also known as a Web ID or Personal URI). The personal
identifier is associated with an information resource that takes the
form of a FOAF based profile page. Thus, if you want to query you own
data space you simply need to aim you SPARQL queries at your FOAF
profile page URL which takes the form:
http://<cname>/dataspace/person/<ods-user-id> .
On the other hand you can also SPARQL across the entire collection of
public data hosted by an ODS instance if you scope your queries to the
ODS data space Graph IRI: http://<cname>/datataspace .
You achieve the SPARQL scope via:
1. FROM clause of your SPARQL query (of the Data Source URL input filed
presented in the /sparql endpoint UI)
2. Virtuoso SPARQL pragmas via: define graph-iri <http://cname/dataspace>
These live queries against the demo account don't use authentication,
and the "Dump all AddressBook's contacts" example doesn't specify a
specific user.
This is about data that the application instance owners have tagged as
being publicly accessible. Or shared with specific ODS accounts via
SQLAuth or OAuth [1].
Finally, with the recent support of FOAF+SSL [2] the ACL capabilities of
the ODS instance and its SPARQL endpoint goes beyond explicit ODS
membership. Thus, if someone has a URI bound to a self-certified
certificate where the public key component is written to their FOAF
profile page, such individuals will also have SPARQL access to shared
resources via an HTTPS based SPARQL endpoint.
I guess I'm assuming there is a way to query all dataspace application
data with user credentials on the sparql endpoint. If this is
scenario requiring OAuth let me know. Thanks in advance.
As explained above.
Links:
1. http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/OdsSPARQLAuth
2. http://esw.w3.org/topic/foaf+ssl
Kingsley
------------------------------------------------------------------------
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
--
Regards,
Kingsley Idehen Weblog: http://www.openlinksw.com/blog/~kidehen
President & CEO
OpenLink Software Web: http://www.openlinksw.com