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: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"

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).


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:34 UTC