module documentation
This module handles the RESTful communication of the online BabelNet API.
| Class | |
Enum that contains all the available restful call type that can be used in order to interrogate the BabelNet RESTful online indexes service. |
| Class | |
BabelNet RESTful request object. |
| Class | |
A RESTful parameter. |
| Function | check |
Check the error code of the response received from BabelNet RESTful service. |
| Function | print |
Warnings: It has to be called after check_error_code has returned True with the same response string. |
| Function | send |
Send a request to the BabelNet RESTful service. |
| Variable | session |
Undocumented |
def send_request(packet):
Send a request to the BabelNet RESTful service.
| Parameters | |
packet:RESTfulPacket | the RESTfulPacket to send |
| Returns | |
Optional[ | the response as an Optional[bytes] |
| Raises | |
ValueError | if the restful key is not set |
RuntimeError | if there is a problem while trying to contact the BabelNet RESTful service |