Hello Holger;
 
Thanks!
 
I have registered my java class (RunModule) like in the pluging development 
documentation. 
The module (myFunction), I am trying to run, is not a "Java Class Module". 
 
Like to say, I have to register my Module. In the Java Doc there is the 
following method :
SMModuleFactory.get().registerModuleType(Object moduleType,SMModuleType 
addModuleType, String classURI)

Could you help me to use it ?  
 
>Note that this very mechanism is changing slightly with 3.6 and we are working 
>on an updated version of this plug-in development documentation.

We have developped more then 20 new modules with the plugin development. I hope 
we'll have too much change in our code.
 
Thank you.
 
Regards
 
D.Hondjack
 


________________________________

De : topbraid-users@googlegroups.com [mailto:topbraid-users@googlegroups.com] 
De la part de Holger Knublauch
Envoyé : samedi 3 mars 2012 00:50
À : topbraid-users@googlegroups.com
Objet : Re: [topbraid-users] SPIN API - Running a Script Module - Topbraid 
Plugin


Hello Hondjack,

your implementation looks good, but I don't see where you have registered the 
Java class with the SPARQLMotion module registry. This requires the use of an 
Eclipse extension point, as outlined here

    http://topquadrant.com/products/SPARQLMotion_docs/SPARQLMotion_extend.html

Note that this very mechanism is changing slightly with 3.6 and we are working 
on an updated version of this plug-in development documentation.

Regards,
Holger


On 3/3/2012 1:59, DEHAINSALA Hondjack (AREVA) wrote: 

        Hello, 
         
        
        I am using Topbraid 3.5.2.
         
        I want to develop a Topbraid Plugin that will run a SPARQLMotion Module 
in a Script in a Menu.
         
        I found any where a sample of codew to run by SPIN-API a Script Module. 
I try to something with the Javadoc (See the attachment)
         
        The program works very well when in the script, there are only Native 
TopBraid Modules like : ImportRDFFromWorkspace or ApplyConstruct. (see 
script-v1.owl).
         
        When I defined a custum module (in script-v2.owl), for example a new 
function, I have the following error.
        java.lang.IllegalArgumentException: Cannot find module type for 
http://aire.madison.areva.com/menu/scripts-v2#myFunction_1 (instance of 
http://aire.madison.areva.com/menu/scripts-v2#myFunction)

        at 
org.topbraid.spin.sparqlmotion.modules.SMModuleFactory.create(SMModuleFactory.java:72)

        at 
org.topbraid.spin.sparqlmotion.scripts.ScriptFactory.createModule(ScriptFactory.java:58)

        at 
org.topbraid.spin.sparqlmotion.scripts.ScriptFactory.createScript(ScriptFactory.java:113)

        at 
org.topbraid.spin.sparqlmotion.scripts.ScriptFactory.createScript(ScriptFactory.java:93)

        at 
com.areva.madison.aire.eclipseplugin.script.RunModule.createGraph(RunModule.java:47)

        at 
org.topbraid.spin.sparqlmotion.modules.AbstractSMModule.getRDFOutput(AbstractSMModule.java:849)

        at 
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.executeModule(ExecutionEngineImpl.java:164)

        at 
org.topbraid.spin.sparqlmotion.engine.impl.ExecutionEngineImpl.execute(ExecutionEngineImpl.java:117)

        at 
org.topbraidcomposer.sparqlmotion.views.console.SPARQLMotionConsole.execute(SPARQLMotionConsole.java:79)

        at 
org.topbraidcomposer.sparqlmotion.actions.AbstractExecuteSPARQLMotionAction$1.run(AbstractExecuteSPARQLMotionAction.java:137)

        at org.topbraidcomposer.core.util.ThreadUtil$1$1.run(ThreadUtil.java:64)

        at java.lang.Thread.run(Unknown Source)

        Could you help ? Where I can find some sample of code ?

        Regards

        Hondjack

        (Sorry for my english!)

        -- 
        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 Ensemble, SPARQLMotion and SPIN.
        To post to this group, send email to
        topbraid-users@googlegroups.com
        To unsubscribe from this group, send email to
        topbraid-users+unsubscr...@googlegroups.com
        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
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
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
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to