# Ingest

Ingest data from files, databases, APIs, or streams into Semantica knowledge graphs...

- Repository: https://github.com/semantica-agi/semantica (14373 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add semantica-agi/semantica --skill ingest -g -a claude-code -y`
Codex: `npx skills add semantica-agi/semantica --skill ingest -g -a codex -y`
Cursor: `npx skills add semantica-agi/semantica --skill ingest -g -a cursor -y`
Gemini CLI: `npx skills add semantica-agi/semantica --skill ingest -g -a gemini-cli -y`

## Description

Ingest data from files, databases, APIs, or streams into Semantica knowledge graphs with schema mapping and entity linking.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# /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.

```python
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.

```python
from semantica.ingest import ingest_database

result = ingest_database(connection_string=conn, query=query)
```

Return: rows ingested, mapped entities, and warnings.

