This page (revision-24) was last changed on 10-Feb-2017 10:50 by Albrecht Striffler

This page was created on 25-Oct-2013 10:38 by Jochen Reutelshöfer

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
24 10-Feb-2017 10:50 2 KB Albrecht Striffler to previous
23 10-Feb-2017 10:49 2 KB Albrecht Striffler to previous | to last
22 21-May-2014 16:03 2 KB Joba Baumeister to previous | to last
21 21-May-2014 16:00 2 KB Joba Baumeister to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 changed one line
[{TableOfContents }]
!!! Creating an Ontology
At line 3 added one line
An ontology is created in a similar way as a d3web knowledge base using the ''knowledgebase'' markup.
At line 4 removed 4 lines
!!! Definition
An ontology is created in a similar way as a d3web knowledge base using the ''ontology'' markup.
At line 9 changed 2 lines
%%Ontology
@uses: myPackageName
%%knowledgebase
At line 14 changed one line
For the name {{myPackageName}} please use the name of the [package|Doc Package] that you used for the ontology definitions.
A more detailed description of this markup can be found on the page [Doc KnowledgeFormalization].
At line 16 removed one line
At line 22 changed 2 lines
Ontology entities newly created within the wiki are created in the ontology repository under the so-called local namespace, that is the URL referring to the wiki installation URL.
On the wiki pages, the local namespace (''lns'') is ommitted.
Ontology entities newly created within the wiki are created under the so-called local namespace, that is the URL referring to the wiki installation URL.
The abbreviation of the local namespace always is ''lns'', i.e. the abbreviated identifier of the local concept Person is ''lns:Person''.
When using ontology entities from the local namespace the namespace prefix can entirely be omitted.
The following markups can be used to create ontology entities (under local namespace if the namespace prefix is omitted):
At line 23 added 5 lines
* [Class| Doc Class]
* [Individual| Doc Individual]
* [ObjectProperty| Doc ObjectProperty]
* [Relation| Doc Relation]
* [Turtle| Doc Turtle]
At line 26 removed 4 lines
!!! Example
The following example defines the package name {{myPackageName}} and creates a new ontology using this package.
At line 31 changed 3 lines
%%Ontology
@uses: myPackageName
%
%%class Person
At line 35 changed one line
%%Package myPackageName
%%Individual Ms. MoneyPenny
At line 37 changed 2 lines
%%Turtle
:System rdf:type owl:Class .
%%relation "Ms. MoneyPenny" rdf:type Person
}}}
At line 40 changed 4 lines
:KnowWE rdf:type :System ;
rdfs:label "KnowWE Wiki" .
%
}}}
%%knowledgebase
At line 45 removed 10 lines
On the same page, the [Turtle|Doc Turtle] markup is used to define an owl:Class {{System}} (in the local namespace) and an instance of {{System}} with the name {{KnowWE}}. Additionally, the label "KnowWE Wiki" is defined.
!!!Importing existing ontologies into a KnowWE ontology
By attaching an ontology-file to this page (containing the ontology in any standard ontology format) an ontology can be imported into the KnowWE ontology repository as follows:
{{{
%%Ontology
@import: movie-ontology.owl
At line 56 removed one line
}}}
At line 41 added one line
%%class Person
At line 59 changed one line
__Note:__ For this example a file named ''movie-ontology.owl'' needs to be attached to ''this'' page!
%%Individual Ms. MoneyPenny
At line 45 added one line
%%relation "lns:Ms. MoneyPenny" rdf:type lns:Person
At line 62 removed one line
!!! See Also
At line 64 removed one line
The following markups can be used to create ontology entities (under local namespace if the namespace prefix is omitted):
At line 66 removed 6 lines
* [Turtle| Doc Turtle]
* [Class| Doc Class]
* [Individual| Doc Individual]
* [ObjectProperty| Doc ObjectProperty]
* [Relation| Doc Relation]
At line 51 added one line