The ontology bean generator plugin is a Protege Tab widget which generates java files representing an ontology that can be used with the JADE environment. With the beangenerator tool you can generate FIPA/JADE compliant ontologies from RDF(S), XML and Protégé projects. (6WP)
Although all the instruction on this wiki page are valid, we strongly recommend that you download and use the latest version of the plug-in, which is accessible on the new Protege wiki, at: http://protegewiki.stanford.edu/index.php/OntologyBeanGenerator_4.0 (AHY)
Note: This plugin works with both Protege frames and Protege OWL ontologies. (6WS)
Download (6WR)
- Download binary distribution from here: beangenerator_bin_Protege_3.2.1.zip (6YS)
- The JADE Abstract ontologies are included in the binary distribution in the projects subfolder. They can also be downloaded from here: abstractJadeOnt.zip (6Z3)
- The bean generator example ontologies are included in the binary distribution in the examples subfolder. They can also be downloaded from here: beangenerator_examples.zip (6Z4)
- Source code: http://jade.tilab.com/community-source.htm (9CD)
Installation (6YV)
- Download the zip file from the binary distribution and unzip it in the Protege plugins directory (6YW)
How to use the plugin (6WQ)
- Open a new or existing Protégé project (6WZ)
- Include/import JADE Abstract Ontology. (6X0)
- For Frames ontologies, include the SimpleJADEAbstractOntology.pprj into your project. (6X2)
- For OWL ontologies, import the OWLSimpleJADEAbstractOntology.owl into your project. (6YX)
- The JADE ontologies are located in the plugin directory (Protege_install_dir/plugins/nl.uva.psy.swi.beangenerator/projects)) (6Z0)
- Fill the ontology: (6YA)
- Create concepts by making subclasses of the class Concept , e.g. CD, Items. (6YF)
- Create agentactions by making subclasses of the class AgentAction , e.g. Sell, Buy . (6YG)
- create agents by making subclasses of the class AID , e.g. Seller, Buyer (6YH)
- Create predicates by making subclasses of the class Predicate , e.g. Owns, Contains (6YI)
- Go to menu of Protégé: Project->Configure... and select the OntologyBeanGeneratorTab checkbox (6Y3)
- Export the Java files (6YJ)
- Select the OntologyBeanGenerator tab (6Y6)
- Specify (or select from the combobox) a package name, e.g. mypackage.onto (6Y7)
- Specify (or select from the combobox or from the [...] button) a location where the java files are to be created (make sure the directory exists) e.g. .../projects/mypackage/src/mypackage/onto (6Y8)
- Specify (or select from the combobox) a ontology name: e.g. Newspaper (6Y9)
- Press the generate button (old generated files will be overwritten) (6XL)
- Use the exported Java files (6YK)
Limitations (72A)
- The plugin has be initially developed for Frames ontologies and later adapted for OWL. There are features that have not been tested with OWL ontologies. In case you find bugs, please report them on Protege discussion lists. We will fix them as time permits. (72D)
- For OWL ontologies, datatype properties should be declared as functional. (72E)
Screenshot from MusicShopOntology example (6Z1)
Related links (6Z5)
- Old plugin webpage: http://acklin.nl/page.php?id=34 (6Z6)
- JADE (6Z7)
- Jade tutorial with examples on how to use the bean generator plugin: http://jade.tilab.com/doc/CLOntoSupport.pdf (6Z8)
Author: C.J. van Aart (6ZF)
Level of support: This plug-in is no longer under active development. If you need assistance, you can try posting a message to the protege-discussion mailing list (protege-discussion at lists dot stanford dot edu) and someone from the Protege community may be able to help you. (6ZE)