W3C home > Mailing lists > Public > public-cwm-talk@w3.org > January to March 2005

Checking whether an element ist NOT part of a list.

From: Nane Kratzke <nane.kratzke@web.de>
Date: Wed, 02 Mar 2005 18:47:17 +0100
To: public-cwm-talk@w3.org
Message-Id: <1109785637.3226.5.camel@nanelaptop.local>
Hello,

it may sound funny, but I would like to check whether an element is not
part of list.
But there exist no list:notIn in CWM.
Does anybody has an idea how to check whether an element is not part of
a list?
This feature is needed in a rule as the following.

{ ?p a kmdl:Person.
   ?k a kmdl:KDescriptor.
   ?p kmdl:executes [a kmdl:Function; kmdl:demands ?k].
   ?k list:notIn ?p.kmdl:knowlegde. 
} => { ?p kmdl:missing ?k }.

Thank you,
    Nane
Received on Thursday, 3 March 2005 13:45:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:11:01 GMT