Hello Rob,

Virtuoso is a quad store, not triple store. The application should
specify the graph to edit. Querying is more flexible: the application
can specify the graph(s) to query, query all graphs or query all except
some specified.

No one graph is recognized as "the most default graph", each query
should specify its own default.
SPARQL web service endpoint follows SPARQL protocol spec and accept
default graph as an HTTP parameter.
For other protocols, a define input:default-graph-uri will work:

SQL> sparql define input:default-graph-uri <http://qq> insert data
{ <s1> <p1> <o1>, "o2" };
_______________________________________________________________________________
Insert into <http://qq>, 2 (or less) triples -- done

SQL> sparql select * from <http://qq> where { ?s ?p ?o };
_______________________________________________________________________________
s1 p1 o1
s1 p1 o2

SQL> sparql define input:default-graph-uri <http://qq> select * where
{ ?s ?p ?o };
_______________________________________________________________________________
s1 p1 o1
s1 p1 o2


Best Regards,

Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com


On Fri, 2010-12-17 at 02:45 -0800, Rob Vesse wrote:
> Hi All
> 
> Is it possible to use a SPARUL INSERT/DELETE command to alter the
> default graph of a Virutoso instance?
> 
> I've had reports of the following error message and reproduced it
> myself:
> 
> ERRS_0 37000 SP031 SPARQL compiler: No INTO GRAPH IDENTIFIED BY clause
> and the IRI in preamble refers to default graph group, not a single
> default graph
> 
> A sample command would look something like this:
> 
> INSERT DATA
> {
> <http://example.org/subject> <http://example.org/predicate>
> <http://example.org/object>
> }
> 
> If this is not possible what is the recommended way to alter the
> default graph?
> 
> I'm using the Virtuoso ADO.Net provider to interact with Virtuoso so
> alternative methods that use this are the only viable options for me.
> 
> Rob Vesse
> 
> 
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________ Virtuoso-users mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users



Reply via email to