- From: Eric Prud'hommeaux <eric@w3.org>
- Date: Tue, 14 Dec 2004 04:18:05 -0500
- To: RDF Data Access Working Group <public-rdf-dawg@w3.org>
- Message-ID: <20041214091805.GB24569@w3.org>
On Mon, Dec 13, 2004 at 10:30:35AM -0600, Dan Connolly wrote:
> ACTION: EricP to sketch tests around comparators in the graph
> constraint
Given a graph:
:book1 dc:title "SPARQL Tutorial" .
:book1 ns:price 41 .
We can ask for the titles of the books that cost less than $42:
SELECT ?title
WHERE (?book dc:title ?title)
(?book ns:price ?price)
AND (?price < 42)
or we can use an XQuery (XPath really) function
SELECT ?title
WHERE (?book dc:title ?title)
(?book ns:price ?price)
AND (?price op:lessThan 42)
Simon suggested we look at expressing that in the WHERE clause:
SELECT ?title ?price
WHERE (?book dc:title ?title)
(?book ns:price ?price)
(?price op:lessThan 42)
which would presumable match the above data. But would it match
:book1 dc:title "SPARQL Tutorial" .
:book1 ns:price :price .
:price op:lessThan 42.
or
:book1 dc:title "SPARQL Tutorial" .
:book1 ns:price 43 .
43 op:lessThan 42.
? Generally, how do we distinguish between asserted triples and
those inferred? We may want to, especially given that querying a
representation of a query can leave lots of triples in the op
namespace around, potentially confusing or misleading the
querier.
--
-eric
office: +81.466.49.1170 W3C, Keio Research Institute at SFC,
Shonan Fujisawa Campus, Keio University,
5322 Endo, Fujisawa, Kanagawa 252-8520
JAPAN
+1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA
cell: +1.857.222.5741 (does not work in Asia)
(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.
Received on Tuesday, 14 December 2004 09:18:05 UTC