W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2011

Problem with property path test case pp15

From: Olivier Corby <Olivier.Corby@sophia.inria.fr>
Date: Fri, 08 Apr 2011 09:23:33 +0200
Message-ID: <4D9EB7F5.7020303@sophia.inria.fr>
To: SPARQL Working Group <public-rdf-dawg@w3.org>
I think there is a problem with pp15

WHERE { ?X :p{0} "o" .
         ?Y :p{0} :o .
         :s :p{0} ?Z . }

The query is applied to an empty graph and it returns:


However, the current SPARQL 1.1 Query document specifies:

Definition: ZeroLengthPath
A zero length path matches all subjects and objects in the graph, and 
also any IRIs explictly given as endpoints of the path pattern.

But literal "o" is not an IRI and it is not in the graph, so the query 
should fail.

In addition, what is the rationale for matching "IRIs explicitly given 
as endpoints of the path pattern" ?

Received on Friday, 8 April 2011 07:24:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:04 UTC