Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

swi odbc

1 view
Skip to first unread message

Tony Burton

unread,
Jan 28, 2010, 1:28:23 PM1/28/10
to
I current have an application where I store data as prolog predicates.
e.g., data on country polulations.
births(afg,2007,1314407).
births(alb,2007,51911).
births(bel,2007,109400).
etc.

I would like to store these data in an excel workbook or access table.

CountryYear Births
alf 2007 1314407
alb 2007 51911
bel 2007 109400

and use swi prolog's odbc library to read the excel/access data and
use the data as predicates.

Does anyone have an example they would be willing to share?

Assistance appreciated.

Ecki

unread,
Jan 29, 2010, 2:43:45 AM1/29/10
to
Hello Tony,

still have a module for accessing a database using odbc, but only used
it for a short time, so maybe it's not very well tested... so far I
don't really want to give it to the public to avoid poissoning someone's
code with my naive, probably partially untested code.

But I'll send it to you with a separate mail after I have at least
translated the comments to english -- hope that will help.

Cheers,
Eckard

Tony Burton <anthony....@gmail.com> wrote:

> I current have an application where I store data as prolog predicates.

...

0 new messages