add_class
Add a new class to an ontology, specifying parent class, label, and comment. Use with save_ontology to persist changes.
Instructions
向本体添加一个新类,可指定父类、标签和注释。修改不会自动保存,需调用 save_ontology。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | 可选:rdfs:label 标签 | |
| comment | No | 可选:rdfs:comment 注释 | |
| class_name | Yes | 新类的 local name | |
| parent_class | No | 父类的 local name,默认为 owl:Thing | Thing |