Agent Skills
› semantica-agi/semantica
› ingest
ingest
GitHub将文件、数据库、API或流中的数据摄入到 Semantica 知识图谱,支持模式映射和实体链接。
触发场景
需要从本地文件导入结构化数据
需要连接数据库并执行SQL查询导入数据
安装
npx skills add semantica-agi/semantica --skill ingest -g -y
SKILL.md
Frontmatter
{
"name": "ingest",
"description": "Ingest data from files, databases, APIs, or streams into Semantica knowledge graphs with schema mapping and entity linking."
}
/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.
版本历史
- 9094f1e 当前 2026-07-05 09:26


