Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community: Pass kwargs to SPARQLStore from RdfGraph #20385

Merged
merged 5 commits into from
Apr 27, 2024

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 This PR changes 0-9 lines, ignoring generated files. 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 🤖:improvement Medium size change to existing code to handle new use-cases label Apr 12, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. 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
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:improvement Medium size change to existing code to handle new use-cases lgtm PR looks good. Use to confirm that a PR is ready for merging. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants