After long hours of anxiety, I discovered that using unions as in

CONSTRUCT
{
   bdr:MW23703_1183 ?instp ?insto .
   ?t ?tp ?to .
   ?ancestor :hasPart ?ancestorPart .
}
WHERE
{
  {
     bdr:MW23703_1183 ?instp ?insto . # 200ms alone
  } union {
     bdr:MW23703_1183 :hasTitle ?t . ?t ?tp ?to . #245ms alone
 } union {
   bdr:MW23703_1183 :partOf+ ?ancestor . ?ancestor :hasPart
?ancestorPart . # 200ms alone
  }
}
is much faster than using the bgp in the same group... is there any
reason for that?

Best,
-- 
Elie

Reply via email to