Create an enumeration

SHACL enumerations are created using sh:in constraints. It consist of a list that can contain RDF resources (instances) or literals.

OWL has two kinds of enumerations, both using owl:oneOf.

Enumerated Classes

An enumerated class can be created by first opening a class in the Class Form and then clicking on the triangle in the upper right corner of the form and selecting Create class members... or selecting the same option from the Resource menu. The option would appear as in the following:

 

 

The Create class members... dialog will be displayed. You can enter the values of the enumeration by one value on each row. You can enter annotations and declare all enumeration values to be distinct. An example is shown in the following:

 

 

The newly created enumeration values will be displayed as such in the following. You can navigate to an enumeration value by clicking on the value while holding down the CTRL key. The above enumerated members look like the following after completing the operation:

 

 

Enumerated Datatypes

An enumerated datatype is a list of RDF literals. The following defines a property whose range is an enumerated list of strings. This is created by entering the string shown in the text area.