On 14/03/18 12:48, Martynas Jusevičius wrote:
Andy,
I don't think that helps much. In fact, I think treating ASK result
differently from SELECT breaks some abstractions.
What I mean is that the result data structure normally maps to a media type
and not its query form. That way we can have
Andy,
I don't think that helps much. In fact, I think treating ASK result
differently from SELECT breaks some abstractions.
What I mean is that the result data structure normally maps to a media type
and not its query form. That way we can have generic parsers/serializers
that are orthogonal to
JSONInput.make(InputStream) -> SPARQLResult
Andy
On 12/03/18 10:13, Martynas Jusevičius wrote:
Hi Andy,
I'm not using QueryExecution here, I'm trying to parse JSON read from HTTP
InputStream using ResultSetFactory.fromJSON().
Then I want to carry the result set, maybe do some logic based
Hi Andy,
I'm not using QueryExecution here, I'm trying to parse JSON read from HTTP
InputStream using ResultSetFactory.fromJSON().
Then I want to carry the result set, maybe do some logic based on it, and
possibly serialize it back using ResultSetFormatter.
Is that not possible with ASK result?
On 11/03/18 23:03, Martynas Jusevičius wrote:
Hi,
I'm getting the following JSON result from an ASK query:
{ "head": {}, "boolean": true }
However, the method that usually works fine, will not parse it from
InputStream (Jena 3.0.1):
Hi,
I'm getting the following JSON result from an ASK query:
{ "head": {}, "boolean": true }
However, the method that usually works fine, will not parse it from
InputStream (Jena 3.0.1):
org.apache.jena.sparql.resultset.ResultSetException: Not a ResultSet
result