Create Custom Attributes
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.
Open the Ontology Management by clicking its icon in the toolbar.
Go to Custom Ontologies and right click the node representing the custom ontology to which you want to add a new attribute.
Select New Attribute.
The New Attribute dialogue opens.
Specify all mandatory settings. For more information, refer to the Mandatory Settings in the New Attribute Dialogue Box section below.
Optional: Specify the optional settings. For more information, refer to the Optional Settings in the New Attribute Dialogue Box section below.
Confirm with Create.
Open the Ontology Management by clicking its icon in the toolbar.
Go to Custom Ontologies and expand the node representing the custom ontology to which you want to add a new attribute.
Right-click Attributes.
Select New Attribute.
Tip
Alternatively, you can access this option by double clicking the Attributes node.
The New Attribute dialogue opens.
Specify all mandatory settings. For more information, refer to the Mandatory Settings in the New Attribute Dialogue Box section below.
Optional: Specify the optional settings. For more information, refer to the Optional Settings in the New Attribute Dialogue Box section below.
Confirm with Create.
Open the Ontology Management by clicking its icon in the toolbar.
Go to Custom Ontologies and select the node representing the custom ontology to which you want to add a new attribute.
Click Add next to Attributes in the ontology Details View.
The New Attribute dialogue opens.
Specify all mandatory settings. For more information, refer to the Mandatory Settings in the New Attribute Dialogue Box section below.
Optional: Specify the optional settings. For more information, refer to the Optional Settings in the New Attribute Dialogue Box section below.
Confirm with Create.
Open the Ontology Management by clicking its icon in the toolbar.
Go to Custom Ontologies and expand the node representing the custom ontology to which you want to add a new attribute.
Select the Attributes node.
Select New Attribute.
The New Attribute dialogue opens.
Specify all mandatory settings. For more information, refer to the Mandatory Settings in the New Attribute Dialogue Box section below.
Optional: Specify the optional settings. For more information, refer to the Optional Settings in the New Attribute Dialogue Box section below.
Confirm with Create.
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.
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>.