The REST extension
The REST extension lets users integrate external service implementations written in JavaScript or Python.
A REST service can support request and consume operations. The implementation of the operations can be declared in a JavaScript or Python module and mapped to the operations using the path to the operations in the user tree.
See the SPARKL public repository for working examples.