public class AlchemyMlnReasoner extends AbstractMlnReasoner
| Constructor and Description |
|---|
AlchemyMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase)
Creates a new AlchemyMlnReasoner for the given Markov logic network.
|
AlchemyMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
Creates a new AlchemyMlnReasoner for the given Markov logic network.
|
| Modifier and Type | Method and Description |
|---|---|
double |
doQuery(net.sf.tweety.logics.fol.syntax.FolFormula query)
Performs the actual querying.
|
void |
reset()
Resets this reasoner (removes cached files etc.)
|
void |
setAlchemyInferenceCommand(String inferCmd)
Sets the console command for Alchemy inference (default is 'infer').
|
computeWeight, getSignature, numberOfGroundSatisfactions, querypublic AlchemyMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase)
beliefBase - a Markov logic network.public AlchemyMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
beliefBase - a Markov logic network.signature - another signature (if the probability distribution should be defined
on that one (that one should subsume the signature of the Markov logic network)public void setAlchemyInferenceCommand(String inferCmd)
inferCmd - the console command for Alchemy inference.public double doQuery(net.sf.tweety.logics.fol.syntax.FolFormula query)
AbstractMlnReasonerdoQuery in class AbstractMlnReasonerquery - a fol formula guaranteed to be ground.public void reset()
AbstractMlnReasonerreset in class AbstractMlnReasonerCopyright © 2018. All rights reserved.