W3C home > Mailing lists > Public > public-sparql-dev@w3.org > July to September 2010

SPARQL triples with no variables

From: Graham Matthews <graham@orangedogconsulting.com>
Date: Sat, 28 Aug 2010 16:37:36 +0000 (UTC)
To: public-sparql-dev@w3.org
Message-ID: <loom.20100828T183427-220@post.gmane.org>
Hi

I have a couple of questions about the semantics of some unusual SPARQL
queries.

What is the semantics of the following SPARQL query?

select $x from graph_iri
where
{
	$x a some_iri_1.
	some_iri_2 some_iri_3 some_iri_4 
}

where all of the some_iri_i's are distinct, and the graph contains NO triples 
of the form

	some_iri_2 some_iri_3 some_iri_4 

?

Is the answer empty or all $x's that satisfy the first triple?

Similarly what is the semantics of the following query?

select $x from graph_iri
where
{
	$x a some_iri_1.
	$y some_iri_3 some_iri_4 
}

where all of the some_iri_i's are distinct, and the graph contains NO triples
that match the second 
pattern?

thanks
graham
Received on Monday, 30 August 2010 06:31:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:50 UTC