v0.5.0 — Ontology Hub, Distance Intelligence, Parquet & XML ingestion, 12 security fixes. What’s new →
This guide walks you through the end-to-end pipeline for building your first knowledge graph. Start here after installation. An LLM API key is optional: pattern-based extraction works out of the box.

Install

Verify:

Full Pipeline

Semantica end-to-end pipeline: Ingest → Parse → Normalize → Extract → Build KG → QA → Store → Deliver
1

Ingest

Load a document from a file, directory, URL, or database.
2

Parse

Extract structured text and layout from raw documents.
For PDFs with tables, charts, or multi-column layouts, use DoclingParser: it applies advanced layout analysis and returns structured table data alongside text.
3

Extract Entities & Relationships

Identify named entities and extract typed relationships between them.
4

Build the Knowledge Graph

Assemble extracted entities and relationships into a queryable knowledge graph.
merge_entities=True automatically resolves duplicate entity references: “Apple”, “Apple Inc.”, “AAPL”: using semantic similarity. No manual deduplication needed.
5

Visualize

Render an interactive, zoomable knowledge graph in the browser.
Open graph.html in any browser: pan, zoom, click nodes for details, filter by entity type.
6

Export

Export to any downstream format.

Add Decision Intelligence

Track every agent decision with full causal chains and provenance: one extra import:

Common Patterns

Troubleshooting

The document likely contains scanned images rather than machine-readable text. Enable OCR:
Enable parallel processing and GPU acceleration:
Switch from in-memory NetworkX to a persistent backend:
Fixed in v0.5.0. Upgrade:

Next Steps

  • Core Concepts — Knowledge graphs, ontologies, reasoning engines: the mental model behind Semantica.
  • Module Reference — Every module explained with key classes and common chains.
  • API Reference — Complete documentation for every module, class, and parameter.
  • Cookbook — 40+ interactive Jupyter notebooks with real-world datasets.