I'm working on some code that assesses data in a database to see if instances in a stream of incoming events comply with a set of protocols. The idea is to use pyDatalog to do this. Ideally, we would like to be able to assess the data against several independent rule sets, which define separate protocols the events should comply with.
In other words, is it possible to create several logically independent pyDatalog sessions which each have their own sets of rules, but take data from the same underlying database?