| Title | Logic Programming in Python |
|---|---|
| Speaker | Pierre Carbonnelle |
| Time Slot | 08:00 - 08:30 |
| Description | So 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. |
| Site | https://sites.google.com/site/pydatalog/ |
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