Repository navigation
Conversation
jvherweg
requested changes
Aug 26, 2020
jvherweg
left a comment
Member
There was a problem hiding this comment.
One problem is also that the SPARQL json blocks take up a lot of space in their functions. Perhaps that the helper function I suggested helps there, but I would also look into putting some more parts of it on the same line, and if they stay too big to perhaps put them in separate functions.
| method: 'POST', | ||
| headers: { | ||
| 'Content-Type': 'application/sparql-query', | ||
| Accept: 'application/json', |
Member
There was a problem hiding this comment.
To do streaming as mentioned above you will probably need a different accept header here than json.
Member
Author
|
Things still to be done:
Currently the SparqlResourceStore has a 100% test coverage. |
smessie
marked this pull request as ready for review
September 7, 2020 15:57
RubenVerborgh
marked this pull request as draft
September 8, 2020 06:46
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.
This PR implements a SPARQL-based ResourceStore as described in #59.
A RoutingResourceStore is not yet implemented.
This is a draft PR because no tests have been written for it yet.However, every SPARQL query that is used has been tested using a BlazeGraph docker container SPARQL endpoint.Shared code is placed in a ResourceStoreController for now #63 (comment) (Option 2a).
The SPARQL queries are quite verbal. I'm open to suggestions to improve it, although I've already tried writing it in a more compact way by using functions likenamedNode.The
modifyResourceneeds to be further modified so that the incoming queries are only executed on the graph that matches the identifier.