sparqlconnector
Classes:
-
SPARQLConnector–this class deals with nitty gritty details of talking to a SPARQL server
-
SPARQLConnectorException–
SPARQLConnector
SPARQLConnector(query_endpoint: Optional[str] = None, update_endpoint: Optional[str] = None, returnFormat: Optional[str] = 'xml', method: Literal['GET', 'POST', 'POST_FORM'] = 'GET', auth: Optional[Tuple[str, str]] = 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: Optional[str] = None, named_graph: Optional[str] = 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