Difference between revisions of "PrF UG files xml support"

From Protege Wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
== Experimental XML Format ==
 
== Experimental XML Format ==
  
{{PrF_UG_TOC_files}}<div id='prf_ug'>
+
<noinclude>{{PrF_UG_TOC_files}}<div id='prf_ug'></noinclude>
  
 
Currently, the XML backend for {{#var:PrF}} is still under development.
 
Currently, the XML backend for {{#var:PrF}} is still under development.
Line 12: Line 12:
 
and then selecting <b>Experimental XML File</b> in the <b>Create New Project</b> dialog:
 
and then selecting <b>Experimental XML File</b> in the <b>Create New Project</b> dialog:
  
<div>[[Image:PrF_UG_files_xml_create.png|files_xml_create]]</div>
+
<div>[[Image:PrF_UG_files_xml_create.png|frame|none|
 +
      Create New Project, "Experimental ..." selected]]</div>
  
 
You can also [[PrF_UG_projects_convert_project|convert]] an existing project to XML
 
You can also [[PrF_UG_projects_convert_project|convert]] an existing project to XML
Line 41: Line 42:
 
is designed to be simple, readable, and easily processible by XSLT in straightforward ways.
 
is designed to be simple, readable, and easily processible by XSLT in straightforward ways.
 
The Schema is available at:
 
The Schema is available at:
 
[[PrF_UG_|http://protege.stanford.edu/xml/schema/protege.xsd]]
 
  
 
http://protege.stanford.edu/xml/schema/protege.xsd
 
http://protege.stanford.edu/xml/schema/protege.xsd
  
 
Feedback on the Schema is strongly solicited.
 
Feedback on the Schema is strongly solicited.
The schema should not be considered fixed at this point and users should not rely on this backend functioning correctly or upon the schema remaining fixed from build to build.
+
The schema should not be considered fixed at this point
 +
and users should not rely on this backend functioning correctly
 +
or upon the schema remaining fixed from build to build.
 
We do encourage you to try it out and report any problems that you see.
 
We do encourage you to try it out and report any problems that you see.
  
<b>Note:</b> This backend <i>cannot</i> be used to generate XML Schema files.
+
<b>Note:</b>
For example,
+
This backend <i>cannot</i> be used to generate XML Schema files.
it does not turn classes in {{#var:PrF}} into XML Schema complex types.
+
For example, it does not turn classes in {{#var:PrF}} into XML Schema complex types.
 
An export mechanism that does this may eventually be developed separately.
 
An export mechanism that does this may eventually be developed separately.
  
</div>
+
 
 +
<noinclude></div></noinclude>

Latest revision as of 17:48, November 13, 2008

Experimental XML Format


Protege-Frames User's Guide
Project Types
Understanding Project Types
Protege Files
Protege DB Format
Experimental XML Format
Protege-OWL
RDF(S) Support in Protege
Using the RDF Backend
Exporting a Project to CLIPS
Exporting a Project to HTML
Glossary, Editing Help

Currently, the XML backend for Protege-Frames is still under development. The intent is to eventually make this the default backend for Protege-Frames, once it has become stable and supports the full feature set.

You can create a new XML project by selecting File | Create Project and then selecting Experimental XML File in the Create New Project dialog:

Create New Project, "Experimental ..." selected

You can also convert an existing project to XML by selecting File | Convert Project and then selecting Experimental XML File in the Convert Project dialog box.

Note: The XML backend uses its own Schema and will not let you import an arbitrary XML file into Protege.

The first time you save an XML project, Protege creates the following files:

  • a .pprj file, which contains Protege-specific UI information

  • a .xml file, which contains XML-encoded ontology information for the knowledge base\

Protege-Frames uses a single XML Schema file that is optimized to work with the Protege model. All information in the knowledge base is treated as "instances". The format of these instances, described in the Schema file, is designed to be simple, readable, and easily processible by XSLT in straightforward ways. The Schema is available at:

http://protege.stanford.edu/xml/schema/protege.xsd

Feedback on the Schema is strongly solicited. The schema should not be considered fixed at this point and users should not rely on this backend functioning correctly or upon the schema remaining fixed from build to build. We do encourage you to try it out and report any problems that you see.

Note: This backend cannot be used to generate XML Schema files. For example, it does not turn classes in Protege-Frames into XML Schema complex types. An export mechanism that does this may eventually be developed separately.