Modify > Derive missing classes

This operation is available from the Modify Menu of the “Home” asset (see “Home” Button) of an Ontology asset collection. It opens a dialog that can be used to derive SHACL classes and property shape definitions based on existing instances from a selected asset collection (that must include the current ontology). It will create a new class for each type that is used in the data, and then suggest property shapes based on the values of other properties.

For example, if all instances have at most one value for a property then that property will get sh:maxCount 1, and if all values are integers then the property shape will use datatype xsd:integer.

Tip

This feature can be useful starting point if you have been given some instance data without suitable class declarations. Without class declarations, tools like TopBraid do not really know how to render or edit these instances.

Caution

While the algorithm behind this feature is using some heuristics and best practices, you will likely want to fine-tune the ontology later, for example to establish subclass relationships and to move property declarations into the most suitable superclass. You may, of course, also want to add proper display labels and descriptions to the generate ontology.

See Also

Further Reading on SHACL

Further Reading on Ontologies

Further Reading on Modify Menu

Further Reading on TopBraid