ingest
它能做什么
这项技能把外部数据从文件、数据库或其他来源导入 Semantica 知识图谱。适合希望把现有记录转换为相互关联的图谱条目的人。
适用场景
- ✓当你有一份需要加载到图谱中的记录表格或 JSON 文件的时候。
- ✓当你的数据保存在数据库中,并且你想把它放进图谱的时候。
- ✓当你希望新记录与图谱中已有的条目相互关联的时候。
技能链接
https://github.com/semantica-agi/semantica/blob/main/plugins/skills/ingest/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我把这个 CSV 文件中的客户名单加载到知识图谱中,并把每位客户与已有的公司关联起来?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会读取数据源,把其字段对应到图谱结构上,并把条目与图谱中已有的条目相连。然后它会报告新增了多少条目,以及任何警告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/semantica:ingest
Ingest new data into the knowledge graph. Usage: /semantica:ingest <source> [args]
$ARGUMENTS = source type + optional file path, connection string, or dataset identifier.
file <path> [--format json|csv|yaml|xml]
Ingest structured data from a local file.
from semantica.ingest import ingest_file
data = ingest_file(file_path=path, method='file', file_format=file_format)
Output: imported node/edge count and ingestion summary.
db <connection> [--query <sql>]
Ingest data from a database source.
from semantica.ingest import ingest_database
result = ingest_database(connection_string=conn, query=query)
Return: rows ingested, mapped entities, and warnings.
常见问题
它能读取哪些文件类型?
JSON、CSV、YAML 和 XML 文件。
它能从数据库中提取数据吗?
能。可以使用数据库连接,并可选择查询语句。
导入之后我会得到什么?
新增条目和连接的摘要;如果有字段未能正确对应,还会给出警告。
详情
作者的原始描述
Ingest data from files, databases, APIs, or streams into Semantica knowledge graphs with schema mapping and entity linking.
repo: semantica-agi/semantica
热度
- GitHub 星标
- 14k
- 排名
- #11150
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …