Hi,
My ultimate goal is to investigate the advantages of using Prolog and
XQuery together when querying XML files. In doing so, I want to take
advantage of BaseX's XQuery engine.
Since there is no Prolog client, I initially started writing a Prolog
client. But in SWI-prolog, I did not manage to connect using the
webconnection tools. So I first started to write a C++ client and then
start writing a bridge in Prolog that uses that client. The starting
point for the C++ client was the RBaseX client I published earlier. I
converted all functionalities from that client to C++. A preliminary
version of the C++ client can be found at
https://github.com/BenEngbers/BasexCpp. As soon as I manage to create a
real shared object using CMake I will publish a final version.
Regarding the server protocol for BaseX, however, I still have a
question. According to that protocol, the ADD command accepts 4
arguments ({09 {name} {path} {input} ). However, neither in R nor in C++
have I succeeded in using the {name} argument. My question is whether
this is a bug in the protocol?
I don't know if there is a need for a C++ client that implements the
full server protocol but in any case I enjoyed working on this project.
Have fun,
Ben Engbers
- [basex-talk] Prolog and XQuery Ben Engbers
-