Get in touch
Get in touch

Create a new class in the schema

create_class(class_name, description, parent_class_name, label_prop_name, is_label_prop_lang_string)

Create a new class in the schema.
Properties
NameTypeAttributesDefaultDescription
class_namestrName of the new class.
descriptionstr<optional>''Human-readable description.
parent_class_namestr<optional>''Name of the parent class (for inheritance).
label_prop_namestr<optional>'label'Name of the label property created by default.
is_label_prop_lang_stringbool<optional>TrueWhether the label property supports multiple languages.
Returns:
None
Type
None
Raises:
SchemaError
If a class with the same name already exists.