Skip to main content

Create Custom Classes

Abstract

Create Custom Classes

Prerequisites for Creating a Custom ClassHow to Create a New Custom Class in a Custom Ontology

To create a new class:

  1. Open the Ontology Management by clicking its icon in the toolbar.

    Create-a-Custom-Ontology.png
  2. Bring up the New Class dialogue with one of the following actions:

    1. Right click the custom ontology to which you want to add a new class in the Hierarchy Tree and select New Class from the context menu.

      Create-Custom-Classes2a.png
    2. Select the custom ontology to which you want to add a new class in the Hierarchy Tree. In the Details View on the right find the section Statistics. Click the Add icon next to Classes.

      Create-Custom-Classes2b.png
    3. Double click the Classes node below the node representing the custom ontology to which you want to add a new class.

    4. Right click the Classes node below the node representing the custom ontology to which you want to add a new class and select New Class from the context menu.

    5. Select the Classes node below the node representing the custom ontology to which you want to add a new class and click New Class in the Details View.

      Create-Custom-Classes2c.png
  3. The New Class dialogue opens. In the New Class dialogue you have the following options:

    1. Label: enter the name of the class (mandatory).

      Available classes from all active predefined and custom ontologies are displayed as you start typing in the Label field via autocomplete. That way you can reuse existing classes.

    2. URI: the URI will be filled with URI pattern defined creating your custom ontology. The pattern is non-editable per default and will be extended by the specified label which will be used without spaces. You can click the pencil icon to make it active and define a specific URI if needed.

    3. Language: language of the new class. This list depends on the language settings for the project.

    4. Subclass Of: choose this option if a class is a subclass of another class. Select the parent class from the drop down.

    5. Disjoint With: select this option, if the current class and another class cannot share an instance regardless of how the classes are interpreted.

  4. You have more options in the Description tab where you can add a description for the new class.

  5. Click Create.

    Create-Custom-Classes3-5.png

23898884.pngBelow, you can find the owl statements created for a class. As you can see a class is defined as an owl:Class and rdfs:label is used for the name. The rdfs:subClassOf relation is used to specify the sub-class relation and owl:disjointWith to specify the disjoint classes. Finally, rdfs:comment is used for the description.

<http://doku.poolparty.biz/cocktail-ontology/Syrup> a owl:Class;
  dcterms:created "2019-02-03T12:16:12.662Z"^^xsd:dateTime;
  dcterms:creator <http://resource.semantic-web.at/user/admin>;
  rdfs:label "Syrup"@en;
  rdfs:comment "A condiment that is a thick, viscous liquid consisting primarily of a solution of sugar in water."@en
  rdfs:subClassOf <http://doku.poolparty.biz/cocktail-ontology/Sweeteners>;
  owl:disjointWith <http://doku.poolparty.biz/cocktail-ontology/Souces> .

Tip

If you would like to learn more about this topic, please watch this PoolParty Academy Tutorial video:

2.9 Extending Your Taxonomy With Custom Schemes & Ontologies

When the video is not available, you can sign up to the PoolParty Academy