Sebastian Hellmann wrote:
> Hello,
> I get the the following error for this OWL Concept:
> Sentence and hasToken some VVPP and hasToken some (APPR and nextToken 
> some VVPP))
> nextToken is transitive.
> 
> *** Error 42000: [Virtuoso Driver][Virtuoso Server]TN...: Exceeded 
> 100.000.000 bytes in transitive temp memory.  use t_distinct, t_max or 
> more T_MAX_memory options to limit the search or increase the pool
> at line 28 of Top-Level:
> sparql define input:inference "http://nlp2rdf.org/schema/rules1";
> SELECT DISTINCT ?subject  {
> ?subject a <http://nlp2rdf.org/ontology/Sentence> .
> ?subject <http://nlp2rdf.org/ontology/hasToken> ?object0.
> ?object0 a <http://nlp2rdf.org/ontology/VVPP> .
> ?subject <http://nlp2rdf.org/ontology/hasToken> ?object1.
> ?object1 a <http://nlp2rdf.org/ontology/APPR> .
> ?object1 <http://nlp2rdf.org/ontology/nextToken> ?object2.
> ?object2 a <http://nlp2rdf.org/ontology/VVPP>  } ;
> 
> I've read about option(transitive, t_in() and I tried this:
> object1 <http://nlp2rdf.org/ontology/nextToken> ?object2
> OPTION (TRANSITIVE , t_in(?object1), t_out(?object2), T_DIRECTION 1 , 
> T_NO_CYCLES) .
> unsuccessfully...
> 
> How is it possible to just increase  T_MAX_memory ?

Personally I don't know; but I'd like to :)

in the meantime; I found that in recent times I've not hit the max
memory limit - I'd suggest trying the following options in the meantime:

object1 <http://nlp2rdf.org/ontology/nextToken> ?object2
OPTION (TRANSITIVE , T_DISTINCT, t_in(?object1), t_out(?object2),
t_max(6), T_DIRECTION 1 , T_NO_CYCLES) .

feel free to use either / or T_DISTINCT / t_max and swap out the values
to something that runs quickly yet gives you the results you want.

Reply via email to