OWL Wiki Forms v0.1 instructions

From SW_OWF
Revision as of 10:45, 5 March 2013 by WikiSysop (talk | contribs) (copy from old wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Welcome to the OWL Wiki Forms instructions page. This page offers instructions for OWL Wiki Forms in the form of an example ontology editing session. It has a sequence of screen dumps with explanations. Users should be able to replicate this session after an OWL Wiki Forms installation.

Source Ontology

This session is the entry of an ontology based on that of the ReSIST Courseware Ontology.

Online data browsing example

The following figure shows an example from this ontology: a data browsing page for a course at the Open University.

File:Slide0003 image003.png

Protégé display of ontology

Here is a display from the ontology editing tool Protégé of the ReSIST Courseware Ontology. This shows the ontology that we will now used OWL Wiki Forms to enter on a semantic wiki.

File:Slide0006 image005.png

owl:Class

Entering the class name

Go to the page Form:Category:owl:Class on your wiki and enter a new class name.

File:Slide0007 image009.png

Form for owl:Class

Here you can enter values for various standard property. Here, we leave them empty and simply click "Save page".

File:Slide0008 image011.png

Page display for an owl:Class

This is the page display that results after entering the new owl:Class. It shows table headers indicating that this is category represents and owl:Class.

File:Slide0009 image013.png

owl:DatatypeProperty

Entering the datatype property name

Now go to the page Form:Owl:DatatypeProperty and enter the name for a new property.

File:Slide0010 image015.png

Form for owl:DatatypeProperty

Enter some values for standard properties of this property. Be sure also to enter a value for Box order. In this example, we enter "Course" for rdfs:domain and select "Xsd:decimal" from the pull-down menu for rdfs:range. This has influence later on the generation of the form and infobox display for pages of type "Course". This is an OWL Wiki Forms property that determines the order in which property rows appear in forms and infoboxes. If this is left blank then the row will not appear at all. (In future version a blank Box order will no longer block inclusion).

File:Slide0011 image017.png

Page display for an owl:DatatypeProperty

File:Slide0016 image019.png

Generating the form and template for a class

Import code from Special:OWLwikiForms

To start the generation of the form and infobox for all classes, go to your wiki's special page Special:OWLwikiForms. Simply accessing this page will generate the XML import code in a file for you to download.

File:File download.png

Save this file on your computer.

Import page on the wiki

Go to the page Special:Import on your wiki. Enter the pathname of your file in the filename field and click "Upload file".

File:Import pages.png

The generated code for the new or updated form and infobox template have now been uploaded on your wiki. The form and template are ready for use.

File:Slide0019 image022.png

Form and infobox for a page

Entering a page name as instance of a class

Go to Form page just generated or click to it from the import result display. Here the form page is Form:Course. Enter the name of a new instance for this class.

File:Slide0020 image024.png

Form for an instance

Enter a number for the property.

File:Slide0021 image026.png

Infobox for an instance

File:Slide0022 image028.png

owl:ObjectProperty

Entering the object property name

Enter the name of a property (including the "Property:" wiki namespace) that you wish to make an object property.

File:Slide0023 image030.png

Form for owl:ObjectProperty

As with the Form for owl:DatatypeProperty, enter values for "Box order" and (if desired) an rdfs:domain. Object property can have classes as ranges. In this example, we make "Course" the domain and "Person" the range to indicate that pages with a "Has-instructor" property are classes and what the property points to are persons.

File:Slide0024 image032.png

Page display for owl:ObjectProperty

File:Slide0025 image034.png

rdfs:range processing

Property value autocompletion

Because the property has-instructor has an rdfs:range of Person, autocompletion for this field uses names of instances of class Person on the wiki. However, this autocompletion is not exclusive: a value can be entered that is not the name of a person in the system.

File:Slide0026 image036.png

Default forms in links to new pages

We have just entered as an instructor for the course a name that is not in the system. On MediaWiki, links to such non-existing pages have red font, as is the case here. This link is selected, and we see in the status bar on the bottom of the display that this link goes to a person form that adds a new person with this name. This is the result of processing the rdfs:range of Person that the property has-instructor has. Here, OWL Wiki Forms applies the Semantic Forms default form feature.

File:Slide0027 image038.png

Default form called by link trigger

File:Slide0028 image040.png

owl:SymmetricProperty processing

Checkbox for owl:SymmetricProperty

Here we enter a new property, give it a domain, range and box order, and indicate that it is symmetric by clicking on the owl:SymmetricProperty checkbox.

File:Slide0029 image042.png

Adding annotation for a symmetric property

This figure shows the annotation of a page with the new symmetric property.

File:Slide0030 image044.png

Annotation with default form link

Because we entered a non-existing page as the value for a property, that property's rdfs:range determines the default form triggered by the page's link.

File:Slide0031 image046.png

New page across symmetric property displays symmetry

Starting a new page with a default form and using MediaWiki's "Show preview" feature shows how this page will appear with just the initial code. This display includes recognition of the symmetric property by showing the inference from the incoming annotation in the current infobox, even though the annotation is not on this page directly.

File:Slide0032 image048.png