create_class(class_name, description, parent_class_name, label_prop_name, is_label_prop_lang_string)
Create a new class in the schema.
Properties
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
class_name | str | Name of the new class. | ||
description | str | <optional> | '' | Human-readable description. |
parent_class_name | str | <optional> | '' | Name of the parent class (for inheritance). |
label_prop_name | str | <optional> | 'label' | Name of the label property created by default. |
is_label_prop_lang_string | bool | <optional> | True | Whether the label property supports multiple languages. |
Returns:
None
- Type
- None
Raises:
SchemaError- If a class with the same name already exists.