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

Re: Negation section text updated.

From: Steve Harris <steve.harris@garlik.com>
Date: Thu, 20 May 2010 20:33:10 +0100
Cc: Olivier Corby <Olivier.Corby@sophia.inria.fr>, SPARQL Working Group <public-rdf-dawg@w3.org>
Message-Id: <F816E99E-DF9C-42E4-89E4-C19D90C430AF@garlik.com>
To: Andy Seaborne <andy.seaborne@talis.com>
On 2010-05-20, at 20:05, Andy Seaborne wrote:

> 
> 
> On 20/05/2010 9:23 AM, Steve Harris wrote:
>>> >  Note that there are two syntax for negation :
>>> >
>>> >  filter(not exists PAT)
>>> >
>>> >  filter(! exists PAT)
>> However, NOT doesn't appear to by a synonym of !, so it's not legal to write FILTER(NOT ?x=1), which seems a little odd.
>> 
>> I think we should either add a NOT operator, or remove NOT from EXISTS, and just use !.
>> 
> 
> NOT is used in two places:
> 
>    NOT EXISTS
>    ?x NOT IN (1,2,3)

Ah, OK, didn't know we had NOT IN, in that case I don't think it makes sense to have a general NOT.

- Steve

-- 
Steve Harris, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
Received on Thursday, 20 May 2010 19:33:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:42 GMT