SPARQLWrapper.SPARQLExceptions module

SPARQL Wrapper exceptions

exception SPARQLWrapper.SPARQLExceptions.SPARQLWrapperException(response: Optional[bytes] = None)[source]

Bases: Exception

Base class for SPARQL Wrapper exceptions

__init__(response: Optional[bytes] = None)[source]
Parameters

response (string) – The server response

exception SPARQLWrapper.SPARQLExceptions.EndPointInternalError(response: Optional[bytes] = None)[source]

Bases: SPARQLWrapper.SPARQLExceptions.SPARQLWrapperException

Exception type for Internal Server Error responses. Usually HTTP response status code 500.

exception SPARQLWrapper.SPARQLExceptions.QueryBadFormed(response: Optional[bytes] = None)[source]

Bases: SPARQLWrapper.SPARQLExceptions.SPARQLWrapperException

Query Bad Formed exception. Usually HTTP response status code 400.

exception SPARQLWrapper.SPARQLExceptions.EndPointNotFound(response: Optional[bytes] = None)[source]

Bases: SPARQLWrapper.SPARQLExceptions.SPARQLWrapperException

End Point Not Found exception. Usually HTTP response status code 404.

exception SPARQLWrapper.SPARQLExceptions.Unauthorized(response: Optional[bytes] = None)[source]

Bases: SPARQLWrapper.SPARQLExceptions.SPARQLWrapperException

Access is denied due to invalid credentials (unauthorized). Usually HTTP response status code 401.

New in version 1.8.2.

exception SPARQLWrapper.SPARQLExceptions.URITooLong(response: Optional[bytes] = None)[source]

Bases: SPARQLWrapper.SPARQLExceptions.SPARQLWrapperException

The URI requested by the client is longer than the server is willing to interpret. Usually HTTP response status code 414.

New in version 1.8.3.