Creating, Editing, and Viewing a SHACL Shape for a Class

You can create, edit, and view a SHACL shape for a class.

This task shows you how to:

Create a SHACL Shape for a Class

  1. Import the ontologies to a project. For more information, see Importing Ontologies
  2. From the Classes tab, select a class for which you want to create a SHACL shape.
  3. From the Shapes tab, click .
  4. Optional: Navigate to an ontology and click to create a SHACL shape.
  5. Fill the mandatory fields and click Update.
    FieldDescription
    Label It is the name of a shape.
    Comment It is the description of a shape.
    Target class It is the class targeted by a shape.
    New Properties Field The properties related to a shape can be added in the field Search to add new properties. These are the additional properties used to describe a shape. These are not the constraints that are applied during ontology validation.
    Properties Click New Property to add a new property and click to add more properties.
    • Property: It is a set of constraints that applies on a property.
    • Datatype: It is a datatype that all value nodes must have.
    • Class: It is the type that all value nodes must have.
    • Name: It is a label for the property in the context of the surrounding shape.
    • Description: It is a description for the property in the context of the surrounding shape.
    • Min count: It is the minimum number of values in the set of value nodes.
    • Max count: It is the maximum number of values in the set of value nodes.
    • Authorized values: It specifies a list of allowed values where each value node must be among the members of the given list.
    • Order: It defines the order of properties in editing.
    • The constraints can be added in the field Search to add new properties. These are applicable to the properties of the instances of the target class. These constraints are applied during ontology validation.
    The shape for the class is created.
    Note: You can also edit a shape and other attributes after creating it.
    Note: A shape can be activated or deactivated by clicking the Activate option. The deactivated shape is ignored during the ontology validation.
  6. Optional: Click Generate to generate a draft of a shape.

Delete a SHACL Shape of a Class

  1. Navigate to Classes.
  2. Click the class and navigate to Shapes.
  3. Click the shape and click Delete.
    The warning message for deleting the shape data is displayed.
  4. Click Delete.
    The SHACL shape is deleted.

View a SHACL Shape of a Class

  1. Open an ontology.
  2. Navigate to Classes.
  3. Click the class and navigate to Shapes.
    The associated SHACL shapes for the class appear.