I am trying to perform some reasoning using SPIN 1.2.0, with Jena
2.6.4 and ARQ 2.8.

The following is a code sample that is failing to run at preset...

Model assessment =
ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);
assessment.add(observation);

SPINModuleRegistry.get().init();
String rulePath = ".../QualityRules.n3";
Model rules = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);
try
{
        rules.read(new FileInputStream(rulePath), "http://localhost/
QualityRules", "N3");
}
catch(Exception ex)
{
        ex.printStackTrace();
}

//Create model for inferred triples
Model newTriples =
ModelFactory.createDefaultModel(ReificationStyle.Minimal);

SPINInferences.run(assessment, newTriples, null, null, false, null);


However, this is resulting in a NoSuchMethodError, stack trace as
follows...

java.lang.NoSuchMethodError:
org.topbraid.spin.inference.SPINInferences.run(Lcom/hp/hpl/jena/rdf/
model/Model;Lcom/hp/hpl/jena/rdf/model/Model;Lorg/topbraid/spin/
inference/SPINExplanations;Ljava/util/List;ZLorg/topbraid/spin/util/
ProgressMonitor;)

I have previously had similar code working in SPIN 1.1.1; could this
be an issue within 1.2?

-- 
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
[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

Reply via email to