SPARQLWrapper.SPARQLExceptions module

SPARQL Wrapper exceptions

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

Bases: exceptions.Exception

Base class for SPARQL Wrapper exceptions

__init__(response=None)[source]
Parameters:response (string) – The server response
exception SPARQLWrapper.SPARQLExceptions.EndPointInternalError(response=None)[source]

Bases: SPARQLWrapper.SPARQLExceptions.SPARQLWrapperException

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

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

Bases: SPARQLWrapper.SPARQLExceptions.SPARQLWrapperException

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

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

Bases: SPARQLWrapper.SPARQLExceptions.SPARQLWrapperException

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

exception SPARQLWrapper.SPARQLExceptions.Unauthorized(response=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=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.