Jorge,
Have you looked at
https://jena.apache.org/documentation/query/service_enhancer.html
It might have features of use to you.
Andy
On 14/12/2023 08:25, George News wrote:
Hi,
I have deployed several Fuseki instances. This email scenario is just
for 2.
I was testing the SERVICE option in order to launch the same request to
both instances of Fuseki and merge the result under one response.
The SPARQL request I launched is the following:
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT * WHERE {
{ SERVICE <http://localhost:3031/ds/query>
{
SELECT ?anything WHERE{?anything rdf:type ?bb}
} BIND (<http://localhost:3031/ds/query> AS ?serviceLabel)
}
UNION
{ SERVICE <http://localhost:3032/ds/query>
{
SELECT ?anything WHERE{?anything rdf:type ?bb}
} BIND (<http://localhost:3032/ds/query> AS ?serviceLabel)
}
}
The result was the expected. However when using Wireshark and analysing
the logs, I noticed that the request are not send in parallel, but just
one and then the other. This is somehow a waste of time ;)
Is there any way to parallelize sending the same request to many Fuseki
instances and merge the responses? I guess I can make my own solution
using Jena, but I wanted to know if it would be possible using SPARQL.
Thanks.
Jorge