Skip to content

parse a sparql json result set to a TupleQueryResult #3670

Answered by D063520
D063520 asked this question in Q&A
Discussion options

You must be logged in to vote

@hmottestad thank you for the pointer! I managed with

SPARQLResultsJSONParser sparqlResultsJSONParser = new SPARQLResultsJSONParser();
TupleQueryResultBuilder tupleQueryResultHandler = new TupleQueryResultBuilder();
sparqlResultsJSONParser.setQueryResultHandler(tupleQueryResultHandler);
sparqlResultsJSONParser.parseQueryResult(inputstream);
TupleQueryResult tupleQueryResult = tupleQueryResultHandler.getQueryResult();

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@hmottestad
Comment options

@D063520
Comment options

@hmottestad
Comment options

@hmottestad
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by D063520
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants