OntologyBeanGenerator
OntologyBeanGenerator
The ontology bean generator plugin is a Protégé 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.
This plugin works with both Protégé frames and Protégé OWL ontologies.
Contents
Versions & Compatibility
This section lists available versions of OntologyBeanGenerator.
If you click on the button below to add a new version of OntologyBeanGenerator, you will be asked to define a page title for the new version. Please adhere to the naming convention of OntologyBeanGenerator X.X.X when you define the new page!
Changelog
Version | Changes in this version |
---|---|
OntologyBeanGenerator 4.1 | Adapted to work with the non-backwards-compatible changes that happened between Protege version 3.3 and 3.4. |
OntologyBeanGenerator 4.0 | see page for more details |
OntologyBeanGenerator 3.1 | Updated to work with Protege-OWL, Compiled with Protege 3.2.1 |
Download
- Download the binary distribution of the version of the plug-in that is compatible with the version of Protégé that you are using, by consulting the Versions & Compatibility table above, and following the "Download" link in the info box of the plug-in version wiki page.
- The JADE Abstract ontologies are included in the binary distribution in the projects subfolder. They can also be downloaded from here: abstractJadeOntology.zip
- 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
- Source code of the latest version is available at: https://bmir-gforge.stanford.edu/gf/project/biostorm/scmsvn/?action=browse&path=%2FOntologyBeanGenerator%2F
Anonymous SVN access to it: svn checkout https://bmir-gforge.stanford.edu/svn/biostorm/OntologyBeanGenerator
The original version is linked from the JADE website at: http://jade.tilab.com/download/add-ons/
Installation
Download the zip file as described above and unzip it in the Protege plugins directory (PROTEGE_INSTALL_DIR/plugins).
How to use the plugin
Open a new or existing Protégé project
- Include/import JADE Abstract Ontology.
- For Frames ontologies, include the SimpleJADEAbstractOntology.pprj into your project.
- For OWL ontologies, import the OWLSimpleJADEAbstractOntology.owl into your project.
- Note: The JADE ontologies are located in the plugin directory (PROTEGE_INSTALL_DIR/plugins/nl.uva.psy.swi.beangenerator/projects).
- Fill the ontology:
- Create concepts by making subclasses of the class
Concept
, e.g.CD
,Items
. - Create agentactions by making subclasses of the class
AgentAction
, e.g.Sell
,Buy
. - Create agents by making subclasses of the class
AID
, e.g.Seller
,Buyer
. - Create predicates by making subclasses of the class
Predicate
, e.g.Owns
,Contains
.
- Create concepts by making subclasses of the class
- Go to menu of Protégé: Project -> Configure... and select the OntologyBeanGeneratorTab checkbox
- Export the Java files
- Select the OntologyBeanGenerator tab
- Specify (or select from the combobox) a package name, e.g. mypackage.onto
- 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
- Specify (or select from the combobox) a ontology name: e.g. Newspaper
- Press the generate button (note: old generated files will be overwritten)
- Use the exported Java files
- Import the the ontology files into your agent project
- Register the ontology in the agent
- You (and the agents) are ready to go!
Limitations
- 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 Protégé discussion lists. We will fix them as time permits.
- For OWL ontologies, datatype properties should be declared as functional. (72E)
Screenshot from MusicShopOntology example
Related links
- [JADE]
- Jade tutorial with examples on how to use the bean generator plugin: [[1]]
- Old plugin wiki page: [[2]]
Author
This plugin was developed by Chris van Aart, and it was modified by Csongor Nyulas starting with version 4.0.