pyDatalog at FOSDEM 2014 !

101 views
Skip to first unread message

Pierre Carbonnelle

unread,
Jan 9, 2014, 6:53:35 AM1/9/14
to pyda...@googlegroups.com
Hi,

My talk on "Logic Programming in Python" has been accepted for the Python room at FOSDEM 2014 in Brussels, Belgium, on Feb 2.  FOSDEM is a free event renowned for being highly developer-oriented.  It brings together 5000+ open source geeks from all over the world.

Come and join us if you can !

Pierre Carbonnelle

TitleLogic Programming in Python
SpeakerPierre Carbonnelle
Time Slot08:00 - 08:30
DescriptionSo far, the Python community has shown little interest in Logic Programming. Yet, it is one of the 3 main programming paradigms, together with imperative and functional programming. Thanks to pyDatalog, a Python package that embeds Logic Programming within Python, Python programmers can now solve complex problems through highly readable, declarative programs. This talk will introduce you to Logic Programming through examples written in Python + pyDatalog.
Sitehttps://sites.google.com/site/pydatalog/



karamj...@thapar.edu

unread,
Jun 17, 2014, 12:28:07 AM6/17/14
to pyda...@googlegroups.com
Congratulations !

Can you please share the slides/video of same. 

Also accept my congratulations for your wonderful work done in pyDatalog project. 

I am a researcher from India working on Polyglot Persistence. I am working on development of an uniform interface via which I can query multi-paradigm databases. Right now, I am considering 3 databases: PostgreSQL, MongoDB and Neo4j. I am stuck at creating Knowledge-base/Master Schema/Meta-Data, where I will store the schemas of underlying data stores so that the interface get to know the attributes which are asked by the query, are present in which data store. While searching for it, I came across Datalog and how it can be used for database integration. Fortunately, I also came across your's pyDatalog project.

I will be grateful to you, if you can please explain : 

How is pyDatalog using Datalog to store information about schema of MongoDB and SQLite. What happens when a query is fired which asks for attributes present in both of them. How are you determining the relevant data store to query. 

In brief : How can pyDatalog be used to answer multi-database queries ?

Thanks in advance for your time and good luck for your future projects.

Pierre Carbonnelle

unread,
Jun 27, 2014, 12:23:28 PM6/27/14
to pyda...@googlegroups.com
Hi Karamijt,

Sorry for the late answer. You can view the presentation I made at FOSDEM by clicking here.

Your question is quite open ended. In summary, a pyDatalog query is broken down into elementary queries to the specific databases, and results are joined by pyDatalog.

FoundationDB supports Datalog queries on their NoSQL database using pyDatalog. They have written a nice tutorial on how to use it (see link below). The same principles may be used for other databases.

Note that, for batch processing, it is recommended to import the data in pyDatalog in one go, using pyDatalog.assert_fact(*) repeatedly.

I hope it helps.
Pierre C.

http://foundationdb.com/
http://foundationdb.com/documentation/beta3/datalog.html

Reply all
Reply to author
Forward
0 new messages