From: <ca...@in...> - 2006-03-16 15:12:12
|
Hi there! Sure I can. I attach the file with the rules I'm using as a module.=20 The enviroment:=20 - jdk-1.4.2_06 - tm4j-0.9.8 - Windows XP - Running from Eclipse 3.1.0 Build id: I20050627-1435 -------------------------------------------------------------------------= --- The code that use the module: static String query =3D "ned:Reglas-del- = Producto(i\"file:ned.xtm#packseguridadtotal\",$Reglas)?"; qEvaluator.addRulesModule(new FileInputStream(new = File("Functions.tl")),"ned"); qEvaluator.execute(sQuery); -------------------------------------------------------------------------= --- The exception: org.tm4j.tologx.TologParserException: Error parsing query string. at = org.tm4j.tologx.memory.QueryEvaluatorImpl.prepareQuery(QueryEvaluatorImpl= .java:156) at = es.indra.druida.ned.mapa.GestorMapa.ejecutaConsulta(GestorMapa.java:90) at = es.indra.druida.ned.mapa.test.FicheroReglasTest.main(FicheroReglasTest.ja= va:25) Caused by: line 1:1: unexpected token: ned at org.tm4j.tologx.parser.TologParser.clause(TologParser.java:806) at org.tm4j.tologx.parser.TologParser.clauselist(TologParser.java:451) at org.tm4j.tologx.parser.TologParser.query(TologParser.java:512) at = org.tm4j.tologx.memory.QueryEvaluatorImpl.prepareQuery(QueryEvaluatorImpl= .java:152) ... 2 more java.lang.Exception: Error al procesar la consulta siguiente: = ned:Reglas-del-Producto(i"file:ned.xtm#packseguridadtotal",$Reglas) ? at = es.indra.druida.ned.mapa.GestorMapa.ejecutaConsulta(GestorMapa.java:95) at = es.indra.druida.ned.mapa.test.FicheroReglasTest.main(FicheroReglasTest.ja= va:25) -----Mensaje original----- De: Lars Heuer [mailto:he...@se...]=20 Enviado el: jueves, 16 de marzo de 2006 15:41 Para: Ant=F3n Garc=EDa, Carolina CC: tm4...@li... Asunto: Re: [TM4J-users] Problems using a rule from an added module Hi Carolina, [...] > The problem rises when I try to use a rule from that file. I read > in the doc that I must use that prefix to call the rule. For example I = have a rule in that file called > topics-with-foo(...)... > and I should call like this: > ned:topics-with-foo(...)... Can you post the code that uses the module (incl. the "using" directive)? Best regards, Lars --=20 http://semagia.com http://topicgarden.com/mailinglist/ German Topic Maps mailinglist |