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 on the Hierarchy Tree – Option 1
  1. Open the Ontology Management by clicking its icon on 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 dialog opens.

  4. Specify all mandatory settings. For more information, refer to the Mandatory Settings on the New Attribute Dialog section below.

  5. Optional: Specify the optional settings. For more information, refer to the Optional Settings on the New Attribute Dialog section below.

  6. Confirm with Create.

Procedure. Create Custom Attributes on the Hierarchy Tree – Option 2
  1. Open the Ontology Management by clicking its icon on 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 dialog opens.

  5. Specify all mandatory settings. For more information, refer to the Mandatory Settings on the New Attribute Dialog section below.

  6. Optional: Specify the optional settings. For more information, refer to the Optional Settings on the New Attribute Dialog section below.

  7. Confirm with Create.

Procedure. Create Custom Attributes on the Ontology Details View
  1. Open the Ontology Management by clicking its icon on 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 on the ontology Details View.

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

    The New Attribute dialog opens.

  4. Specify all mandatory settings. For more information, refer to the Mandatory Settings on the New Attribute Dialog section below.

  5. Optional: Specify the optional settings. For more information, refer to the Optional Settings on the New Attribute Dialog section below.

  6. Confirm with Create.

Procedure. Create Custom Attributes from the Attributes List
  1. Open the Ontology Management by clicking its icon on 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 dialog opens.

  5. Specify all mandatory settings. For more information, refer to the Mandatory Settings on the New Attribute Dialog section below.

  6. Optional: Specify the optional settings. For more information, refer to the Optional Settings on the New Attribute Dialog section below.

  7. Confirm with Create.

. Mandatory Settings on the New Attribute Dialog
New-Attribute-mandatory.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 is 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)

    Language of the new attribute. This list depends on the language settings for the custom ontology.

  • Domain (3)

    You can select from all classes available in the ontology. In addition, the SKOS classes 'Concept', 'Label' and 'Concept Scheme' are available.

    Selecting No Restriction (default) allows you to use the attribute regardless of the classes assigned to the resources between which you create the relation.

  • Type (4): type of the attribute.

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

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

. Optional Settings on the New Attribute Dialog
New-Attribute-optional.png
  • Use the Edit icon (1) to edit the pre-filled attribute URI.

  • Sub-Property of (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 see 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>.