Skip to content

Conversation

guizsantos
Copy link
Contributor

This introduces store_kwargs which behaves similarly to graph_kwargs on the RdfGraph object, which will enable users to pass headers and other arguments to the underlying SPARQLStore object. I have also made a PR in rdflib to support passing default_graph.

Example usage:

from langchain_community.graphs import RdfGraph

graph = RdfGraph(
    query_endpoint="http://localhost/sparql",
    standard="rdf",
    store_kwargs=dict(
        default_graph="http://example.com/mygraph"
    )
)

@dosubot dosubot bot added the size:XS label Apr 12, 2024
Copy link

vercel bot commented Apr 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Apr 27, 2024 1:33am

@dosubot dosubot bot added the lgtm label Apr 27, 2024
@baskaryan baskaryan enabled auto-merge (squash) April 27, 2024 01:32
@baskaryan baskaryan merged commit f931a9c into langchain-ai:master Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants