next up previous contents
Next: Source Up: Body Previous: Comparing variables   Contents

Expressions

The query language integrates a small expression language with usual operators such as : + - * /.

Example : find two persons where the age of one is the double of the age of the other :

?p1 c:age ?x
?p2 c:age ?y
?x = 2 * ?y

The operators + - are polymorphic and operate on numbers and strings.

Example : find a resource in RDFS and a resource in OWL that have the same ID :

?c1 ^ rdfs:
?c2 ^ owl:
?c1 - rdfs: = ?c2 - owl:



Olivier Corby 2005-07-01