Difference between revisions of "PrF UG files rdf backend"

From Protege Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
== Using the {{#var:PrF}} RDF Backend ==
 
== Using the {{#var:PrF}} RDF Backend ==
  
{{PrF_UG_TOC_files}}<div id='prf_ug'>
+
<noinclude>{{PrF_UG_TOC_files}}<div id='prf_ug'></noinclude>
  
 
Although it is recommended to use {{#var:PrO}} for RDF(S) projects,
 
Although it is recommended to use {{#var:PrO}} for RDF(S) projects,
Line 28: Line 28:
 
     leave it unchecked (default).
 
     leave it unchecked (default).
 
     </p>
 
     </p>
     <div>[[Image:PrF_UG_files_create_from_existing_checkbox.png|files_create_from_existing_checkbox]]</div>
+
     <div>[[Image:PrF_UG_files_create_from_existing_checkbox.png|frame|none|
 +
          Create from Existing Sources checkbox (checked)]]</div>
  
 
   <li><p>
 
   <li><p>
Line 90: Line 91:
 
     Be sure to give the file a <b>.pprj</b> extension.
 
     Be sure to give the file a <b>.pprj</b> extension.
 
     To browse for a new location, click the <b>Add</b>
 
     To browse for a new location, click the <b>Add</b>
     [[Image:PrF_UG_all_object.add.gif|all_object.add]] button.
+
     ([[Image:PrF_UG_all_object.add.gif|all_object.add]]) button.
 
     If you do not specify a location for the project, by default,
 
     If you do not specify a location for the project, by default,
 
     the project is saved in the directory where {{#var:Pr}} is installed.
 
     the project is saved in the directory where {{#var:Pr}} is installed.
Line 116: Line 117:
  
  
</div>
+
<noinclude></div></noinclude>

Latest revision as of 16:47, November 13, 2008

Using the RDF Backend


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

Although it is recommended to use Protege-OWL for RDF(S) projects, Protege-Frames also has an RDF backend you can use for Protege-Frames projects. The backend does not work with Protege-OWL.

Creating an RDF(S) Project with the Protege-Frames Backend

  1. Create a new project, either by selecting Create New Project from the start-up dialog or File | Create New in the Protege window.

  2. Select Resource Description Framework (RDF) as the Project Type.

  3. If you are importing an existing file, make sure to check Create from Existing Sources, located at the top of the dialog box. If you are creating a new RDF file, leave it unchecked (default).

    Create from Existing Sources checkbox (checked)
  4. To select or change the name or location of the .pprj file, enter the information you want in the Project line of the dialog box. Be sure to give the file a .pprj extension. If you do not specify a location for the project, by default, the project is saved in the directory where Protege is installed.

  5. Protege-Frames will create two files: one for the schema (classes and slots) and the other for the instances. By default, these use the name of the existing .pprj file. If you wish to change the name of the schema file, type the new name in the Classes file name line of the dialog box. Make sure to give the file an .rdfs extension.

  6. If you wish to change the name of the instances file, type the new name in the Instances file name line of the dialog box. Make sure to give the file an .rdf extension.

  7. Click OK.

Note: You should create new RDF classes as subclasses of rdfs:Resource.

Converting a Protege-Frames Project to RDF Format

Note: Subclasses of :THING from a non-RDF project will become subclasses of rdfs:Resource when you save as RDF.

After you have chosen your format, choose the name and location for the project, as follows:

  1. Select Convert to Format... from the File menu.

  2. Select Resource Description Framework (RDF) in the Select Format dialog box.

  3. When you have selected Resource Description Framework (RDF), the RDF dialog box will be displayed.

  4. To select or change the name or location of the .pprj file, enter the information you want in the Project line of the dialog box. Be sure to give the file a .pprj extension. To browse for a new location, click the Add (all_object.add) button. If you do not specify a location for the project, by default, the project is saved in the directory where Protege is installed.

  5. Protege-Frames will create two files: one for the schema (classes and slots) and the other for the instances. By default, these use the name of the existing .pprj file. If you wish to change the name of the schema file, type the new name in the Classes file name line of the dialog box. Make sure to give the file an .rdfs extension.

  6. If you wish to change the name of the instances file, type the new name in the Instances file name line of the dialog box. Make sure to give the file an .rdf extension.

  7. Click OK.