Hello SungKu,
did you update the Jena version as well? The newest SPIN API requires
Jena 2.11
HTH
Holger
On 11/26/2013 16:14, SungKu Kang wrote:
Hello, I've been working with the previous version of SPIN API (1.2.0)
and recently migrated my project to SPIN API 1.3.1 (with adding
AWT-based GUI)
Then I found an error which I haven't seen before...
(Kennedy inference example worked well as before)
Here's the inference code and the error.
// Inference code (the type of OWLmodel is OntModel) //
String WholeUpdate = UpdatePrefix + UpdateBody;
// Convert SPARQL query to SPIN
SPINModuleRegistry.get().init();
SPINModuleRegistry.get().registerAll(OWLmodel, null);
Model UpdateModel = ModelFactory.createDefaultModel();
String SPINprefixes =
ARQFactory.get().createPrefixDeclarations(UpdateModel);
Model NewTriple = ModelFactory.createDefaultModel();
UpdateRequest request = UpdateFactory.create(SPINprefixes + WholeUpdate);
ARQ2SPIN a2s = new ARQ2SPIN(UpdateModel);
Update SPINupdate = a2s.createUpdate(request.getOperations().get(0),
null);
UpdateModel.add(OWL.Thing, SPIN.rule, SPINupdate);
OWLmodel.add(UpdateModel);
SPINInferences.run(OWLmodel, NewTriple, null, null, false, null);
OWLmodel.add(NewTriple);
////////
// Error //
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:
com.hp.hpl.jena.update.UpdateExecutionFactory.create(Lcom/hp/hpl/jena/update/Update;Lcom/hp/hpl/jena/update/GraphStore;Lcom/hp/hpl/jena/sparql/engine/binding/Binding;)Lcom/hp/hpl/jena/update/UpdateProcessor;
at
org.topbraid.spin.inference.SPINInferences.runCommandOnClass(SPINInferences.java:361)
at org.topbraid.spin.inference.SPINInferences.run(SPINInferences.java:241)
at org.topbraid.spin.inference.SPINInferences.run(SPINInferences.java:139)
at org.topbraid.spin.inference.SPINInferences.run(SPINInferences.java:107)
////////
Anyone have idea about the issue?
Regards,
SungKu
--
-- 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/groups/opt_out.
--
-- 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/groups/opt_out.