www.altova.com
Previous  Top  Next

Overview of Usage


This section broadly describes how SemanticWorks is to be used to:

 

Create and edit ontologies
Create and edit RDF documents

 

 

Creating and editing ontologies

When creating or editing ontologies with SemanticWorks, the broad usage procedure is as follows:

 

1.Create a new ontology document or load an existing ontology document into SemanticWorks.
2.Edit the document in RDF/OWL View.
3.Within SemanticWorks, check document syntax and/or semantics against RDF Schema, OWL Lite, OWL DL, or OWL Full specifications.
4.Save the document as a .rdf, .rdfs, or .owl file.
5.If required, export the document as an N-Triples (.nt) or XML (.xml) file.

 

Steps 1, 4, and 5 in the above process are straightforward. In this section, we briefly discuss how ontologies can be edited in RDF/OWL View (Step 2 above) and checked for correct syntax and semantics (Step 3).

 

 

Editing ontologies in RDF/OWL View

Ontologies are best edited in RDF/OWL View. Text View should be used to check the serialization, in XML format, of the ontology graph that was created or edited in RDF/OWL View. Additionally, Text View can be used to make minor modifications to the XML serialization so that this suits user preferences. However, most editing should be done in RDF/OWL View since this provides a graphical, intuitive, and fast way to edit ontologies.

 

Editing an ontology in RDF/OWL View involves the following processes. There is no strict sequence to be followed, and you will likely find yourself revisiting previous steps and revising various ontology items.

 

Declaring namespaces and their prefixes. This is done at the document level (in the URIref Prefixes dialog (Tools | URIref Prefixes)). Declaring namespaces is important because they are used to identify ontology constructs, items from various vocabularies, and user-defined resources. The RDF, RDFS, and OWL namespaces are declared by default when a new ontology is created.
Select the ontology level. You do this using the menu command RDF/OWL | RDF/OWL Level. Selecting the required level is important because: (i) the choice of constructs made available in the GUI, and (ii) the syntax and semantics checks done by SemanticWorks are based on this selection.
Setting up the ontology header. The ontology header is created at the ontology level and is optional. It is useful when you wish to import one or more ontologies into the current ontology, or when you wish to record a prior version of the ontology. You create a new ontology in the Ontologies tab of Overview, then switch to Detail View and define the ontology using Detail View editing mechanisms.
Creating new ontology items. Ontology items are classes, properties, instances, AllDifferent items, and ontologies. Each such item must first be created in the appropriate Overview tab. Only after the relevant items have been created, should you go to the Detail View of an item to either define attributes of the item (e.g. create restrictions for properties), or define relationships with other items (e.g. define an intersection of classes).
Defining and editing items in Detail View. Definitions for ontology items are created and edited in Detail View by selecting the required properties or relationships from a context menu. SemanticWorks will make only those constructs available that are allowed according to the ontology level you have selected.

 

 

Checking the syntax and semantics of ontologies

When you edit an ontology in RDF/OWL View, what is created is a graph of the ontology. This graph is serialized in RDF/XML format—which is what is displayed in Text View. The syntax of this document serialization can be checked for conformance. Additionally, OWL Lite and OWL DL documents can be checked for correct semantics against the OWL Lite and OWL DL specifications. Note, however, that the semantics check in SemanticWorks is a partial consistency check. The significance of this is explained in the descriptions of the commands Show Possible Inconsistencies and Semantics Check.

 

To check the syntax of ontology documents and the semantics of OWL Lite and OWL DL documents, you do the following:

 

Select the required specification against which the ontology is to be checked (RDF/OWL | RDF/OWL Level).
Click the Syntax Check or Semantics Check command (RDF/OWL menu) or button (in the Toolbar).

 

If errors are detected, these are reported in the Errors Window, with each error including a link (or links) to the relevant ontology item (screenshot below).

 

ss_reswin_errors_1

 

 

Creating and editing RDF documents

In RDF/OWL View, when the RDF/OWL level has been set to RDF, resources are listed in the Overview pane of RDF/OWL View. The resources listed here are of two types: (i) those that are made available from an ontology, and (ii) those that you create (or that are present in the RDF document you are editing).

 

In order to make resources from an ontology available in the Resources Overview, you do the following:

 

1.Import the namespaces used in the ontology.
2.Declare the namespaces required in the RDF document.

 

In the Resources Overview, you create resources as required, and name them. Next, in the Detail View of each resource, you insert predicates, either by entering them or by selecting them from a dropdown list of available resources (which include resources made available from an ontology). The objects of RDF statements can also be inserted either by entering the name of an RDF resource or selecting one from a list of available resources, or by entering a literal value for the object. You can check the syntax of the RDF document at any time.

 

See the RDF Document tutorial for a detailed description of the steps listed above.

 

Alternatively, you can create and edit RDF documents directly in Text View, using RDF/XML or N-Triples notation.

 


Previous  Top  Next

© 2008 Altova