Skip to main content

Create Custom Attributes

Abstract

PoolParty allows you to add new attributes to your custom ontology. Learn how with this step-by-step guide.

You can add custom attributes to a custom ontology. For more information on how to create a custom ontology, refer to Create a Custom Ontology.

Note

You can also add custom attributes to custom schemes. For more information, refer to Add Classes, Relations and Attributes to Your Custom Scheme.

Procedure. Create Custom Attributes from the Hierarchy Tree – Option 1
  1. Open the Ontology Management by clicking its icon in the toolbar.

  2. Go to Custom Ontologies and right click the node representing the custom ontology to which you want to add a new attribute.

  3. Select New Attribute.

    817-new-attribute.png

    The New Attribute dialogue opens.

  4. Specify all mandatory settings. For more information, refer to the Mandatory Settings in the New Attribute Dialogue Box section below.

  5. Optional: Specify the optional settings. For more information, refer to the Optional Settings in the New Attribute Dialogue Box section below.

  6. Confirm with Create.

Procedure. Create Custom Attributes from the Hierarchy Tree – Option 2
  1. Open the Ontology Management by clicking its icon in the toolbar.

  2. Go to Custom Ontologies and expand the node representing the custom ontology to which you want to add a new attribute.

  3. Right-click Attributes.

  4. Select New Attribute.

    817-new-attribute---from-HT-option-2.png

    Tip

    Alternatively, you can access this option by double clicking the Attributes node.

    The New Attribute dialogue opens.

  5. Specify all mandatory settings. For more information, refer to the Mandatory Settings in the New Attribute Dialogue Box section below.

  6. Optional: Specify the optional settings. For more information, refer to the Optional Settings in the New Attribute Dialogue Box section below.

  7. Confirm with Create.

Procedure. Create Custom Attributes from the Ontology Details View
  1. Open the Ontology Management by clicking its icon in the toolbar.

  2. Go to Custom Ontologies and select the node representing the custom ontology to which you want to add a new attribute.

  3. Click Add next to Attributes in the ontology Details View.

    817-new-attribute-from-ontology-details-view.png

    The New Attribute dialogue opens.

  4. Specify all mandatory settings. For more information, refer to the Mandatory Settings in the New Attribute Dialogue Box section below.

  5. Optional: Specify the optional settings. For more information, refer to the Optional Settings in the New Attribute Dialogue Box section below.

  6. Confirm with Create.

Procedure. Create Custom Attributes from the Attributes List
  1. Open the Ontology Management by clicking its icon in the toolbar.

  2. Go to Custom Ontologies and expand the node representing the custom ontology to which you want to add a new attribute.

  3. Select the Attributes node.

  4. Select New Attribute.

    817-create-new-attribute-from-the-attributes-list.png

    The New Attribute dialogue opens.

  5. Specify all mandatory settings. For more information, refer to the Mandatory Settings in the New Attribute Dialogue Box section below.

  6. Optional: Specify the optional settings. For more information, refer to the Optional Settings in the New Attribute Dialogue Box section below.

  7. Confirm with Create.

. Mandatory Settings in the New Attribute Dialogue Box
Mandatory-Settings-in-the-New-Attribute-Dialogue-Box.png
  • Label (1): name of the attribute.

    When you start typing, PoolParty displays every available class from every active predefined and custom ontology via autocomplete. That way you can reuse existing classes.

    The specified name without spaces gets appended to the base URI and scheme identifier forming an attribute URI. For more information on how to define the URI pattern, refer to Define the URI Pattern for a Custom Ontology or Custom Scheme.

  • Language(2):

    Depending on the languages you have defined for the ontology, you can also select the language for that description from a drop down.

  • Type (3): type of the attribute.

    The selected type determines the data type of your relation. You can find a list of available data types here: Available Attribute Types.

  • Domain (4)

  • Usage (5): defines whether an attribute can be used multiple times or only once per resource.

. Optional Settings in the New Attribute Dialogue Box
Optional-Settings-in-the-New-Attribute-Dialogue-Box-copy.png
  • Use the Edit icon (1) to edit the pre-filled attribute URI.

  • Is a Sub-Property (2): if you want this attribute to be a sub-property of another, select the parent attribute from the relations in the ontology and all SKOS relations.

  • To add a description for the new attribute, go to the Description tab (3).

Note

Below you can find the owl statements created for an attribute. As you can see a directed relation is defined as an owl:DataTypeProperty and rdfs:label is used for the name. rdfs:domain is used to define the respective class restrictions for the Domain. rdfs:range is used to define the data type restriction for the Range e.g. rdfs:Resource for attribute type URI. Finally, rdfs:comment is used for the description. To indicate Unique Use the relation in addition becomes an owl:FunctionalProperty. The definition of a sub-property is done via the rdfs:subPropertyOf relation.

<http://doku.poolparty.biz/cocktail-ontology/primaryImage> a owl:DatatypeProperty, owl:FunctionalProperty;
  rdfs:domain <http://doku.poolparty.biz/cocktail-ontology/Cocktail>;
  rdfs:label "Primary Image"@en;
  rdfs:comment "Image to be primary used to illustrate the resource."@en
  rdfs:range rdfs:Resource;
  rdfs:subPropertyOf <http://doku.poolparty.biz/cocktail-ontology/Image>.