W3C home > Mailing lists > Public > www-rdf-interest@w3.org > January 2002

RE: Expressing "not" in RDF rules

From: Will Sargent <will_sargent@yahoo.com>
Date: Fri, 25 Jan 2002 19:36:42 -0800
To: "Norman Walsh" <Norman.Walsh@Sun.COM>, <www-rdf-interest@w3.org>
Message-ID: <HFEKLPINEKBPPIALEHNBMEEFCDAA.will_sargent@yahoo.com>
> If    :p :pointsTo :s
> and   :p :pointsTo :t
> and   not(s :pointsTo :t)
> then  :p :hasEdge :t

I'd say that since you're making a statement about a statement, you probably
want to use reify it, i.e.

<rdf:Description>
   <rdf:subject resource="s" />
   <rdf:predicate resource="pointsTo" />
   <rdf:object resource="t"/>
   <rdf:type resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement"
/>
   <a:truthValue>false</a:truthValue>
</rdf:Description>

Not that I've done that myself, mind you :-).

Take a look at the model and syntax spec for more information.  As in all
things, it makes far more sense once you've played with the data structure a
bit (using Jena or one of the Python APIs).

Will.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Received on Friday, 25 January 2002 22:36:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:52 GMT