I want to write a Python web application that queries RDF triples using Prolog. I found pyswip for interfacing Python with SWI-Prolog, and I am currently looking into SWI-Prolog's RDF capabilities. I am wondering if anyone has tried this before--and if anyone has: what did your setup look like? How do you get pyswip to work with the SWI-Prolog semantic web library? Or is there another Python-Prolog interface that makes this easier?
Edit:
I actually found a really nice solution to this. I have used the AllegroGraph 3.3 Python API before to do Prolog queries on RDF data, but I thought their Prolog extension to Allegro Common Lisp was kind of lacking because it was missing things like number comparison operators. I have since tried out AllegroGraph 4.6 and I found that anything missing from their Prolog extension is made up for by the fact that you can use the lisp
escape functor to write Allegro Common Lisp expressions to take care of anything you need to do that isn't offered by the Prolog extension. For some reason this functor was not defined when I used the AllegroGraph 3.3 Python API, but clearly the developers at Allegro have come a long way since then.
I suggest this for anybody who wants to build a Python web app that queries RDF data using Prolog. It's super fast and super powerful.