Conversation
For more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #269 +/- ##
==========================================
+ Coverage 79.30% 79.39% +0.08%
==========================================
Files 18 18
Lines 1735 1742 +7
==========================================
+ Hits 1376 1383 +7
Misses 359 359 ☔ View full report in Codecov by Sentry. |
Contributor
The example should be rewritten as from tripper import Triplestore
endpoint = "YOUR_ENDPOINT" #something like r"http://IP:PORT/repositories/TOPMAST"
ts = Triplestore(backend="sparqlwrapper", base_iri=endpoint)
res = ts.query(r"SELECT ?s ?p ?o WHERE { ?s ?p ?o . } LIMIT 20")
print(res)Works great! |
jesper-friis
reviewed
Dec 5, 2024
jesper-friis
reviewed
Dec 5, 2024
Contributor
jesper-friis
left a comment
There was a problem hiding this comment.
Works nicely. But please have a look at the comments.
Co-authored-by: Jesper Friis <jesper-friis@users.noreply.github.com>
For more information, see https://pre-commit.ci
Contributor
Author
|
I have added a test and adressed the comments. In addition I added a simple SPARQL query test which requires an internet connection. Please have a new look |
jesper-friis
approved these changes
Dec 9, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add query to SPARQLwrapper backend. The result follows the same format as rdflib backend.
Can be tested with the following Python code if you have a SPARQL endpoint,
Type of change
Checklist for the reviewer
This checklist should be used as a help for the reviewer.