Skip to content

Adding auth details to SPARQLConnectorΒ #1197

@johnwick42n

Description

@johnwick42n

CHANGELOG.md
rename new SPARQLWrapper to SPARQLConnector PR #872

I tried using SPARQLConnector to connect to my local Virtuoso SPARQL Endpoint and it worked great for most queries but I kept getting authentication errors when I tried to make update queries. Although most of the init args for SPARQLConnector are the same as that of SPARQLWrapper, SPARQLWrapper had args for putting in the auth details which updated the request headers eventually.

Is there a way I can initialize a SPARQLConnector instance with auth details?

EDIT: I have already tried passing auth=requests.auth.HTTPDigestAuth("user", "pass"), but adding that gives me a requests.exceptions.HTTPError: 400 Client Error: Bad Request for url.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions