slightly modified example from my rif slide...

I saw there was some error in the example on slide 5 of


http://esw.w3.org/topic/Rdb2RdfXG?action=AttachFile&do=view&target=RIF4RDB2RDF.pdf

Here an improved version (also uploaded at the same address):

slide 5 uses the iri-string predicate. that is already a nasty 
example... assume, for a mapping from your RDB to RIF, you have the rule:

Forall ?P ( ?P#foaf:Person[foaf:phone -> ?T] ) :-
  And (
    mydb:Customers( ?ID ?Name ?Phone ?Address)
    External( pred:iri-string( ?P External( func:concat( 
"http://mydb.org/Persons/" ?ID )))
    External( pred:iri-string( ?T External( func:concat( "tel:" ?Phone )))
  )
)


Axel


-- 
Dr. Axel Polleres
Digital Enterprise Research Institute, National University of Ireland, 
Galway
email: axel.polleres@deri.org  url: http://www.polleres.net/

Received on Friday, 14 November 2008 11:01:36 UTC