sparqlconnector
Classes:
-
SPARQLConnector–this class deals with nitty gritty details of talking to a SPARQL server
-
SPARQLConnectorException–
SUPPORTED_FORMATS
module-attribute
SPARQLConnector
SPARQLConnector(query_endpoint: str | None = None, update_endpoint: str | None = None, returnFormat: SUPPORTED_FORMATS = 'xml', method: SUPPORTED_METHODS = 'GET', auth: tuple[str, str] | None = None, **kwargs)
this class deals with nitty gritty details of talking to a SPARQL server
Any additional keyword arguments will be passed to to the request, and can be used to setup timeouts etc.
Methods:
-
query– -
response_mime_types–Construct a HTTP-Header Accept field to reflect the supported mime types.
-
update–
Attributes:
-
kwargs– -
method(str) – -
query_endpoint– -
returnFormat– -
update_endpoint–
Source code in rdflib/plugins/stores/sparqlconnector.py
query
query(query: str, default_graph: str | None = None, named_graph: str | None = None) -> Result
Source code in rdflib/plugins/stores/sparqlconnector.py
response_mime_types
Construct a HTTP-Header Accept field to reflect the supported mime types.
If the return_format parameter is set, the mime types are restricted to these accordingly.
Source code in rdflib/plugins/stores/sparqlconnector.py
update
Source code in rdflib/plugins/stores/sparqlconnector.py
SPARQLConnectorException
Bases: Exception