You may want to run a local version of the PizzaFinder application for several reasons:
- You want to try it with your own version of the pizza ontology (created through one of our tutorials)
- You might have firewalls set up so that the webstart version cannot find the resources it needs
This is a relatively straightforward exercise. You will need to download the Pizza Finder application package.
Then, follow these simple steps:
- Unzip the package somewhere convenient.
- Locate your version of the pizza ontology, or use the one provided in the package.
- Modify the config file – it should look something like below.
- You will probably only need to modify OntologyLocation to point to your version of the ontology
- You may have to change the names of the prominent classes to match those of your version – the current defaults should be fine for the tutorial or download version of the pizza tutorial
<?xml version="1.0" encoding="utf-8"?> <PizzaFinderPrefs> <OntologyLocation url="file:///C:/YourDirectory/pizza-latest.owl"/> <PizzaClass name="NamedPizza"/> <VegetarianPizzaClass name="VegetarianPizza"/> <HotToppingClass name="SpicyTopping"/> <ToppingClass name="PizzaTopping"/> <ToppingProperty name="hasTopping"/> <PizzaSizeProperty name="hasPizzaSize"/> </PizzaFinderPrefs>
- Finally, run the PizzaFinder JAR file using the command line (or one of the handy scripts). Because the reasoner requires native libraries, it is important to set the java.lib.path variable (the scripts do this for you). After a short pause the “Please wait” message should disappear and the GUI will start.