Export an OWL ontology into a working Plone content-type
Transform an OWL ontology into a working Plone content-type.
- Choose any existing OWL ontology
- With Protege equipped with its OWL plugin, create a new project from your OWL file.
- Still within Protege, with the help of its UML plugin, convert your OWL-Protege project into a UML classes project. You get an XMI file.
- Load this XMI file into an UML project with Poseidon. Save this project under the .zuml Poseidon format.
- From poseidon, export your classes a new xmi file. It will be Plone-friendly.
- With a text editor, delete some accentuated characters that Poseidon might have added to your file (for example, the Frenchy Poseidon adds a badly accentuated “Modele sans titre” attribute into your XMI) because the next step won’t appreciate them
- python Archgenxml.py -o YourProduct yourprojectfile.xmi turns your XMI file into a valid Plone product. Requires Plone and Archetypes (see doc) latest stable version plus ArchgenXML head from the subversion repository.
- Launch your Plone instance and install YourProduct as a new product from your Plone control panel. Enjoy YourProduct !
- eventually populate it with an appropriate marshaller.
tags: