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。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"class_name": "<class_name>"
},
"name": "add_class"
}
}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 |