|July 11, 2007
|Mozilla Public License
|XML Tab website
The XML Tab enables users to import an XML document into Protege, creating a set of classes and instances in a knowledge base which correspond to the entries in the XML document.
Versions & Compatibility
This section lists available versions of XML Tab.
|XML Tab 1.0
If you click on the button below to add a new version of XML Tab, you will be asked to define a page title for the new version. Please adhere to the naming convention of XML Tab X.X.X when you define the new page!
The XML Tab enables users to import an XML document into Protege, creating a set of classes and instances in a knowledge base which correspond to the entries in the XML document. It also enables a Protege knowledge base to be saved as an XML document, easily publishable on the Web.
The XMLTab is bundled with the "full" installation of Protege. There is no need to download this plug-in separately.
The basics: this screenshot shows the basic XML tab for an empty project. The left-hand side provides the user with the ability to select XML files and view their contents. The right-hand side gives users the ability to browse a Protege knowledge base and select the part of the knowledge base that will be converted to XML.
Exporting an ontology to XML
Exporting a Protege knowledge base to XML: in the screenshot below, the user is working on the Digital Anatomist project in Protege. She is saving part of the knowledge base, dealing with embryonic structure, to the file C:\Web Export\EmbryonicStructure.xml. The pane in the upper left shows that she has chosen the file, the right-hand side shows her selection from the knowledge base, and the pane in the lower left side shows the contents of the file after it has been created.
Viewing generated XML files in a Web browser: once knowledge bases have been saved as XML files, the knowledge they contain is accessible to a wide range of tools and programs (such as Web browsers and object-oriented databases). The screenshot below shows part of the digital anatomy knowledge base, as viewed in Internet Explorer.
Importing instances from XML into an ontology
It is possible to import data available in XML as instances in an ontology. The necessary classes, slots/properties and instances will be created in the ontology.
To import an XML file, select in the instances field the XML file containing the data to import:
Then, click on the import>> button. In the example from above, a class CD will be created in the ontology, several slots/properties correspoding to the XML attributes, as well as the data as instances of the class CD:
Below are the instances that are created automatically from the XML file:
Level of Support
The plug-in is no longer under active development. If you have questions about the XML Tab, you can post them on the protege-discussion mailing list and someone from the Protege community may be able to help you. The source code for this tab is available in the Protege Subversion repository.