tmlab / tmql

Automatically exported from code.google.com/p/tmql
1 stars 0 forks source link

TMQL INSERT, IRI with brackets #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I assume this has something to do with the brackets in the IRI

        <dependency>
            <groupId>de.topicmapslab.tmql4j</groupId>
            <artifactId>tmql4j-insert</artifactId>
            <version>3.1.0-SNAPSHOT</version>
        </dependency>

INSERT ''' 
%prefix tmcl http://psi.topicmaps.org/tmcl/  
%prefix tmdm http://psi.topicmaps.org/iso13250/model  
def overlaps($tt1, $tt2) 
  ?c isa tmcl:overlap-declaration. 
  tmcl:overlaps(tmcl:allows : ?c, 
  tmcl:allowed : $tt1) 
  tmcl:overlaps(tmcl:allows : ?c, 
  tmcl:allowed : $tt2) 
end  
overlaps(<http://en.wikipedia.org/wiki/City>, 
<http://en.wikipedia.org/wiki/State_(administrative_division)>) '''

Cannot insert new values
de.topicmapslab.tmql4j.insert.exceptions.InsertException: Cannot insert new 
values
    at de.topicmapslab.tmql4j.insert.util.InsertHandler.insert(InsertHandler.java:115)
    at de.topicmapslab.tmql4j.insert.util.InsertHandler.insert(InsertHandler.java:80)
    at de.topicmapslab.tmql4j.insert.components.interpreter.InsertExpressionInterpreter.interpretInsertClause(InsertExpressionInterpreter.java:112)
    at de.topicmapslab.tmql4j.insert.components.interpreter.InsertExpressionInterpreter.interpret(InsertExpressionInterpreter.java:64)
    at de.topicmapslab.tmql4j.insert.components.interpreter.InsertExpressionInterpreter.interpret(InsertExpressionInterpreter.java:40)
    at de.topicmapslab.tmql4j.insert.components.interpreter.QueryExpressionInterpreter.interpret(QueryExpressionInterpreter.java:74)
    at de.topicmapslab.tmql4j.insert.components.interpreter.QueryExpressionInterpreter.interpret(QueryExpressionInterpreter.java:44)
    at de.topicmapslab.tmql4j.grammar.productions.ExpressionImpl.interpret(ExpressionImpl.java:319)
    at de.topicmapslab.tmql4j.components.processor.TmqlProcessorImpl.query(TmqlProcessorImpl.java:55)
    at de.topicmapslab.tmql4j.path.components.processor.runtime.TmqlRuntime2007.doRun(TmqlRuntime2007.java:87)
    at de.topicmapslab.tmql4j.components.processor.runtime.TmqlRuntimeImpl.run(TmqlRuntimeImpl.java:160)
    at de.topicmapslab.tmql4j.components.processor.runtime.TmqlRuntimeImpl.run(TmqlRuntimeImpl.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: de.topicmapslab.tmql4j.exception.TMQLRuntimeException: Cannot 
convert construct to CTM
    at de.topicmapslab.tmql4j.insert.util.CTMConverter.toTopicMap(CTMConverter.java:87)
    at de.topicmapslab.tmql4j.insert.util.InsertHandler.insert(InsertHandler.java:104)
    ... 41 more
Caused by: org.tmapix.io.TMAPIXParseException: 
com.semagia.mio.MIOParseException: Illegal character <<> at line 1 column: 326
    at org.tmapix.io.AbstractTopicMapReader.read(AbstractTopicMapReader.java:145)
    at org.tmapix.io.CTMTopicMapReader.read(CTMTopicMapReader.java:34)
    at de.topicmapslab.tmql4j.insert.util.CTMConverter.toTopicMap(CTMConverter.java:83)
    ... 42 more
Caused by: com.semagia.mio.MIOParseException: Illegal character <<> at line 1 
column: 326
    at com.semagia.mio.ctm.RealCTMLexer.token(RealCTMLexer.java:929)
    at com.semagia.mio.ctm.CTMLexer.advance(CTMLexer.java:64)
    at com.semagia.mio.ctm.RealCTMParser.yyparse(RealCTMParser.java:757)
    at com.semagia.mio.ctm.CTMParser.parse(CTMParser.java:43)
    at com.semagia.mio.ctm.CTMDeserializer.doParse(CTMDeserializer.java:79)
    at com.semagia.mio.base.AbstractDeserializer.parse(AbstractDeserializer.java:94)
    at org.tmapix.io.AbstractTopicMapReader.read(AbstractTopicMapReader.java:131)
    ... 44 more

Original issue reported on code.google.com by arnim.bl...@gmail.com on 4 Mar 2011 at 1:08

GoogleCodeExporter commented 9 years ago
The Error is occurred by the semagio ctm deserializer as you can see at the 
exception cause.
The only think we can do is to replace the version of semagia.

Original comment by Sven.Kro...@googlemail.com on 4 Mar 2011 at 4:26

GoogleCodeExporter commented 9 years ago
An update should work since 
http://cxtm-tests.svn.sourceforge.net/viewvc/cxtm-tests?view=revision&revision=1
77 works

Original comment by lars.he...@gmail.com on 6 Mar 2011 at 10:47

GoogleCodeExporter commented 9 years ago

Original comment by Sven.Kro...@googlemail.com on 8 Mar 2011 at 2:44