OK, I have upgraded to TBC 3.1.0 and upgraded my database from Jena RDB to Jena SDB. Now when I run my SparqlMotion script, the ExportToTDB module throws the following error and stack track:
Error: java.lang.IllegalArgumentException: Cannot find module type for http://www.ares-sg.com/CIEDETS/StoreInstance#ExportToTDB_1 (instance of http://topbraid.org/sparqlmotionlib#ExportToTDB) java.lang.reflect.InvocationTargetException at org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction $1.run(Unknown Source) at org.topbraidcomposer.core.util.ThreadUtil$1$1.run(Unknown Source) at java.lang.Thread.run(Thread.java:613) Caused by: java.lang.IllegalArgumentException: Cannot find module type for http://www.ares-sg.com/CIEDETS/StoreInstance#ExportToTDB_1 (instance of http://topbraid.org/sparqlmotionlib#ExportToTDB) at org.topbraid.sparqlmotion.modules.ModuleFactory.create(Unknown Source) at org.topbraid.sparqlmotion.scripts.ScriptFactory.createModule (Unknown Source) at org.topbraid.sparqlmotion.scripts.ScriptFactory.createScript (Unknown Source) at org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction.createScript (Unknown Source) ... 3 more Root exception: java.lang.IllegalArgumentException: Cannot find module type for http://www.ares-sg.com/CIEDETS/StoreInstance#ExportToTDB_1 (instance of http://topbraid.org/sparqlmotionlib#ExportToTDB) at org.topbraid.sparqlmotion.modules.ModuleFactory.create(Unknown Source) at org.topbraid.sparqlmotion.scripts.ScriptFactory.createModule (Unknown Source) at org.topbraid.sparqlmotion.scripts.ScriptFactory.createScript (Unknown Source) at org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction.createScript (Unknown Source) at org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction $1.run(Unknown Source) at org.topbraidcomposer.core.util.ThreadUtil$1$1.run(Unknown Source) at java.lang.Thread.run(Thread.java:613) Any ideas? Thanks, Kevin On Sep 28, 3:39 pm, Holger Knublauch <[email protected]> wrote: > Hi Kevin, > > support for Jena SDB has been introduced with TBC 3.1. From what I > have heard SDB is generally strongly recommended over Jena DB. > > TDB has left alpha stage recently and will be more prominent with TBC > 3.2 > > Thanks for the stack trace, which only concerns Jena DB support, which > has been removed from our code base already for 3.2. > > Holger > > On Sep 28, 2009, at 12:25 PM, Kevin Matthews wrote: > > > > > According to the help files shipped with TBC, Jena SDB is not > > supported yet. Jena TDB is in alpha, but the help files don't give > > any instructions on how to use it. I'm not opposed to switching from > > Jena RDB as long as I can query and insert triples, I just need the > > appropriate documentation. > > > As for my MultiUnion stack trace that occurs when I use an > > ExportToRDFFile module pointing to my .jenadb file, here it is: > > > java.lang.reflect.InvocationTargetException > > at > > org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction > > $1.run(Unknown Source) > > at org.topbraidcomposer.core.util.ThreadUtil$1$1.run(Unknown Source) > > at java.lang.Thread.run(Thread.java:613) > > Caused by: java.lang.IllegalArgumentException: Could not write to / > > CIEDETS_OWL/Databases/CIEDETS.jenadb: java.lang.ClassCastException: > > com.hp.hpl.jena.graph.compose.MultiUnion > > at > > org.topbraid.sparqlmotion.lib.exportToRDFFile.ExportToRDFFileModule.execute > > (Unknown Source) > > at org.topbraid.sparqlmotion.engine.impl.ExecutionEngine.execute > > (Unknown Source) > > at > > org.topbraid.sparqlmotion.engine.impl.ExecutionEngine.executeModule > > (Unknown Source) > > at org.topbraid.sparqlmotion.engine.impl.ExecutionEngine.execute > > (Unknown Source) > > at > > org.topbraidcomposer.sparqlmotion.views.console.SPARQLMotionConsole.execute > > (Unknown Source) > > ... 3 more > > Caused by: java.lang.ClassCastException: > > com.hp.hpl.jena.graph.compose.MultiUnion > > at org.topbraid.db.graphstore.DBGraphStore.save(Unknown Source) > > at org.topbraid.core.io.IO.write(Unknown Source) > > at org.topbraid.core.io.IO.write(Unknown Source) > > ... 8 more > > > Thanks, > > > Kev > > > On Sep 28, 2:54 pm, Holger Knublauch <[email protected]> wrote: > >> Hi Kevin, > > >> we are removing support for the old .jenadb. Please look into Jena > >> SDB > >> or TDB as alternatives, and both have dedicated SPARQLMotion modules. > > >> Regarding the error message with MultiUnion, please send the complete > >> stack trace (from the Error Log?). > > >> Thanks, > >> Holger > > >> On Sep 28, 2009, at 11:48 AM, Kevin Matthews wrote: > > >>> I am trying to write a SparqlMotion script that constructs some new > >>> triples and inserts them into a Jena database that is running on our > >>> network, but I am having problems doing so. > > >>> Right now I have a very simple SparqlMotion script that contains one > >>> module that constructs a test triple connected to one module that > >>> attempts to insert that triple into my ontology on a Jena database. > >>> When the second module is of type ExportToRDFFile, I get this error: > > >>> Could not write to /CIEDETS_OWL/Databases/CIEDETS.jenadb: > >>> java.lang.ClassCastException: > >>> com.hp.hpl.jena.graph.compose.MultiUnion > > >>> When the second module is of type ExportToOracleRDFDatabase, I get > >>> this error: > > >>> Invalid Oracle URL. > > >>> It seems there are export modules for Oracle, Sesame, text files, > >>> and > >>> spreadsheets, but none for Jena. What am I missing? > > >>> Thanks, > > >>> Kev --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group. 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-composer-users?hl=en -~----------~----~----~----~------~----~------~--~---
