To jest stara wersja strony!
Przykład 3
Używamy prefix'u bks jako skrótu dla http://example.com/books#
oraz curr dla http://example.com/currencies#
a. Warunek RIF
And ( Exists ?Buyer ( purchase^^rif:local ( ?Buyer
?Seller
book^^rif:local ( ?Author bks:LeRif^^rif:iri )
curr:USD^^rif:iri ( 49^^xsd:integer ) )
?Seller=?Author )
b. Serializacja XML
<And>
<formula>
<Exists>
<declare><Var>Buyer</Var></declare>
<formula>
<Uniterm>
<op><Const type="rif:local">purchase</Const></op>
<arg><Var>Buyer</Var></arg>
<arg><Var>Seller</Var></arg>
<arg>
<Uniterm>
<op><Const type="rif:local">book</Const></op>
<arg><Var>Author</Var></arg>
<arg><Const type="rif:iri">bks:LeRif</Const></arg>
</Uniterm>
</arg>
<arg>
<Uniterm>
<op><Const type="rif:iri">curr:USD</Const></op>
<arg><Const type="xsd:integer">49</Const></arg>
</Uniterm>
</arg>
</Uniterm>
</formula>
</Exists>
</formula>
<formula>
<Equal>
<side><Var>Seller</Var></side>
<side><Var>Author</Var></side>
</Equal>
</formula>
</And>
Powrót do dokumentu