3 ms·
Is there a decent prolog/SQL bridge? Being able to write applications and queries using SQLite or Postgres database as the fact set for prolog would be very ni
by EamonnMR 6y ago
Is there a decent prolog/SQL bridge? Being able to write applications and queries using SQLite or Postgres database as the fact set for prolog would be very nice.
- esfandia 6y agoWouldn't datalog be more suitable than SQL in this case? And in case the DB you want to query offers SQL only, I imagine there are datalog-SQL bridges available somewhere.
- Avshalom 6y agoswi has https://www.swi-prolog.org/pldoc/doc_for?object=section(%27packages/odbc.html%27) https://www.swi-prolog.org/pldoc/doc_for?object=section(%27p... and there's some more stuff on https://www.swi-prolog.org/pack/list https://www.swi-prolog.org/pack/list I don't know how great any of them are.
- diminish 6y agoIs there an MVC type of model layer available for prolog?
- EamonnMR 6y agoI would even settle for embedded prolog the same way you can embed SQL. Well I'd prefer the Python connectors to be less compiled.
- cjallen88 6y agoPerhaps something like https://www.swi-prolog.org/pldoc/doc_for?object=section(%27packages/cql.html%27) https://www.swi-prolog.org/pldoc/doc_for?object=section(%27p...
- EamonnMR 6y agoThanks, I'll check that out.