Hi Samuel,

your rules seem to use the magic property tops:definesStatements, which only works when you have a file open in TBC, because it needs to access the currently active query graph. Try to avoid using this magic property.

HTH
Holger


On 4/05/2016 4:25, Samuel Zweifel wrote:
Hi all,

When I try to run inferences on my ontology I get an exception in the inference engine:

    eclipse.buildId=unknown
    java.version=1.8.0_91
    java.vendor=Oracle Corporation
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
    Command-line arguments:  -os linux -ws gtk -arch x86_64
    org.topbraidcomposer.core
    Error
    Tue May 03 10:49:17 PDT 2016
    Could not execute inferences
    java.lang.reflect.InvocationTargetException
    at
    
org.topbraidcomposer.inference.change.InferenceChange.run(InferenceChange.java:106)
    at
    
org.topbraidcomposer.inference.change.InferenceChange.execute(InferenceChange.java:58)
    at
    org.topbraid.core.change.ChangeOperation.execute(ChangeOperation.java:105)
    at
    
org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:516)
    at
    
org.topbraid.core.change.AbstractChangeEngine.execute(AbstractChangeEngine.java:272)
    at
    
org.topbraidcomposer.core.change.TBCChangeEngine.access$0(TBCChangeEngine.java:1)
    at
    
org.topbraidcomposer.core.change.TBCChangeEngine$2.run(TBCChangeEngine.java:155)
    at
    
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
    Caused by: java.lang.NullPointerException
    at
    
org.topbraid.sparql.pfunctions.internal.qa.DefinesStatements.exec(DefinesStatements.java:134)
    at
    
com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase$RepeatApplyIteratorPF.nextStage(PropertyFunctionBase.java:108)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage(QueryIterRepeatApply.java:115)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:67)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIterProcedure.hasNextBinding(QueryIterProcedure.java:74)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage(QueryIterRepeatApply.java:108)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:67)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIterBlockTriples.hasNextBinding(QueryIterBlockTriples.java:64)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.makeNextStage(QueryIterRepeatApply.java:108)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.hasNextBinding(QueryIterRepeatApply.java:67)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIterProcessBinding.hasNextBinding(QueryIterProcessBinding.java:60)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBinding(QueryIteratorWrapper.java:40)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBinding(QueryIteratorWrapper.java:40)
    at
    
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:112)
    at org.apache.jena.atlas.iterator.Iter$5.hasNext(Iter.java:353)
    at
    
com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execConstruct(QueryExecutionBase.java:228)
    at
    
com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execConstruct(QueryExecutionBase.java:204)
    at
    
org.topbraid.sparql.LockOptimizedQueryExecution.execConstruct(LockOptimizedQueryExecution.java:147)
    at
    
org.topbraid.spin.inference.SPINInferences.runCommandOnClass(SPINInferences.java:316)
    at
    org.topbraid.spin.inference.SPINInferences.run(SPINInferences.java:242)
    at
    
org.topbraid.spin.sparqlmotion.modules.impl.ApplyTopSPINModule.addNewTriples(ApplyTopSPINModule.java:121)
    at
    
org.topbraid.spintb.inference.SPINInferenceEngine.addTriples(SPINInferenceEngine.java:80)
    at
    
org.topbraid.inference.change.AbstractInferenceChange.runReallyNow(AbstractInferenceChange.java:168)
    at
    
org.topbraid.inference.change.AbstractInferenceChange.runReally(AbstractInferenceChange.java:131)
    at
    
org.topbraidcomposer.inference.change.InferenceChange.access$0(InferenceChange.java:1)
    at
    
org.topbraidcomposer.inference.change.InferenceChange$3.run(InferenceChange.java:90)
    at java.lang.Thread.run(Thread.java:745)

Does anyone have an idea what may cause this error? I get exactly the same error also from the plugin "org.topbraidcomposer.spin".

Thanks in advance.

Regards,
Samuel
--
You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
---
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), 
Reference Data Manager (RDM), TopBraid Composer, TopBraid Live, TopBraid Insight, 
SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to [email protected]
--- 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.

Reply via email to