Class AlchemyExample
java.lang.Object
org.tweetyproject.logics.mln.examples.AlchemyExample
Example code illustrating the use of the Alchemy reasoner.
- Author:
- Matthias Thimm
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AlchemyExample
public AlchemyExample()Default constructor forAlchemyExample
.This constructor initializes the example for running the Alchemy reasoner with a predefined MLN setup.
-
-
Method Details
-
main
The main method to run the Alchemy reasoner example.This method sets up an MLN with smokers and cancer, parses a query, and invokes the Alchemy reasoner to compute the result. It prints the result of the query to the console.
- Parameters:
args
- command-line arguments (not used in this example)- Throws:
ParserException
- if there is an error during parsingIOException
- if there is an I/O error
-