Take a look at ResultSetFactory:
https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/ResultSetFactory.html

On Mon, Mar 26, 2018 at 6:48 PM, Élie Roux <[email protected]>
wrote:

> Dear All,
>
> I'm trying to transform a String in the format of a SPARQL Select JSON
> Result into a org.apache.jena.query.ResultSet, but it proves much more
> difficult than I anticipated. What I'm trying to achieve is really
> starting with a json string, I can't use a QueryExecution.execSelect().
>
> I initially tried:
>
> ResultSet res = ResultSetMgr.read(myjsonstring, Lang.JSONLD);
>
> but the second argument is obviously wrong and there doesn't seem to be
> a Lang for the SPARQL json result format.
>
> I then tried to understand how the ResultSet was constructed in
> QueryExecution.execSelect, but I have to admit I got lost very quickly
> as there are many classes I'm not familiar with (Plan for instance)...
>
> Is there something obvious (or non-obvious) that I missed? Is it
> possible to achieve what I want?
>
> Thank you,
> --
> Elie
>

Reply via email to