Hello,
I' ve sent a query which consists of big number of UNION blocks. Then I' ve
received this error:
"Virtuoso 37000 Error SP031: SPARQL compiler: The nesting depth of
subexpressions exceed limits of SPARQL compiler"
My UNION blocks is in the form of below:
{ ?y_0 <http://www.w3.org/2002/07/owl#sameAs> <
http://dbpedia.org/resource/Tetrahydrocannabinol> .
?Int_0 <
http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/interactionDrug1>
?y_0 .
?Int_0 <
http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/interactionDrug2>
?IntDrug_0 .
?Int_0 <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/text>
?IntEffect_0
}
UNION
{ ?y_1 <http://www.w3.org/2002/07/owl#sameAs> <
http://dbpedia.org/resource/Mescaline> .
?Int_1 <
http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/interactionDrug1>
?y_1 .
?Int_1 <
http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/interactionDrug2>
?IntDrug_1 .
?Int_1 <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/text>
?IntEffect_1
}
UNION
{ ?y_2 <http://www.w3.org/2002/07/owl#sameAs> <
http://dbpedia.org/resource/Bacillus_Calmette-Gu%C3%A9rin> .
?Int_2 <
http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/interactionDrug1>
?y_2 .
?Int_2 <
http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/interactionDrug2>
?IntDrug_2 .
?Int_2 <http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/text>
?IntEffect_2
}
...
I use POST request method to send this big query.
How this error can be solved?
Best,
Burak Yönyül
|