W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2009

Re: Example updates

From: Paul Gearon <gearon@ieee.org>
Date: Mon, 21 Dec 2009 16:54:20 -0500
Message-ID: <a25ac1f0912211354h2abf5f34q1ce145295dc8c297@mail.gmail.com>
To: Kjetil Kjernsmo <kjetil@kjernsmo.net>
Cc: public-rdf-dawg@w3.org
Sorry for not responding before now....

On Tue, Dec 8, 2009 at 5:03 AM, Kjetil Kjernsmo <kjetil@kjernsmo.net> wrote:
> On Thursday 3. December 2009 02:44:27 Paul Gearon wrote:
>> Are you suggesting using FROM to indicate what the WHERE clause should
>> be resolved against? If so, then sure. However, the advantage of WITH
>> is that it also applies to INSERT and DELETE where no graph is
>> supplied. In that case, the word "FROM" isn't appropriate. WITH is a
>> little more general, even if it's not very pretty.
> Contrary to Steve, I cannot say that I think I can say "I see", let me ask
> some silly questions: :-)
> The consensus is that FROM will only apply to the WHERE clause, never
> anything else, right?

I believe so. I can't recall anything else we've considered using it on.

> Then, we have
> INSERT { GRAPH <foo> { pattern
> which is used to specify that the INSERTions go into graph <foo> ?


> So, WITH, is that supposed to make it possible to name both the graph
> matched in the WHERE clause and the graph inserted into, or just the
> latter?

The former (ie. both).  However, using "GRAPH <uri> { ... }" in either
the INSERT or the WHERE clause will override whatever was specified in
a WITH clause. In one sense, it is like specifying FROM in a SELECT
query. It specifies the graph(s) to use when nothing is given

Paul Gearon
Received on Monday, 21 December 2009 21:54:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:00:58 UTC