Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

robot-obo-tool

БесплатноБез исполняемых скриптовНе проверен

Skills for using ROBOT, the OBO ontology command-line toolkit for reasoning, template-based term creation, quality control, format conversion, and ontology…

ai4curationот ai4curation★ 26 звёзд на GitHub

Об этом скилле

ROBOT Guide

Overview

ROBOT (ROBOT is an OBO Tool) is the standard command-line tool for OBO ontology development. It handles reasoning, quality control, format conversion, module extraction, template-based term generation, and release automation. Almost every OBO Foundry ontology uses ROBOT in its build pipeline.

ROBOT is a Java application distributed as a JAR with a shell wrapper script.

Home page: https://robot.obolibrary.org/

When to Use

Use ROBOT when you need to:

  • Reason over an ontology - classify, check consistency, find unsatisfiable classes
  • Generate terms from templates - create OWL from TSV/CSV spreadsheets
  • Run quality control - check for missing labels, definitions, bad xrefs
  • Convert formats - between OWL, OBO, Turtle, OFN, Manchester, JSON
  • Extract modules - pull subsets from large ontologies
  • Diff ontologies - compare two versions at the OWL level (consider OAK for higher level diffs)
  • Query with SPARQL - run SELECT/CONSTRUCT/ASK queries
  • Build release pipelines - chain commands for automated releases

Do NOT use ROBOT when:

  • You want to search external ontologies interactively - use OAK or OLS MCP instead
  • You want to edit individual OBO stanzas by hand - use obo-grep/obo-checkout tools instead
  • You need programmatic ontology access from Python - use oaklib instead

Installation & Setup

ROBOT requires Java 8+. Install via:

# Download latest
curl -L https://github.com/ontodev/robot/releases/latest/download/robot.jar -o robot.jar
curl -L https://raw.githubusercontent.com/ontodev/robot/master/bin/robot -o robot
chmod +x robot

For large ontologies, increase Java memory:

export ROBOT_JAVA_ARGS="-Xmx8G"

Verify installation:

robot --version

Command Quick Reference

Every ROBOT command with a one-line description and key example. For full details on any command, read the corresponding file in docs/ within this skill directory.

Core Ontology Operations

Command Description Key Example
merge Combine multiple ontologies robot merge --input a.owl --input b.owl --output merged.owl
reason Run reasoner, assert inferred axioms robot reason --reasoner ELK --input edit.owl --output reasoned.owl
relax Convert EquivalentClass to SubClassOf robot reason ... relax --output relaxed.owl
reduce Remove redundant SubClassOf axioms robot reason ... relax reduce --output reduced.owl
materialize Assert inferred superclass expressions robot materialize --reasoner ELK --input edit.owl --output mat.owl
unmerge Remove axioms of one ontology from another robot unmerge --input merged.owl --input remove.owl --output result.owl

Extracting and Filtering

Command Description Key Example
extract Extract module from ontology robot extract --method BOT --input ont.owl --term GO:0005634 --output module.owl
filter Keep only matching axioms robot filter --input ont.owl --term UBERON:0000955 --select "self ancestors" --output filtered.owl
remove Remove matching axioms robot remove --input ont.owl --select "imports" --output no-imports.owl

Creating and Editing

Command Description Key Example
template Generate OWL from TSV/CSV templates robot template --input ont.owl --template terms.tsv --output new-terms.owl
annotate Add ontology-level metadata robot annotate --input ont.owl --ontology-iri "http://purl.obolibrary.org/obo/my.owl" --output annotated.owl
rename Rename entity IRIs robot rename --input ont.owl --mappings mappings.tsv --output renamed.owl
expand Expand shortcut macros robot expand --input ont.owl --output expanded.owl
repair Fix deprecated class references robot repair --input ont.owl --output repaired.owl
collapse Collapse import hierarchy robot collapse --input ont.owl --output collapsed.owl

Quality Control

Command Description Key Example
report QC report with built-in checks robot report --input ont.owl --output report.tsv
verify Check SPARQL-based rules robot verify --input ont.owl --queries rules/*.sparql
validate-profile Validate OWL profile compliance robot validate-profile --input ont.owl --profile EL --output violations.tsv

Querying and Exporting

Command Description Key Example
query Run SPARQL queries robot query --input ont.owl --query q.sparql results.csv
export Export entities as table robot export --input ont.owl --header "ID|LABEL|SubClass Of" --export terms.csv
diff Compare two ontologies robot diff --left v1.owl --right v2.owl --output changes.md
measure Ontology metrics `robot
Полный SKILL.md на GitHub

Установить robot-obo-tool в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

docs/annotate.mddocs/chaining.mddocs/collapse.mddocs/convert.mddocs/diff.mddocs/errors.mddocs/examples/README.mddocs/examples/animals_ext_template.owldocs/examples/animals_ext_template.tsvdocs/examples/animals_template.tsvdocs/examples/animals_template_error.tsvdocs/examples/annotated.obodocs/examples/annotated.obo.gzdocs/examples/annotated.owldocs/examples/annotated_2.owldocs/examples/annotated_module.owldocs/examples/annotated_source.owldocs/examples/annotations.ttldocs/examples/asserted-equiv.owldocs/examples/bar.jsondocs/examples/build.gradledocs/examples/catalog-diff.txtdocs/examples/catalog-right.xmldocs/examples/catalog.xmldocs/examples/cell_part.csvdocs/examples/cell_part.sparqldocs/examples/cell_part_ask.sparqldocs/examples/cell_part_ask.txtdocs/examples/changed_source.owldocs/examples/cl_module-simple-with-added-prefix.obodocs/examples/cl_module-simple.obodocs/examples/cl_module-strict-mergedcomments.obodocs/examples/cl_module-strict.obodocs/examples/cl_module.ofndocs/examples/classes-properties.csvdocs/examples/edi-annotated.owldocs/examples/edit.owldocs/examples/edit2.owldocs/examples/emr_example.obodocs/examples/emr_output.obo

FAQ

Что делает скилл robot-obo-tool?

Skills for using ROBOT, the OBO ontology command-line toolkit for reasoning, template-based term creation, quality control, format conversion, and ontology manipulation. Use this when working with OWL/OBO ontologies that need automated processing.

Как установить скилл robot-obo-tool?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл robot-obo-tool запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить robot-obo-tool с