Alexandre Bertails wrote:
Hi everybody,
First, let me write here an extract form
<http://www.w3.org/TR/rdf-sparql-query/#specifyingDataset> :
"If there is no |FROM| clause, but there is one or more |FROM NAMED|
clauses, then the dataset includes an empty graph for the default graph."
Now, let me introduce my problem with a simple request :
SQL> SPARQL SELECT * FROM NAMED <http://test1> WHERE { ?s ?p ?o };
With this request, I should have triples only from <http://test1>
named graph, shouln't I ?
This isn't the case : I have eveything.
More, if I modify the request like that :
SQL> SPARQL SELECT * FROM NAMED <http://test1> WHERE { GRAPH ?g { ?s
?p ?o } };
Now I have triples from <http://test1> only.
Is this the excepted behaviour ?
Alex,
In a nutshell, yes :-)
FROM NAMED does not implicitly negate the existence of a default graph.
This is why GRAPH ?g or GRAPH <http://test1> is required to set scope of
your patterns to Named Graphs explicitly.
Kingsley
Alexandre Bertails, Atos Origin - Open Source Center.
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------
_______________________________________________
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