You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Zen 98052 <z9...@outlook.com> on 2016/04/11 22:38:11 UTC

execute more than 1 sparql queries

Hi,

Client send a Sparql query to my service, which then the code pass the query to QueryFactory.create(), and then pass the returned query object to QueryExecutionFactory.create()

Now client wants to send 2 queries (instead of making 2 calls to my service), can QueryFactory.create take more than 1 Sparql queries in this case?


Thanks,

Z

Re: execute more than 1 sparql queries

Posted by Zen 98052 <z9...@outlook.com>.
Thanks for the info Andy!

________________________________________
From: Andy Seaborne <an...@apache.org>
Sent: Tuesday, April 12, 2016 4:50 AM
To: users@jena.apache.org
Subject: Re: execute more than 1 sparql queries

On 11/04/16 21:38, Zen 98052 wrote:
> Hi,
>
> Client send a Sparql query to my service, which then the code pass
> the query to QueryFactory.create(), and then pass the returned query
> object to QueryExecutionFactory.create()
>
> Now client wants to send 2 queries (instead of making 2 calls to my
> service), can QueryFactory.create take more than 1 Sparql queries in
> this case?

One query at a time for various reasons.

The HTTP keep-alive should take care of the efficiency by leaving the
connection open and reusing the TCP stream.  If both ends play that game
correctly.

        Andy

>
>
> Thanks,
>
> Z
>


Re: execute more than 1 sparql queries

Posted by Andy Seaborne <an...@apache.org>.
On 11/04/16 21:38, Zen 98052 wrote:
> Hi,
>
> Client send a Sparql query to my service, which then the code pass
> the query to QueryFactory.create(), and then pass the returned query
> object to QueryExecutionFactory.create()
>
> Now client wants to send 2 queries (instead of making 2 calls to my
> service), can QueryFactory.create take more than 1 Sparql queries in
> this case?

One query at a time for various reasons.

The HTTP keep-alive should take care of the efficiency by leaving the 
connection open and reusing the TCP stream.  If both ends play that game 
correctly.

	Andy

>
>
> Thanks,
>
> Z
>