Hello Tim,
this looks like a mismatch of (very) old SPIN RDF files and the current
SPIN engine implementation in Java. Could you check whether your rules
contain any sp:Insert instances? All UPDATE rules should be using
sp:Modify. You can convert the by simply re-assigning them from a TBC
form, i.e. find all instances of sp:Insert, and enter a dummy character
such as a space and then hit enter to re-assign them. This should create
sp:Modify instances which can be parsed correctly.
If this does not work, please send me the file where this error happens.
Thanks
Holger
On 7/17/2014 1:05, Tim Smith wrote:
Hi,
I'm running an SM script that contains an sml:ApplyTopSPIN module.
The module executes a number of spin:rules.
While executing, I receive this error in the Console window (stack
trace below):
Error: java.lang.ClassCastException:
org.topbraid.spin.model.update.impl.InsertImpl cannot be cast to
org.topbraid.spin.model.CommandWithWhere
Any idea what type of operation would cause this error? There are a
number of complicated spin:rules so I'm hesitant to dive in and try to
debug without some clue as to what query/function to look for.
Thanks in advance for your help,
Tim
Stack trace:
java.lang.reflect.InvocationTargetException
at
org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:153)
at
org.topbraidcomposer.core.util.ThreadUtil$1$1.run(ThreadUtil.java:64)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException:
org.topbraid.spin.model.update.impl.InsertImpl cannot be cast to
org.topbraid.spin.model.CommandWithWhere
at org.topbraid.spin.util.SPINQueryFinder.add(SPINQueryFinder.java:81)
at
org.topbraid.spin.util.SPINQueryFinder.getClass2QueryMap(SPINQueryFinder.java:134)
at
org.topbraid.spin.sparqlmotion.modules.impl.ApplyTopSPINModule.addNewTriples(ApplyTopSPINModule.java:114)
at
org.topbraid.spin.sparqlmotion.modules.impl.ApplyTopSPINModule.addNewTriples(ApplyTopSPINModule.java:152)
at
org.topbraid.spin.sparqlmotion.modules.impl.ApplyTopSPINModule.createGraph(ApplyTopSPINModule.java:77)
at
org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getRDFOutput(AbstractSMModule.java:863)
at
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.executeModule(ExecutionEngineImpl.java:178)
at
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.execute(ExecutionEngineImpl.java:120)
at
org.topbraidcomposer.sparqlmotion.views.console.SPARQLMotionConsole.execute(SPARQLMotionConsole.java:79)
at
org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:142)
... 2 more
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise
Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid
Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL
Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.