Like many other scripting languages, Web Prolog lacks some of the capabilities of general purpose programming languages, such as file I/O, access to the OS and a foreign language interface, but since a Prolog Web node is implemented on top of a general purpose programming language it should be straightforward to delegate the need for such operations to this language. A programmer wishing to implement an application that needs to perform e.g. file I/O needs to be knowledgeable in the host language. For some nodes, it probably makes sense to offer an interface between Web Prolog and the host language. In the case of SWI-Prolog, such an interface is obviously already there.
Torbj¨orn Lager (2018, June 18). Web Prolog and the Programmable Web. Retrieved from: https://github.com/Web-Prolog/swi-web-prolog/raw/master/book...