W3C home > Mailing lists > Public > public-xg-rdb2rdf@w3.org > November 2008

slightly modified example from my rif slide...

From: Axel Polleres <axel.polleres@deri.org>
Date: Fri, 14 Nov 2008 11:00:54 +0000
Message-ID: <491D5A66.6070602@deri.org>
To: "public-xg-rdb2rdf@w3.org" <public-xg-rdb2rdf@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 14 November 2008 11:01:36 GMT