From: <ca...@in...> - 2006-03-10 13:44:14
|
Hi there all,=20 I'm trying to add a file as a rules module to a query evaluator. I do it = successfully and I use the prefix "ned". 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 ru= le in that file called topics-with-foo(...)... and I should call like this: ned:topics-with-foo(...)... If I execute the query I obtain the following exception: org.tm4j.tologx.TologParserException: Error parsing query string. at org.tm4j.tologx.memory.QueryEvaluatorImpl.prepareQuery(QueryEvaluator= Impl.java:155) at es.indra.druida.ned.mapa.GestorMapa.ejecutarConsulta(GestorMapa.java:= 122) at es.indra.druida.ned.mapa.beans.NEDTopicCaracteristica.obtenerValores(= NEDTopicCaracteristica.java:134) at es.indra.druida.ned.mapa.beans.NEDTopicCaracteristica.setTopico(NEDTo= picCaracteristica.java:78) at es.indra.druida.ned.mapa.beans.NEDTopicRegla.cargarNEDTopic(NEDTopicR= egla.java:311) at es.indra.druida.ned.mapa.beans.NEDTopicRegla.convertirListasCondicion= esResultados(NEDTopicRegla.java:334) at es.indra.druida.ned.mapa.beans.ReglaNecesidad.<init>(ReglaNecesidad.j= ava:65) at es.indra.druida.ned.mapa.servicios.CargarReglas.crearReglas(CargarReg= las.java:92) at es.indra.druida.ned.mapa.servicios.CargarReglas.crearReglas(CargarReg= las.java:52) at es.indra.druida.ned.mapa.servicios.CargarReglas.main(CargarReglas.jav= a:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Caused by: line 1:26: unexpected token: ned at org.tm4j.tologx.parser.TologParser.clause(TologParser.java:792) at org.tm4j.tologx.parser.TologParser.clauselist(TologParser.java:437) at org.tm4j.tologx.parser.TologParser.query(TologParser.java:498) at org.tm4j.tologx.memory.QueryEvaluatorImpl.prepareQuery(QueryEvaluator= Impl.java:151) ... 14 more Any idea? Thanks in advance! Carolina -------------------------------------------------------------------------= ------------------------------------------ Este correo electr=F3nico y, en su caso, cualquier fichero anexo al mismo= , contiene informaci=F3n de car=E1cter confidencial exclusivamente dirigi= da a su destinatario o destinatarios. Queda prohibida su divulgaci=F3n, c= opia o distribuci=F3n a terceros sin la previa autorizaci=F3n escrita de = Indra. En el caso de haber recibido este correo electr=F3nico por error, = se ruega notificar inmediatamente esta circunstancia mediante reenv=EDo a= la direcci=F3n electr=F3nica del remitente. POR FAVOR, ANTES DE IMPRIMIR= ESTE CORREO ELECTR=D3NICO CONSIDERE SU APORTACI=D3N A LA CONSERVACI=D3N = DEL MEDIO AMBIENTE POR LA REDUCCI=D3N DE CONSUMO DE PAPEL. The information in this e-mail and in any attachments is confidential and= solely for the attention and use of the named addressee(s). You are here= by notified that any dissemination, distribution or copy of this communic= ation is prohibited without the prior written consent of Indra. If you ha= ve received this communication in error, please, notify the sender by rep= ly e-mail. PLEASE CONSIDER YOUR ENVIRONMENTAL RESPONSIBILITY BEFORE PRINT= ING THIS E-MAIL. |