Re: [Virtuoso-users] Subqueries in different graphs, performance problem

2016-04-28 Thread Peter Lawrence
First of all is it possible to simplify further to remove the STR manipulations. These are bound to give any SPARQL query optimizer a 'hard time'. Perhaps something like this: SELECT ?c FROM NAMED { GRAPH { ?c d ?e . FILTER (?c = ?h) . { SELECT ?h

Re: [Virtuoso-users] Subqueries in different graphs, performance problem

2016-04-26 Thread Pantelis Natsiavas
Thank you very much Jerven for your advice. I will try it and let you know if the query is faster. Kind regards, Pantelis Natsiavas 2016-04-21 10:14 GMT+03:00 Jerven Tjalling Bolleman < jerven.bolleman@sib.swiss>: > > As another virtuoso user. > Can't you make a simpler query without a subselec

Re: [Virtuoso-users] Subqueries in different graphs, performance problem

2016-04-25 Thread Jerven Tjalling Bolleman
As another virtuoso user. Can't you make a simpler query without a subselect? SELECT ?a FROM NAMED { GRAPH { ?c d ?e . BIND(REPLACE(STR(?e), "f", "", "i") AS ?g) BIND(REPLACE(STR(?c), "f", "", "i") AS ?a) FILTER (?g = STR(?h)) . }