Build the ontology from any file
ontology_discoverAuto ontology (ADR 0033): read what another tool exported, with no mapping by hand. ReqIF (one record type per spec object type, relations as links), XMI from Cameo, astah or OMG (one per stereotype or UML type), STEP Part 21 (products, assemblies, PMI), FMU (variables by causality, units), Excel (every sheet), CSV, TSV, JSON (every array of objects at any depth), MATLAB scripts (struct arrays) and KiCad netlists. A column whose values are another record type's keys is found as a foreign key. Without text: { sources } lists each record type with its columns, key, title, sample rows and the SysML object type it would become. With text: each record type becomes an @ObjectType definition (attributes typed, units read from column names), each foreign key a @LinkType connection def, and the records become objects and connections, applied as compiler checked edits; text is the new model. Send a newer export of the same file again to update: record types the model already binds are only synced. Nothing is saved: show the user what was created, then use the returned text. Later syncs of a single table can also use ontology_sync.
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": {
"files": "<files>"
},
"name": "ontology_discover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | No | Bring the records in as objects (default true); false adds only the definitions. | |
| text | No | The model to add the object types to. Leave it out to only read the files. | |
| files | Yes | ||
| links | No | Create link types for the links the files state (ReqIF relations, XMI ownership, nested JSON) and the foreign keys found (default true). | |
| record_types | No | Record types to add, as "<file>#<type>" or "<type>" (default all). |