You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用ROBOT从OBO本体获取父类(subClassOf)标识符而非标签

问题描述

我运行以下ROBOT代码从细胞本体(Cell Ontology)提取条目:

robot export --input data/cl.owl \
  --header "ID|LABEL|IAO_0000115|hasDbXref|subClassOf" \
  --export results/cl.csv

得到的结果示例如下:

CL:0000036,epithelial fate stem cell,,,single fate stem cell

其中single fate stem cell是父类的标签,想知道能否获取对应的CL标识符而非标签?

解决方案

可以通过在--header参数的subClassOf后添加:ID后缀,让ROBOT导出父类的标识符而非标签。修改后的代码如下:

robot export --input data/cl.owl \
  --header "ID|LABEL|IAO_0000115|hasDbXref|subClassOf:ID" \
  --export results/cl.csv

修改后,示例结果中的父类会变为对应的CL标识符(如CL:xxxxxxx格式)。

内容的提问来源于stack exchange,提问作者Tiago Lubiana

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.06 09:25:44