RE: Expressing "not" in RDF rules

> 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 UTC