Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

Update cookbook documentation: Add PyPI installation instructions and update module lists

KaifAhmad1ca0b9028e037
diff --git a/cookbook/advanced/01_Advanced_Extraction.ipynb b/cookbook/advanced/01_Advanced_Extraction.ipynb
index a1938cb2..eef0fda2 100644
--- a/cookbook/advanced/01_Advanced_Extraction.ipynb
+++ b/cookbook/advanced/01_Advanced_Extraction.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/01_Advanced_Extraction.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/01_Advanced_Extraction.ipynb)\n",
+ "\n",
"# Advanced Extraction\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates advanced semantic extraction using EventDetector, CoreferenceResolver, TripleExtractor, SemanticAnalyzer, SemanticNetworkExtractor, LLMEnhancer, and ExtractionValidator.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/semantic_extract/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/semantic_extract/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use EventDetector to detect events\n",
@@ -22,6 +25,16 @@
"- Use LLMEnhancer for LLM-based enhancement\n",
"- Use ExtractionValidator to validate extractions\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Workflow: Event Detection → Coreference Resolution → Triple Extraction → Semantic Analysis → Network Extraction → LLM Enhancement → Validation\n"
@@ -210,4 +223,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/02_Advanced_Graph_Analytics.ipynb b/cookbook/advanced/02_Advanced_Graph_Analytics.ipynb
index c3c1bdc5..70165452 100644
--- a/cookbook/advanced/02_Advanced_Graph_Analytics.ipynb
+++ b/cookbook/advanced/02_Advanced_Graph_Analytics.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/02_Advanced_Graph_Analytics.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/02_Advanced_Graph_Analytics.ipynb)\n",
+ "\n",
"# Advanced Graph Analytics\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates advanced graph analytics using GraphAnalyzer, CentralityCalculator, CommunityDetector, ConnectivityAnalyzer, GraphValidator, Deduplicator, and **GraphStore** for persistent storage.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use GraphAnalyzer for comprehensive graph analysis\n",
@@ -21,6 +24,16 @@
"- Use GraphValidator and Deduplicator for graph quality\n",
"- **Use GraphStore to persist graphs to Neo4j, KuzuDB, or FalkorDB**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Workflow: Graph Analysis → Centrality → Communities → Connectivity → Validation → Deduplication → **Persist to Graph Store**\n"
@@ -225,4 +238,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/03_Complete_Visualization_Suite.ipynb b/cookbook/advanced/03_Complete_Visualization_Suite.ipynb
index ddb8dceb..eb327f7a 100644
--- a/cookbook/advanced/03_Complete_Visualization_Suite.ipynb
+++ b/cookbook/advanced/03_Complete_Visualization_Suite.ipynb
@@ -4,13 +4,25 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/03_Complete_Visualization_Suite.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/03_Complete_Visualization_Suite.ipynb)\n",
+ "\n",
"# Complete Visualization Suite\n",
"\n",
"## Overview\n",
"\n",
"Comprehensive visualization capabilities: visualize knowledge graphs, embeddings, quality metrics, analytics, and temporal data.\n",
- "\n\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/visualization/)\n"
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/visualization/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n"
]
},
{
@@ -239,4 +251,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/04_Conflict_Resolution_Strategies.ipynb b/cookbook/advanced/04_Conflict_Resolution_Strategies.ipynb
index f8a0cebf..fb4dfa2a 100644
--- a/cookbook/advanced/04_Conflict_Resolution_Strategies.ipynb
+++ b/cookbook/advanced/04_Conflict_Resolution_Strategies.ipynb
@@ -4,14 +4,27 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/04_Conflict_Resolution_Strategies.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/04_Conflict_Resolution_Strategies.ipynb)\n",
+ "\n",
"# Conflict Resolution Strategies\n",
"\n",
"## Overview\n",
"\n",
"Detect conflicts in knowledge graphs, apply multiple resolution strategies, track sources, and maintain audit trails.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/conflicts/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/conflicts/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"## Workflow: Detect Conflicts → Multiple Resolution Strategies → Track Sources → Audit\n"
]
},
@@ -309,4 +322,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/05_Multi_Format_Export.ipynb b/cookbook/advanced/05_Multi_Format_Export.ipynb
index 52f207f5..f47055c2 100644
--- a/cookbook/advanced/05_Multi_Format_Export.ipynb
+++ b/cookbook/advanced/05_Multi_Format_Export.ipynb
@@ -4,13 +4,25 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/05_Multi_Format_Export.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/05_Multi_Format_Export.ipynb)\n",
+ "\n",
"# Multi-Format Export\n",
"\n",
"## Overview\n",
"\n",
"Export knowledge graphs and data to multiple formats: JSON, RDF, CSV, Graph formats, OWL, and Vector formats.\n",
- "\n\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/export/)\n"
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/export/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n"
]
},
{
@@ -220,4 +232,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/06_Multi_Source_Data_Integration.ipynb b/cookbook/advanced/06_Multi_Source_Data_Integration.ipynb
index 656934d4..ecaa9f38 100644
--- a/cookbook/advanced/06_Multi_Source_Data_Integration.ipynb
+++ b/cookbook/advanced/06_Multi_Source_Data_Integration.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/06_Multi_Source_Data_Integration.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/06_Multi_Source_Data_Integration.ipynb)\n",
+ "\n",
"# Multi-Source Data Integration\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates advanced multi-source data integration using multiple ingestion types, entity resolution, conflict detection, and provenance tracking.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/ingest/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/ingest/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Ingest data from multiple sources (files, web, databases, streams, feeds)\n",
@@ -20,6 +23,16 @@
"- Track provenance using ProvenanceTracker\n",
"- Integrate data into a unified knowledge graph\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Workflow: Multi-Source Ingestion → Entity Resolution → Conflict Detection → Provenance Tracking → Unified KG\n"
@@ -193,4 +206,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/07_Pipeline_Orchestration.ipynb b/cookbook/advanced/07_Pipeline_Orchestration.ipynb
index 54af70d1..cf0afab0 100644
--- a/cookbook/advanced/07_Pipeline_Orchestration.ipynb
+++ b/cookbook/advanced/07_Pipeline_Orchestration.ipynb
@@ -4,14 +4,27 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/07_Pipeline_Orchestration.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/07_Pipeline_Orchestration.ipynb)\n",
+ "\n",
"# Pipeline Orchestration\n",
"\n",
"## Overview\n",
"\n",
"Build complex pipelines, execute them, handle failures, enable parallel processing, and monitor execution.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/pipeline/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/pipeline/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"## Workflow: Build Pipelines → Execute → Handle Failures → Parallel Processing → Monitor\n"
]
},
@@ -185,4 +198,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/08_Reasoning_and_Inference.ipynb b/cookbook/advanced/08_Reasoning_and_Inference.ipynb
index d0d5a2b7..a168ecb1 100644
--- a/cookbook/advanced/08_Reasoning_and_Inference.ipynb
+++ b/cookbook/advanced/08_Reasoning_and_Inference.ipynb
@@ -4,14 +4,27 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/08_Reasoning_and_Inference.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/08_Reasoning_and_Inference.ipynb)\n",
+ "\n",
"# Reasoning and Inference\n",
"\n",
"## Overview\n",
"\n",
"Build knowledge graphs, define rules, perform forward/backward chaining, and generate explanations for AI reasoning.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/reasoning/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/reasoning/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"## Workflow: Build KG → Define Rules → Forward/Backward Chaining → Generate Explanations\n"
]
},
@@ -262,4 +275,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/09_Semantic_Layer_Construction.ipynb b/cookbook/advanced/09_Semantic_Layer_Construction.ipynb
index e8e31986..5f2abf25 100644
--- a/cookbook/advanced/09_Semantic_Layer_Construction.ipynb
+++ b/cookbook/advanced/09_Semantic_Layer_Construction.ipynb
@@ -4,14 +4,27 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/09_Semantic_Layer_Construction.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/09_Semantic_Layer_Construction.ipynb)\n",
+ "\n",
"# Semantic Layer Construction\n",
"\n",
"## Overview\n",
"\n",
"Build an enterprise semantic layer: construct knowledge graph, generate ontology, create semantic layer, export RDF, and store in triple store.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/concepts/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/concepts/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"## Workflow: Build KG → Generate Ontology → Create Semantic Layer → Export RDF → Triple Store\n"
]
},
@@ -184,4 +197,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/10_Temporal_Knowledge_Graphs.ipynb b/cookbook/advanced/10_Temporal_Knowledge_Graphs.ipynb
index b1eb9a8c..d5a0508e 100644
--- a/cookbook/advanced/10_Temporal_Knowledge_Graphs.ipynb
+++ b/cookbook/advanced/10_Temporal_Knowledge_Graphs.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/10_Temporal_Knowledge_Graphs.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/10_Temporal_Knowledge_Graphs.ipynb)\n",
+ "\n",
"# Temporal Knowledge Graphs\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates advanced temporal knowledge graph capabilities using TemporalGraphQuery, TemporalPatternDetector, TemporalVersionManager, and TemporalVisualizer.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use TemporalGraphQuery for time-aware queries\n",
@@ -19,6 +22,16 @@
"- Use TemporalVersionManager for temporal versioning and snapshots\n",
"- Use TemporalVisualizer to visualize temporal data\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Workflow: Build Temporal KG → Time-Aware Queries → Pattern Detection → Version Management → Visualization\n"
@@ -168,4 +181,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/11_Text_Chunking_Strategies.ipynb b/cookbook/advanced/11_Text_Chunking_Strategies.ipynb
index 9181fa9c..d076be91 100644
--- a/cookbook/advanced/11_Text_Chunking_Strategies.ipynb
+++ b/cookbook/advanced/11_Text_Chunking_Strategies.ipynb
@@ -4,13 +4,25 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/11_Text_Chunking_Strategies.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/11_Text_Chunking_Strategies.ipynb)\n",
+ "\n",
"# Text Chunking Strategies\n",
"\n",
"## Overview\n",
"\n",
"Explore different text chunking strategies: semantic, structural, sliding window, and table chunking for optimal document processing.\n",
- "\n\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/split/)\n"
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/split/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n"
]
},
{
@@ -250,4 +262,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/advanced/12_Unstructured_to_Ontology.ipynb b/cookbook/advanced/12_Unstructured_to_Ontology.ipynb
index e7b5437d..1584057b 100644
--- a/cookbook/advanced/12_Unstructured_to_Ontology.ipynb
+++ b/cookbook/advanced/12_Unstructured_to_Ontology.ipynb
@@ -4,14 +4,27 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/12_Unstructured_to_Ontology.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/advanced/12_Unstructured_to_Ontology.ipynb)\n",
+ "\n",
"# Unstructured to Ontology\n",
"\n",
"## Overview\n",
"\n",
"Transform unstructured text into a formal ontology: extract concepts, generate ontology, validate, and export to OWL.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/ontology/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/ontology/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"## Workflow: Unstructured Text → Extract Concepts → Generate Ontology → Validate → Export OWL\n"
]
},
@@ -153,4 +166,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/01_Welcome_to_Semantica.ipynb b/cookbook/introduction/01_Welcome_to_Semantica.ipynb
index d9933e30..96b8f1f7 100644
--- a/cookbook/introduction/01_Welcome_to_Semantica.ipynb
+++ b/cookbook/introduction/01_Welcome_to_Semantica.ipynb
@@ -55,22 +55,23 @@
"### Installation Methods\n",
"\n",
"```bash\n",
- "# Method 1: Install from PyPI (when available)\n",
- "# pip install semantica\n",
+ "# Method 1: Install from PyPI (Recommended)\n",
+ "pip install semantica\n",
+ "\n",
+ "# Or install with all optional dependencies:\n",
+ "pip install semantica[all]\n",
"\n",
"# Method 2: Install from source (development version)\n",
- "# git clone https://github.com/your-org/semantica.git\n",
- "# cd semantica\n",
- "# pip install -e .\n",
+ "git clone https://github.com/Hawksight-AI/semantica.git\n",
+ "cd semantica\n",
+ "pip install -e .\n",
"\n",
- "# Method 3: Install with specific dependencies\n",
- "# pip install semantica[all] # Install all optional dependencies\n",
- "# pip install semantica[gpu] # Install GPU support\n",
- "# pip install semantica[visualization] # Install visualization tools\n",
+ "# Or with all optional dependencies:\n",
+ "pip install -e \".[all]\"\n",
"\n",
"# Verify installation\n",
- "# import semantica\n",
- "# print(semantica.__version__)\n",
+ "import semantica\n",
+ "print(semantica.__version__)\n",
"```\n",
"\n",
"### Configuration\n",
@@ -106,14 +107,15 @@
"- `FileIngestor`: Read files (PDF, DOCX, HTML, JSON, CSV, etc.)\n",
"- `WebIngestor`: Scrape and ingest web pages\n",
"- `FeedIngestor`: Process RSS/Atom feeds\n",
- "- `StreamIngestor`: Real-time data streaming\n",
- "- `DBIngestor`: Database queries and ingestion\n",
- "- `EmailIngestor`: Process email messages\n",
+ "- `StreamIngestor`: Real-time data streaming (Kafka, RabbitMQ, Kinesis, Pulsar)\n",
+ "- `DBIngestor`: Database queries and ingestion (PostgreSQL, MySQL, SQLite, Oracle, SQL Server)\n",
+ "- `EmailIngestor`: Process email messages (IMAP, POP3)\n",
"- `RepoIngestor`: Git repository analysis\n",
+ "- `MCPIngestor`: Model Context Protocol server integration\n",
"\n",
"**Example**:\n",
"```python\n",
- "from semantica.ingest import FileIngestor, WebIngestor\n",
+ "from semantica.ingest import FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"file_ingestor = FileIngestor()\n",
"web_ingestor = WebIngestor()\n",
"documents = file_ingestor.ingest(\"data/\")\n",
@@ -619,7 +621,7 @@
"# Verify installation\n",
"import semantica\n",
"\n",
- "print(f\"Semantica version: {semantica.__version__}\")\n"
+ "semantica.__version__\n"
]
},
{
@@ -652,7 +654,7 @@
"outputs": [],
"source": [
"# Import core modules\n",
- "from semantica.ingest import FileIngestor\n",
+ "from semantica.ingest import FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"from semantica.parse import DocumentParser\n",
"from semantica.semantic_extract import NERExtractor\n",
"from semantica.kg import GraphBuilder\n",
@@ -662,7 +664,6 @@
"from semantica.ontology import OntologyGenerator\n",
"from semantica.export import JSONExporter\n",
"from semantica.pipeline import PipelineBuilder\n",
- "print(\"Core modules imported successfully\")\n",
"\n"
]
},
@@ -709,8 +710,7 @@
" {\"source\": \"org_1\", \"target\": \"loc_1\", \"type\": \"located_in\"}\n",
"]\n",
"\n",
- "print(f\"Entities: {len(entities)}\")\n",
- "print(f\"Relationships: {len(relationships)}\")\n"
+ "len(entities), len(relationships)\n"
]
},
{
@@ -794,8 +794,8 @@
"# Module Import Examples\n",
"# This demonstrates how to import and use various Semantica modules\n",
"\n",
- "# 1. INGEST MODULE\n",
- "from semantica.ingest import FileIngestor, WebIngestor\n",
+ "# 1. INGEST MODULE - All 8 ingestion types\n",
+ "from semantica.ingest import FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"\n",
"# 2. PARSE MODULE\n",
"from semantica.parse import DocumentParser, PDFParser, DOCXParser\n",
@@ -864,19 +864,8 @@
" {\"source\": \"org_1\", \"target\": \"loc_1\", \"type\": \"located_in\", \"properties\": {}}\n",
"]\n",
"\n",
- "print(f\"\\nEntities ({len(entities)}):\")\n",
- "for entity in entities:\n",
- " print(f\" - {entity['name']} ({entity['type']})\")\n",
- "\n",
- "print(f\"\\nRelationships ({len(relationships)}):\")\n",
- "for rel in relationships:\n",
- " source_name = next(e['name'] for e in entities if e['id'] == rel['source'])\n",
- " target_name = next(e['name'] for e in entities if e['id'] == rel['target'])\n",
- " print(f\" - {source_name} --[{rel['type']}]--> {target_name}\")\n",
- " if rel['properties']:\n",
- " print(f\" Properties: {rel['properties']}\")\n",
- "\n",
- "print(\"\\nThis demonstrates how entities (nodes) and relationships (edges) form a knowledge graph.\")\n"
+ "# This demonstrates how entities (nodes) and relationships (edges) form a knowledge graph\n",
+ "entities, relationships\n"
]
},
{
@@ -904,10 +893,9 @@
"ner = NamedEntityRecognizer()\n",
"\n",
"# Extract entities (this is a demonstration - actual extraction requires proper setup)\n",
- "print(f'\"{sample_text}\"')\n",
- "\n",
- "print(\" 1. Configure API keys for LLM providers\")\n",
- "print(\" 2. Initialize the extractor with proper configuration\")\n"
+ "# 1. Configure API keys for LLM providers\n",
+ "# 2. Initialize the extractor with proper configuration\n",
+ "sample_text\n"
]
},
{
@@ -937,13 +925,10 @@
"embedding_dim = 1536 # Typical dimension for OpenAI embeddings\n",
"demo_embedding = np.random.rand(embedding_dim).astype(np.float32)\n",
"\n",
- "print(f\"Embedding Shape: {demo_embedding.shape}\")\n",
- "print(\" - Similar texts have similar embeddings (close in vector space)\")\n",
- "print(\" - Enable semantic search and similarity calculations\")\n",
- "print(\" - Fixed dimensions (typically 128-4096)\")\n",
- "\n",
- "print(\" from semantica.embeddings import EmbeddingGenerator\")\n",
- "print(\" embeddings = generator.generate(documents)\")\n"
+ "# Embeddings enable semantic search and similarity calculations\n",
+ "# Similar texts have similar embeddings (close in vector space)\n",
+ "# Fixed dimensions (typically 128-4096)\n",
+ "demo_embedding.shape\n"
]
}
],
diff --git a/cookbook/introduction/02_Configuration_Basics.ipynb b/cookbook/introduction/02_Configuration_Basics.ipynb
index aeaa4c27..bf3dea48 100644
--- a/cookbook/introduction/02_Configuration_Basics.ipynb
+++ b/cookbook/introduction/02_Configuration_Basics.ipynb
@@ -22,6 +22,28 @@
"- Configure common settings for API keys, models, and processing\n",
"- Follow best practices for configuration management\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
+ "This notebook teaches you how to configure Semantica using `ConfigManager`, environment variables, and configuration files. Proper configuration is essential for using Semantica effectively.\n",
+ "\n",
+ "**Documentation**: [Core API Reference](https://semantica.readthedocs.io/reference/core/) • [Installation Guide](https://semantica.readthedocs.io/installation/)\n",
+ "\n",
+ "### Learning Objectives\n",
+ "\n",
+ "- Understand how to use `ConfigManager` for configuration management\n",
+ "- Learn to set and use environment variables\n",
+ "- Create and load configuration files (YAML/JSON)\n",
+ "- Configure common settings for API keys, models, and processing\n",
+ "- Follow best practices for configuration management\n",
+ "\n",
"---\n",
"\n",
"## Configuration Methods\n",
diff --git a/cookbook/introduction/03_Data_Ingestion.ipynb b/cookbook/introduction/03_Data_Ingestion.ipynb
index 17e4a2d9..a468c009 100644
--- a/cookbook/introduction/03_Data_Ingestion.ipynb
+++ b/cookbook/introduction/03_Data_Ingestion.ipynb
@@ -10,7 +10,7 @@
"\n",
"## Overview\n",
"\n",
- "This notebook demonstrates how to ingest data from various sources using Semantica's ingestion modules. You'll learn to ingest files, web content, databases, streams, and feeds.\n",
+ "This notebook demonstrates how to ingest data from various sources using Semantica's ingestion modules. You'll learn to ingest files, web content, databases, streams, feeds, repositories, emails, and MCP servers.\n",
"\n",
"**Documentation**: [Ingest API Reference](https://semantica.readthedocs.io/reference/ingest/)\n",
"\n",
@@ -18,9 +18,37 @@
"\n",
"- Use `FileIngestor` to load files from local and cloud storage\n",
"- Use `WebIngestor` to scrape and crawl web content\n",
- "- Use `DBIngestor` to extract data from databases\n",
- "- Use `StreamIngestor` for real-time data streams\n",
"- Use `FeedIngestor` to process RSS/Atom feeds\n",
+ "- Use `StreamIngestor` for real-time data streams (Kafka, RabbitMQ, Kinesis, Pulsar)\n",
+ "- Use `DBIngestor` to extract data from databases (PostgreSQL, MySQL, SQLite, Oracle, SQL Server)\n",
+ "- Use `EmailIngestor` to process email messages (IMAP, POP3)\n",
+ "- Use `RepoIngestor` to analyze Git repositories\n",
+ "- Use `MCPIngestor` to connect to Model Context Protocol servers\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
+ "This notebook demonstrates how to ingest data from various sources using Semantica's ingestion modules. You'll learn to ingest files, web content, databases, streams, feeds, repositories, emails, and MCP servers.\n",
+ "\n",
+ "**Documentation**: [Ingest API Reference](https://semantica.readthedocs.io/reference/ingest/)\n",
+ "\n",
+ "### Learning Objectives\n",
+ "\n",
+ "- Use `FileIngestor` to load files from local and cloud storage\n",
+ "- Use `WebIngestor` to scrape and crawl web content\n",
+ "- Use `FeedIngestor` to process RSS/Atom feeds\n",
+ "- Use `StreamIngestor` for real-time data streams (Kafka, RabbitMQ, Kinesis, Pulsar)\n",
+ "- Use `DBIngestor` to extract data from databases (PostgreSQL, MySQL, SQLite, Oracle, SQL Server)\n",
+ "- Use `EmailIngestor` to process email messages (IMAP, POP3)\n",
+ "- Use `RepoIngestor` to analyze Git repositories\n",
+ "- Use `MCPIngestor` to connect to Model Context Protocol servers\n",
"\n",
"---\n",
"\n",
@@ -49,10 +77,7 @@
"\n",
"file_object = file_ingestor.ingest_file(sample_file, read_content=True)\n",
"\n",
- "print(f\"Ingested file: {file_object.name}\")\n",
- "print(f\"File type: {file_object.file_type}\")\n",
- "print(f\"Size: {file_object.size} bytes\")\n",
- "print(f\"Content preview: {file_object.content[:50]}...\")\n"
+ "file_object.name, file_object.file_type, file_object.size\n"
]
},
{
@@ -76,9 +101,7 @@
"\n",
"file_objects = file_ingestor.ingest_directory(temp_dir, recursive=False, read_content=True)\n",
"\n",
- "print(f\"Ingested {len(file_objects)} files from directory\")\n",
- "for file_obj in file_objects:\n",
- " print(f\" - {file_obj.name} ({file_obj.file_type})\")\n"
+ "len(file_objects)\n"
]
},
{
@@ -100,13 +123,9 @@
"\n",
"web_ingestor = WebIngestor()\n",
"\n",
- "try:\n",
- " web_content = web_ingestor.ingest_url(\"https://example.com\")\n",
- " print(f\"Ingested web page: {web_content.url}\")\n",
- " print(f\"Title: {web_content.title}\")\n",
- " print(f\"Content length: {len(web_content.text)} characters\")\n",
- "except Exception as e:\n",
- " print(f\"Web ingestion example (requires internet): {e}\")\n"
+ "# Note: Requires internet connection\n",
+ "web_content = web_ingestor.ingest_url(\"https://example.com\")\n",
+ "web_content.url, web_content.title, len(web_content.text)\n"
]
},
{
@@ -126,7 +145,10 @@
"source": [
"from semantica.ingest import DBIngestor\n",
"\n",
- "db_ingestor = DBIngestor()\n"
+ "# Example: Database ingestion\n",
+ "# Requires database connection string\n",
+ "# db_ingestor = DBIngestor()\n",
+ "# table_data = db_ingestor.ingest_table(\"postgresql://user:pass@host/db\", \"table_name\")\n"
]
},
{
@@ -146,7 +168,10 @@
"source": [
"from semantica.ingest import StreamIngestor\n",
"\n",
- "stream_ingestor = StreamIngestor()\n"
+ "# Example: Stream ingestion (Kafka, RabbitMQ, Kinesis, Pulsar)\n",
+ "# Requires stream configuration\n",
+ "# stream_ingestor = StreamIngestor()\n",
+ "# messages = stream_ingestor.ingest_stream(\"kafka://broker:9092/topic\")\n"
]
},
{
@@ -168,14 +193,75 @@
"\n",
"feed_ingestor = FeedIngestor()\n",
"\n",
- "try:\n",
- " feed_data = feed_ingestor.ingest_feed(\"https://feeds.feedburner.com/oreilly/radar\")\n",
- " print(f\"Ingested feed: {feed_data.title}\")\n",
- " print(f\"Items: {len(feed_data.items)}\")\n",
- " if feed_data.items:\n",
- " print(f\"First item: {feed_data.items[0].title}\")\n",
- "except Exception as e:\n",
- " print(f\"Feed ingestion example (requires internet): {e}\")\n"
+ "# Note: Requires internet connection\n",
+ "feed_data = feed_ingestor.ingest_feed(\"https://feeds.feedburner.com/oreilly/radar\")\n",
+ "feed_data.title, len(feed_data.items)\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Step 7: Repository Ingestion\n",
+ "\n",
+ "Ingest and analyze Git repositories.\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from semantica.ingest import RepoIngestor\n",
+ "\n",
+ "# Example: Repository ingestion\n",
+ "# repo_ingestor = RepoIngestor()\n",
+ "# repo_data = repo_ingestor.ingest_repository(\"https://github.com/user/repo.git\")\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Step 8: Email Ingestion\n",
+ "\n",
+ "Ingest email messages from IMAP or POP3 servers.\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from semantica.ingest import EmailIngestor\n",
+ "\n",
+ "# Example: Email ingestion\n",
+ "# email_ingestor = EmailIngestor()\n",
+ "# emails = email_ingestor.ingest_imap(\"imap.example.com\", \"user\", \"password\", \"INBOX\")\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Step 9: MCP Ingestion\n",
+ "\n",
+ "Ingest data from Model Context Protocol (MCP) servers.\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from semantica.ingest import MCPIngestor\n",
+ "\n",
+ "# Example: MCP ingestion\n",
+ "# mcp_ingestor = MCPIngestor()\n",
+ "# resources = mcp_ingestor.ingest_resources(\"mcp://server:port\")\n"
]
},
{
@@ -188,9 +274,12 @@
"\n",
"- **FileIngestor**: Local files and directories\n",
"- **WebIngestor**: Web pages and URLs\n",
- "- **DBIngestor**: Database tables and queries\n",
- "- **StreamIngestor**: Real-time data streams\n",
"- **FeedIngestor**: RSS/Atom feeds\n",
+ "- **StreamIngestor**: Real-time data streams (Kafka, RabbitMQ, Kinesis, Pulsar)\n",
+ "- **DBIngestor**: Database tables and queries (PostgreSQL, MySQL, SQLite, Oracle, SQL Server)\n",
+ "- **EmailIngestor**: Email messages (IMAP, POP3)\n",
+ "- **RepoIngestor**: Git repository analysis\n",
+ "- **MCPIngestor**: Model Context Protocol server integration\n",
"\n",
"Next: Learn how to parse the ingested data in the Document_Parsing notebook.\n"
]
diff --git a/cookbook/introduction/04_Document_Parsing.ipynb b/cookbook/introduction/04_Document_Parsing.ipynb
index ae61425d..fec81962 100644
--- a/cookbook/introduction/04_Document_Parsing.ipynb
+++ b/cookbook/introduction/04_Document_Parsing.ipynb
@@ -4,14 +4,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/04_Document_Parsing.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/04_Document_Parsing.ipynb)\n",
+ "\n",
"# Document Parsing\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to parse various document formats using Semantica's parsing modules. You'll learn to extract text, metadata, and structured data from PDFs, DOCX, CSV, JSON, XML, and HTML files.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/parse/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/parse/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `DocumentParser` for general document parsing\n",
@@ -19,6 +21,16 @@
"- Extract text content and metadata from documents\n",
"- Parse structured data formats\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Document Parser\n",
@@ -47,8 +59,7 @@
"text = document_parser.extract_text(sample_txt)\n",
"metadata = document_parser.extract_metadata(sample_txt)\n",
"\n",
- "print(f\"Extracted text: {text[:50]}...\")\n",
- "print(f\"Metadata: {metadata}\")\n"
+ "text[:50], metadata\n"
]
},
{
@@ -246,4 +257,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/05_Data_Normalization.ipynb b/cookbook/introduction/05_Data_Normalization.ipynb
index 9de69bf5..5fa2f43a 100644
--- a/cookbook/introduction/05_Data_Normalization.ipynb
+++ b/cookbook/introduction/05_Data_Normalization.ipynb
@@ -4,14 +4,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/05_Data_Normalization.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/05_Data_Normalization.ipynb)\n",
+ "\n",
"# Data Normalization\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to normalize and clean data using Semantica's normalization modules. You'll learn to normalize text, entities, dates, numbers, and handle encoding issues.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/normalize/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/normalize/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `TextNormalizer` for text cleaning and normalization\n",
@@ -21,6 +23,16 @@
"- Use `DataCleaner` for general data cleaning\n",
"- Use `LanguageDetector` and `EncodingHandler` for data quality\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Text Normalization\n",
@@ -43,9 +55,7 @@
"normalized = text_normalizer.normalize_text(sample_text, case=\"lower\")\n",
"cleaned = text_normalizer.clean_text(sample_text, remove_special_chars=False)\n",
"\n",
- "print(f\"Original: {sample_text}\")\n",
- "print(f\"Normalized: {normalized}\")\n",
- "print(f\"Cleaned: {cleaned}\")\n"
+ "sample_text, normalized, cleaned\n"
]
},
{
@@ -227,4 +237,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/06_Entity_Extraction.ipynb b/cookbook/introduction/06_Entity_Extraction.ipynb
index 490aaf50..b0b7139e 100644
--- a/cookbook/introduction/06_Entity_Extraction.ipynb
+++ b/cookbook/introduction/06_Entity_Extraction.ipynb
@@ -4,14 +4,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/06_Entity_Extraction.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/06_Entity_Extraction.ipynb)\n",
+ "\n",
"# Entity Extraction\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to extract named entities from text using Semantica's NER modules. You'll learn to use `NERExtractor` and `NamedEntityRecognizer` to identify entities in text.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/semantic_extract/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/semantic_extract/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `NERExtractor` to extract entities from text\n",
@@ -19,6 +21,16 @@
"- Understand entity types and confidence scores\n",
"- Extract entities from multiple documents\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Basic Entity Extraction\n",
@@ -105,4 +117,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/07_Relation_Extraction.ipynb b/cookbook/introduction/07_Relation_Extraction.ipynb
index 80a1e859..3c3abe52 100644
--- a/cookbook/introduction/07_Relation_Extraction.ipynb
+++ b/cookbook/introduction/07_Relation_Extraction.ipynb
@@ -4,14 +4,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/07_Relation_Extraction.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/07_Relation_Extraction.ipynb)\n",
+ "\n",
"# Relation Extraction\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to extract relationships between entities using Semantica's relation extraction modules. You'll learn to use `RelationExtractor` and `TripleExtractor` to identify relationships in text.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/semantic_extract/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/semantic_extract/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `RelationExtractor` to extract relationships between entities\n",
@@ -19,6 +21,16 @@
"- Understand relationship types and confidence scores\n",
"- Extract relationships from text with entities\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Relation Extraction\n",
@@ -103,4 +115,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/08_Building_Knowledge_Graphs.ipynb b/cookbook/introduction/08_Building_Knowledge_Graphs.ipynb
index fb853a84..7fdfb22d 100644
--- a/cookbook/introduction/08_Building_Knowledge_Graphs.ipynb
+++ b/cookbook/introduction/08_Building_Knowledge_Graphs.ipynb
@@ -4,14 +4,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/08_Building_Knowledge_Graphs.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/08_Building_Knowledge_Graphs.ipynb)\n",
+ "\n",
"# Building Knowledge Graphs\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to build knowledge graphs from entities and relationships using Semantica's graph building modules. You'll learn to use `GraphBuilder`, `EntityResolver`, `GraphValidator`, and `Deduplicator`.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `GraphBuilder` to construct knowledge graphs\n",
@@ -19,6 +21,16 @@
"- Use `GraphValidator` to validate graph structure\n",
"- Use `Deduplicator` to remove duplicate entities\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Build Knowledge Graph\n",
@@ -167,4 +179,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/09_Your_First_Knowledge_Graph.ipynb b/cookbook/introduction/09_Your_First_Knowledge_Graph.ipynb
index ea8f5035..2b252c9b 100644
--- a/cookbook/introduction/09_Your_First_Knowledge_Graph.ipynb
+++ b/cookbook/introduction/09_Your_First_Knowledge_Graph.ipynb
@@ -4,7 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/09_Your_First_Knowledge_Graph.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/09_Your_First_Knowledge_Graph.ipynb)\n",
+ "\n",
"# 🚀 Your First Knowledge Graph\n",
"\n",
"## Overview\n",
@@ -14,7 +15,8 @@
"> [!TIP]\n",
"> This is the perfect starting point if you are new to Semantica. No prior knowledge of knowledge graphs is required!\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg/)\n",
+ "\n",
"### 🎯 Learning Objectives\n",
"\n",
"- **Understand the Workflow**: Learn the `File → Parse → Extract → Graph` pipeline\n",
@@ -24,6 +26,16 @@
"- **Build Graph**: Construct a graph using `GraphBuilder`\n",
"- **Visualize**: See your graph come to life with `KGVisualizer`\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## 🔄 Simple End-to-End Workflow\n",
@@ -280,4 +292,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/10_Graph_Store.ipynb b/cookbook/introduction/10_Graph_Store.ipynb
index c7792c66..ce0861c8 100644
--- a/cookbook/introduction/10_Graph_Store.ipynb
+++ b/cookbook/introduction/10_Graph_Store.ipynb
@@ -4,14 +4,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/10_Graph_Store.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/10_Graph_Store.ipynb)\n",
+ "\n",
"# Graph Store\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to store and query property graphs using Semantica's graph store modules. You'll learn to use `GraphStore` with multiple backends including Neo4j, KuzuDB, and FalkorDB.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/graph_store/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/graph_store/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `GraphStore` to store nodes and relationships\n",
@@ -19,6 +21,16 @@
"- Use graph analytics (shortest path, neighbors)\n",
"- Compare different graph database backends\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Prerequisites\n",
@@ -362,4 +374,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/11_Graph_Analytics.ipynb b/cookbook/introduction/11_Graph_Analytics.ipynb
index 1a43732d..42d72077 100644
--- a/cookbook/introduction/11_Graph_Analytics.ipynb
+++ b/cookbook/introduction/11_Graph_Analytics.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/11_Graph_Analytics.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/11_Graph_Analytics.ipynb)\n",
+ "\n",
"# Graph Analytics\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to analyze knowledge graphs using Semantica's analytics modules. You'll learn to use `GraphAnalyzer`, `CentralityCalculator`, `CommunityDetector`, and `ConnectivityAnalyzer` to understand graph structure and properties.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `GraphAnalyzer` for comprehensive graph analysis\n",
@@ -19,6 +22,16 @@
"- Use `CommunityDetector` to find communities in graphs\n",
"- Use `ConnectivityAnalyzer` to analyze graph connectivity\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Graph Analysis\n",
@@ -161,4 +174,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/12_Graph_Quality.ipynb b/cookbook/introduction/12_Graph_Quality.ipynb
index afaa5923..411b7400 100644
--- a/cookbook/introduction/12_Graph_Quality.ipynb
+++ b/cookbook/introduction/12_Graph_Quality.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/12_Graph_Quality.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/12_Graph_Quality.ipynb)\n",
+ "\n",
"# Graph Quality\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to assess and improve knowledge graph quality using Semantica's quality assurance modules. You'll learn to use `KGQualityAssessor`, `ConsistencyChecker`, `CompletenessValidator`, and `QualityMetrics`.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg_qa/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/kg_qa/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `KGQualityAssessor` for overall quality assessment\n",
@@ -19,6 +22,16 @@
"- Use `CompletenessValidator` to check completeness\n",
"- Use `QualityMetrics` to calculate quality metrics\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Quality Assessment\n",
@@ -155,4 +168,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/13_Embedding_Generation.ipynb b/cookbook/introduction/13_Embedding_Generation.ipynb
index c8cdbee6..13438755 100644
--- a/cookbook/introduction/13_Embedding_Generation.ipynb
+++ b/cookbook/introduction/13_Embedding_Generation.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/13_Embedding_Generation.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/13_Embedding_Generation.ipynb)\n",
+ "\n",
"# Embedding Generation\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to generate embeddings from text using Semantica's embedding modules. You'll learn to use `EmbeddingGenerator` and `TextEmbedder` to create vector representations of text.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/embeddings/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/embeddings/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `EmbeddingGenerator` to generate embeddings\n",
@@ -19,6 +22,16 @@
"- Generate embeddings for multiple texts\n",
"- Understand embedding dimensions\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Generate Embeddings\n",
@@ -97,4 +110,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/14_Vector_Store.ipynb b/cookbook/introduction/14_Vector_Store.ipynb
index 2aadf8e8..a96e5f9d 100644
--- a/cookbook/introduction/14_Vector_Store.ipynb
+++ b/cookbook/introduction/14_Vector_Store.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/14_Vector_Store.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/14_Vector_Store.ipynb)\n",
+ "\n",
"# Vector Store\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to store and search vectors using Semantica's vector store modules. You'll learn to use `VectorStore` and `HybridSearch` for vector storage and retrieval.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/vector_store/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/vector_store/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `VectorStore` to store vectors\n",
@@ -19,6 +22,16 @@
"- Use `HybridSearch` for hybrid search\n",
"- Manage vector metadata\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Store Vectors\n",
@@ -131,4 +144,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/15_Ontology.ipynb b/cookbook/introduction/15_Ontology.ipynb
index f865653e..b4198b59 100644
--- a/cookbook/introduction/15_Ontology.ipynb
+++ b/cookbook/introduction/15_Ontology.ipynb
@@ -4,14 +4,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/15_Ontology.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/15_Ontology.ipynb)\n",
+ "\n",
"# Ontology\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to generate and validate ontologies using Semantica's ontology modules. You'll learn to use `OntologyGenerator`, `ClassInferrer`, `PropertyGenerator`, and `OntologyValidator`.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/ontology/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/ontology/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `OntologyGenerator` to generate ontologies\n",
@@ -19,6 +21,16 @@
"- Use `PropertyGenerator` to generate properties\n",
"- Use `OntologyValidator` to validate ontologies\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Generate Ontology\n",
@@ -154,4 +166,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/16_Export.ipynb b/cookbook/introduction/16_Export.ipynb
index dfe3baff..800b7da3 100644
--- a/cookbook/introduction/16_Export.ipynb
+++ b/cookbook/introduction/16_Export.ipynb
@@ -4,22 +4,32 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/16_Export.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/16_Export.ipynb)\n",
+ "\n",
"# Export\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to export knowledge graphs and data to various formats using Semantica's export modules. You'll learn to use `JSONExporter`, `CSVExporter`, `RDFExporter`, `GraphExporter`, `OWLExporter`, and `VectorExporter`.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/export/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/export/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `JSONExporter` to export to JSON\n",
"- Use `CSVExporter` to export to CSV\n",
"- Use `RDFExporter` to export to RDF\n",
"- Use `GraphExporter` to export graph formats\n",
- "- Use `OWLExporter` to export ontologies\n",
- "- Use `VectorExporter` to export vectors\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
"\n",
"---\n",
"\n",
@@ -166,4 +176,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/17_Visualization.ipynb b/cookbook/introduction/17_Visualization.ipynb
index 627d6d89..0119900f 100644
--- a/cookbook/introduction/17_Visualization.ipynb
+++ b/cookbook/introduction/17_Visualization.ipynb
@@ -4,20 +4,32 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/17_Visualization.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/17_Visualization.ipynb)\n",
+ "\n",
"# Visualization\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to visualize knowledge graphs, ontologies, and embeddings using Semantica's visualization modules. You'll learn to use `KGVisualizer`, `OntologyVisualizer`, and `EmbeddingVisualizer`.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/visualization/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/visualization/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `KGVisualizer` to visualize knowledge graphs\n",
"- Use `OntologyVisualizer` to visualize ontologies\n",
"- Use `EmbeddingVisualizer` to visualize embeddings\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Knowledge Graph Visualization\n",
@@ -129,4 +141,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/18_Conflict_Detection.ipynb b/cookbook/introduction/18_Conflict_Detection.ipynb
index 7beddab6..75c2c1d5 100644
--- a/cookbook/introduction/18_Conflict_Detection.ipynb
+++ b/cookbook/introduction/18_Conflict_Detection.ipynb
@@ -4,20 +4,32 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/18_Conflict_Detection.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/18_Conflict_Detection.ipynb)\n",
+ "\n",
"# Conflict Detection\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to detect and resolve conflicts in knowledge graphs using Semantica's conflict modules. You'll learn to use `ConflictDetector`, `SourceTracker`, and `ConflictResolver`.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/conflicts/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/conflicts/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `ConflictDetector` to detect conflicts\n",
"- Use `SourceTracker` to track data sources\n",
"- Use `ConflictResolver` to resolve conflicts\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Conflict Detection\n",
@@ -124,4 +136,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/introduction/19_Deduplication.ipynb b/cookbook/introduction/19_Deduplication.ipynb
index 74ed267e..84528e34 100644
--- a/cookbook/introduction/19_Deduplication.ipynb
+++ b/cookbook/introduction/19_Deduplication.ipynb
@@ -4,14 +4,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/19_Deduplication.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/introduction/19_Deduplication.ipynb)\n",
+ "\n",
"# Deduplication\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates how to detect and merge duplicate entities using Semantica's deduplication modules. You'll learn to use `DuplicateDetector`, `EntityMerger`, `SimilarityCalculator`, and `ClusterBuilder`.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/deduplication/)\n\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/deduplication/)\n",
+ "\n",
"### Learning Objectives\n",
"\n",
"- Use `DuplicateDetector` to find duplicate entities\n",
@@ -19,6 +21,16 @@
"- Use `SimilarityCalculator` to calculate similarity scores\n",
"- Use `ClusterBuilder` for batch deduplication\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Duplicate Detection\n",
@@ -122,4 +134,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/advanced_rag/01_GraphRAG_Complete.ipynb b/cookbook/use_cases/advanced_rag/01_GraphRAG_Complete.ipynb
index bb255ab6..daac6af0 100644
--- a/cookbook/use_cases/advanced_rag/01_GraphRAG_Complete.ipynb
+++ b/cookbook/use_cases/advanced_rag/01_GraphRAG_Complete.ipynb
@@ -4,9 +4,25 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/advanced_rag/01_GraphRAG_Complete.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/advanced_rag/01_GraphRAG_Complete.ipynb)\n",
"\n",
- "\n\n**Documentation**: [API Reference](https://semantica.readthedocs.io/concepts/)\n"
+ "# GraphRAG Complete\n",
+ "\n",
+ "## Overview\n",
+ "\n",
+ "This notebook demonstrates a complete GraphRAG (Graph-based Retrieval Augmented Generation) system: ingest documents, build knowledge graph, generate embeddings, create hybrid search, and use LLM for question answering.\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/concepts/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n"
]
}
],
@@ -17,4 +33,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/biomedical/01_Drug_Discovery_Pipeline.ipynb b/cookbook/use_cases/biomedical/01_Drug_Discovery_Pipeline.ipynb
index 4a8b590c..12c70d38 100644
--- a/cookbook/use_cases/biomedical/01_Drug_Discovery_Pipeline.ipynb
+++ b/cookbook/use_cases/biomedical/01_Drug_Discovery_Pipeline.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/biomedical/01_Drug_Discovery_Pipeline.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/biomedical/01_Drug_Discovery_Pipeline.ipynb)\n",
+ "\n",
"# Drug Discovery Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete drug discovery pipeline: ingest drug and protein data from multiple sources (APIs, databases, feeds), extract compound and target entities, build drug-target knowledge graph, generate embeddings, perform similarity search, predict drug-target interactions, and identify targets.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: WebIngestor, DBIngestor, FeedIngestor, FileIngestor, MCPIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, StructuredDataParser, DocumentParser, MCPParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, TripleExtractor, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -760,4 +773,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/biomedical/02_Genomic_Variant_Analysis.ipynb b/cookbook/use_cases/biomedical/02_Genomic_Variant_Analysis.ipynb
index 7c1e41ee..41590ec4 100644
--- a/cookbook/use_cases/biomedical/02_Genomic_Variant_Analysis.ipynb
+++ b/cookbook/use_cases/biomedical/02_Genomic_Variant_Analysis.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/biomedical/02_Genomic_Variant_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/biomedical/02_Genomic_Variant_Analysis.ipynb)\n",
+ "\n",
"# Genomic Variant Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete genomic variant analysis pipeline: ingest genomic data from multiple sources (APIs, databases, feeds), extract variant entities, build genomic knowledge graph, analyze disease associations, predict variant impact, and perform pathway analysis.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: WebIngestor, DBIngestor, FeedIngestor, FileIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, StructuredDataParser, DocumentParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, TripleExtractor, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -29,6 +32,16 @@
"\n",
"**Genomic Data Sources → Parse → Extract Entities (variants, genes, diseases, pathways) → Build Genomic KG → Analyze Associations → Predict Impact → Pathway Analysis → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Ingest Genomic Data from Multiple Sources\n",
@@ -766,4 +779,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/blockchain/01_DeFi_Protocol_Intelligence.ipynb b/cookbook/use_cases/blockchain/01_DeFi_Protocol_Intelligence.ipynb
index 57f36288..d94856bf 100644
--- a/cookbook/use_cases/blockchain/01_DeFi_Protocol_Intelligence.ipynb
+++ b/cookbook/use_cases/blockchain/01_DeFi_Protocol_Intelligence.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/blockchain/01_DeFi_Protocol_Intelligence.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/blockchain/01_DeFi_Protocol_Intelligence.ipynb)\n",
+ "\n",
"# DeFi Protocol Intelligence Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete DeFi protocol intelligence pipeline: ingest DeFi data from multiple sources (APIs, feeds, databases), extract protocol entities, build DeFi knowledge graph, analyze relationships, assess risks, optimize yields, and generate reports.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: WebIngestor, FeedIngestor, DBIngestor, FileIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, HTMLParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, SemanticAnalyzer, EventDetector\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -694,4 +707,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/blockchain/02_Transaction_Network_Analysis.ipynb b/cookbook/use_cases/blockchain/02_Transaction_Network_Analysis.ipynb
index 1d33aed7..ea4f2215 100644
--- a/cookbook/use_cases/blockchain/02_Transaction_Network_Analysis.ipynb
+++ b/cookbook/use_cases/blockchain/02_Transaction_Network_Analysis.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/blockchain/02_Transaction_Network_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/blockchain/02_Transaction_Network_Analysis.ipynb)\n",
+ "\n",
"# Transaction Network Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete blockchain transaction network analysis pipeline: stream transactions from multiple sources (blockchain APIs, transaction feeds, databases), build temporal transaction knowledge graph, persist to graph database, detect AML patterns, trace fund flows, and generate alerts.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: StreamIngestor, WebIngestor, DBIngestor, FileIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, TripleExtractor\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, TemporalPatternDetector, GraphAnalyzer\n",
@@ -29,6 +32,16 @@
"\n",
"**Real-time Transaction Streams → Parse → Extract Entities (wallets, transactions, addresses) → Build Temporal Transaction KG → Store in Graph DB → Detect Patterns (tumbling, mixing, clustering) → AML Analysis → Generate Alerts → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Stream Transactions from Multiple Sources\n",
@@ -693,4 +706,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/cybersecurity/01_Anomaly_Detection_Real_Time.ipynb b/cookbook/use_cases/cybersecurity/01_Anomaly_Detection_Real_Time.ipynb
index 824b3f0c..ed8609a6 100644
--- a/cookbook/use_cases/cybersecurity/01_Anomaly_Detection_Real_Time.ipynb
+++ b/cookbook/use_cases/cybersecurity/01_Anomaly_Detection_Real_Time.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/01_Anomaly_Detection_Real_Time.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/01_Anomaly_Detection_Real_Time.ipynb)\n",
+ "\n",
"# Real-Time Anomaly Detection Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete real-time anomaly detection pipeline for cybersecurity: stream security logs from multiple sources, parse in real-time, build temporal knowledge graph, detect anomalies using pattern detection and inference, generate alerts, and monitor continuously.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: StreamIngestor, FileIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, StructuredDataParser, DocumentParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, TripleExtractor\n",
"- **KG**: GraphBuilder, TemporalPatternDetector, TemporalGraphQuery, GraphAnalyzer\n",
@@ -469,4 +482,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/cybersecurity/02_Incident_Analysis.ipynb b/cookbook/use_cases/cybersecurity/02_Incident_Analysis.ipynb
index 3baf6646..7fbce4b1 100644
--- a/cookbook/use_cases/cybersecurity/02_Incident_Analysis.ipynb
+++ b/cookbook/use_cases/cybersecurity/02_Incident_Analysis.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/02_Incident_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/02_Incident_Analysis.ipynb)\n",
+ "\n",
"# Incident Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete security incident analysis pipeline: ingest security logs from multiple sources (files, databases, streams), parse structured and unstructured logs, extract security entities, build knowledge graph, analyze relationships, detect anomalies, and generate incident reports.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, DBIngestor, StreamIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, XMLParser, StructuredDataParser, DocumentParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, TripleExtractor\n",
"- **KG**: GraphBuilder, GraphAnalyzer, ConnectivityAnalyzer, CentralityCalculator\n",
@@ -27,6 +30,16 @@
"\n",
"**Multiple Security Sources → Parse Logs → Extract Security Entities → Build Incident KG → Analyze Relationships → Detect Anomalies → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Ingest Security Logs from Multiple Sources\n",
@@ -451,4 +464,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/cybersecurity/03_Threat_Correlation.ipynb b/cookbook/use_cases/cybersecurity/03_Threat_Correlation.ipynb
index 0217eea2..01c5a6a7 100644
--- a/cookbook/use_cases/cybersecurity/03_Threat_Correlation.ipynb
+++ b/cookbook/use_cases/cybersecurity/03_Threat_Correlation.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/03_Threat_Correlation.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/03_Threat_Correlation.ipynb)\n",
+ "\n",
"# Threat Correlation Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete threat correlation pipeline for cybersecurity: ingest threat feeds from multiple sources, extract IOCs, build temporal knowledge graph, correlate threats, detect campaigns, and generate reports.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, FeedIngestor, DBIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: XMLParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, TemporalPatternDetector, GraphAnalyzer, ConnectivityAnalyzer\n",
@@ -27,6 +30,16 @@
"\n",
"**Multiple Threat Feeds → Parse → Extract IOCs → Build Temporal KG → Correlate Threats → Detect Campaigns → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Ingest Threat Feeds\n",
@@ -420,4 +433,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/cybersecurity/04_Threat_Intelligence_Hybrid_RAG.ipynb b/cookbook/use_cases/cybersecurity/04_Threat_Intelligence_Hybrid_RAG.ipynb
index f3a62a5c..7642716a 100644
--- a/cookbook/use_cases/cybersecurity/04_Threat_Intelligence_Hybrid_RAG.ipynb
+++ b/cookbook/use_cases/cybersecurity/04_Threat_Intelligence_Hybrid_RAG.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/04_Threat_Intelligence_Hybrid_RAG.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/04_Threat_Intelligence_Hybrid_RAG.ipynb)\n",
+ "\n",
"# Threat Intelligence Hybrid RAG Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete threat intelligence hybrid RAG pipeline: ingest threat intelligence from multiple sources (files, web, feeds), extract threat entities, build knowledge graph, generate embeddings, set up hybrid search (vector + temporal KG), and query threats using advanced RAG.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
"- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, DBIngestor, MCPIngestor\n",
@@ -29,6 +32,16 @@
"\n",
"**Multi-Source Threat Intel (Files, Web, Feeds, MCP) → Parse → Extract Entities → Build KG → Generate Embeddings → Vector Store → Hybrid RAG Setup → Query Threats → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Multi-Source Threat Intelligence Ingestion\n",
@@ -576,4 +589,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/cybersecurity/05_Threat_Intelligence_Integration.ipynb b/cookbook/use_cases/cybersecurity/05_Threat_Intelligence_Integration.ipynb
index cd9bb2ae..972c6aad 100644
--- a/cookbook/use_cases/cybersecurity/05_Threat_Intelligence_Integration.ipynb
+++ b/cookbook/use_cases/cybersecurity/05_Threat_Intelligence_Integration.ipynb
@@ -4,7 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/05_Threat_Intelligence_Integration.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/05_Threat_Intelligence_Integration.ipynb)\n",
+ "\n",
"# Threat Intelligence Integration Pipeline\n",
"\n",
"## Overview\n",
@@ -13,7 +14,9 @@
"\n",
"**IMPORTANT**: This implementation supports ONLY Python-based MCP servers and FastMCP servers. Users can bring their own Python/FastMCP MCP servers via URL connections.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
"- **Ingestion**: MCPIngestor, ingest_mcp, WebIngestor, FeedIngestor\n",
@@ -30,6 +33,16 @@
"\n",
"**Connect to Threat Intel MCP Server → Ingest Threat Data via MCP → Parse MCP Responses → Extract Threat Entities → Build Threat KG → Generate Embeddings → Hybrid RAG → Analyze Threats → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Connect to Threat Intelligence MCP Server\n",
@@ -550,4 +563,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/cybersecurity/06_Vulnerability_Tracking.ipynb b/cookbook/use_cases/cybersecurity/06_Vulnerability_Tracking.ipynb
index 1a68eb44..f897392a 100644
--- a/cookbook/use_cases/cybersecurity/06_Vulnerability_Tracking.ipynb
+++ b/cookbook/use_cases/cybersecurity/06_Vulnerability_Tracking.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/06_Vulnerability_Tracking.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/cybersecurity/06_Vulnerability_Tracking.ipynb)\n",
+ "\n",
"# Vulnerability Tracking Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete vulnerability tracking pipeline: ingest CVE data from multiple real sources (NVD, CVE feeds, security databases), build temporal knowledge graph, correlate vulnerabilities, predict impact, and generate vulnerability reports.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: WebIngestor, FeedIngestor, DBIngestor, FileIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, XMLParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, TripleExtractor\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, TemporalPatternDetector, GraphAnalyzer\n",
@@ -28,6 +31,16 @@
"\n",
"**Real CVE Sources → Parse → Extract Vulnerabilities → Build Temporal KG → Correlate → Predict Impact → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Ingest CVE Data from Real Sources\n",
@@ -138,4 +151,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/finance/01_Financial_Data_Integration.ipynb b/cookbook/use_cases/finance/01_Financial_Data_Integration.ipynb
index 9ff16dc7..b7fad568 100644
--- a/cookbook/use_cases/finance/01_Financial_Data_Integration.ipynb
+++ b/cookbook/use_cases/finance/01_Financial_Data_Integration.ipynb
@@ -4,7 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/01_Financial_Data_Integration.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/01_Financial_Data_Integration.ipynb)\n",
+ "\n",
"# 📈 Financial Data Integration Pipeline\n",
"\n",
"## Overview\n",
@@ -14,10 +15,22 @@
"> [!IMPORTANT]\n",
"> This implementation supports ONLY Python-based MCP servers and FastMCP servers. Users can bring their own Python/FastMCP MCP servers via URL connections.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### 🧩 Modules Used (20+)\n",
"\n",
- "- **Ingestion**: `MCPIngestor`, `ingest_mcp`, `WebIngestor`, `FileIngestor`\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: `MCPParser`, `JSONParser`, `StructuredDataParser`\n",
"- **Extraction**: `NERExtractor`, `RelationExtractor`, `EventDetector`, `SemanticAnalyzer`\n",
"- **KG**: `GraphBuilder`, `TemporalGraphQuery`, `GraphAnalyzer`\n",
@@ -518,4 +531,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/finance/02_Financial_Reports_Analysis.ipynb b/cookbook/use_cases/finance/02_Financial_Reports_Analysis.ipynb
index 9b7604d1..f89dd3d8 100644
--- a/cookbook/use_cases/finance/02_Financial_Reports_Analysis.ipynb
+++ b/cookbook/use_cases/finance/02_Financial_Reports_Analysis.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/02_Financial_Reports_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/02_Financial_Reports_Analysis.ipynb)\n",
+ "\n",
"# Financial Reports Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete financial reports analysis pipeline: ingest financial documents from multiple sources (SEC filings, annual reports, financial databases), extract financial entities, build knowledge graph, analyze relationships, and generate financial insights.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, WebIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: DocumentParser, PDFParser, HTMLParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, TripleExtractor, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -415,4 +428,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/finance/03_Fraud_Detection.ipynb b/cookbook/use_cases/finance/03_Fraud_Detection.ipynb
index 66294bae..871a7801 100644
--- a/cookbook/use_cases/finance/03_Fraud_Detection.ipynb
+++ b/cookbook/use_cases/finance/03_Fraud_Detection.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/03_Fraud_Detection.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/03_Fraud_Detection.ipynb)\n",
+ "\n",
"# Fraud Detection Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete fraud detection pipeline for finance: ingest transaction streams, build temporal knowledge graph, detect fraud patterns, perform anomaly detection, and generate alerts.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, StreamIngestor, DBIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: StructuredDataParser, DocumentParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector\n",
"- **KG**: GraphBuilder, TemporalPatternDetector, GraphAnalyzer\n",
@@ -408,4 +421,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/finance/04_Investment_Analysis_Hybrid_RAG.ipynb b/cookbook/use_cases/finance/04_Investment_Analysis_Hybrid_RAG.ipynb
index fb340f44..cb9ba13a 100644
--- a/cookbook/use_cases/finance/04_Investment_Analysis_Hybrid_RAG.ipynb
+++ b/cookbook/use_cases/finance/04_Investment_Analysis_Hybrid_RAG.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/04_Investment_Analysis_Hybrid_RAG.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/04_Investment_Analysis_Hybrid_RAG.ipynb)\n",
+ "\n",
"# Investment Analysis Hybrid RAG Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete investment analysis hybrid RAG pipeline: ingest investment data from multiple sources (market data APIs, financial feeds, databases), extract investment entities, build knowledge graph, generate embeddings, set up hybrid search (vector + temporal KG), and query investment insights using advanced RAG.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, WebIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, CSVParser, StructuredDataParser, HTMLParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, GraphAnalyzer, ConnectivityAnalyzer\n",
@@ -394,4 +407,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/finance/05_Market_Intelligence.ipynb b/cookbook/use_cases/finance/05_Market_Intelligence.ipynb
index 67735e3e..68f7cc69 100644
--- a/cookbook/use_cases/finance/05_Market_Intelligence.ipynb
+++ b/cookbook/use_cases/finance/05_Market_Intelligence.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/05_Market_Intelligence.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/05_Market_Intelligence.ipynb)\n",
+ "\n",
"# Market Intelligence Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete market intelligence pipeline: ingest market data from multiple sources (web APIs, financial feeds, databases), extract market entities, build temporal knowledge graph, analyze trends, and generate market insights.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: WebIngestor, FeedIngestor, DBIngestor, FileIngestor, MCPIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, CSVParser, StructuredDataParser, HTMLParser, MCPParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, TemporalPatternDetector, GraphAnalyzer\n",
@@ -486,4 +499,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/finance/06_Regulatory_Compliance.ipynb b/cookbook/use_cases/finance/06_Regulatory_Compliance.ipynb
index 7f60f4c1..9e3fdf95 100644
--- a/cookbook/use_cases/finance/06_Regulatory_Compliance.ipynb
+++ b/cookbook/use_cases/finance/06_Regulatory_Compliance.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/06_Regulatory_Compliance.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/finance/06_Regulatory_Compliance.ipynb)\n",
+ "\n",
"# Regulatory Compliance Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete regulatory compliance pipeline: ingest regulatory documents from multiple sources (SEC, FINRA, regulatory databases), extract compliance rules, build compliance ontology, validate compliance, and generate compliance reports.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, WebIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: DocumentParser, PDFParser, HTMLParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, TripleExtractor, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, ConnectivityAnalyzer\n",
@@ -366,4 +379,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/healthcare/01_Clinical_Reports_Processing.ipynb b/cookbook/use_cases/healthcare/01_Clinical_Reports_Processing.ipynb
index 67f29001..9e4b5640 100644
--- a/cookbook/use_cases/healthcare/01_Clinical_Reports_Processing.ipynb
+++ b/cookbook/use_cases/healthcare/01_Clinical_Reports_Processing.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/01_Clinical_Reports_Processing.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/01_Clinical_Reports_Processing.ipynb)\n",
+ "\n",
"# Clinical Reports Processing Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete clinical reports processing pipeline: ingest clinical documents from multiple sources (EHR systems, HL7/FHIR APIs, medical databases), extract medical entities, build knowledge graph, store in triple store, and query patient data.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, DBIngestor, StreamIngestor, WebIngestor, MCPIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: DocumentParser, PDFParser, StructuredDataParser, CSVParser, MCPParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, CoreferenceResolver, TripleExtractor\n",
"- **KG**: GraphBuilder, GraphValidator, EntityResolver, GraphAnalyzer\n",
@@ -418,4 +431,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/healthcare/02_Disease_Network_Analysis.ipynb b/cookbook/use_cases/healthcare/02_Disease_Network_Analysis.ipynb
index 3cbaed96..f03e6d70 100644
--- a/cookbook/use_cases/healthcare/02_Disease_Network_Analysis.ipynb
+++ b/cookbook/use_cases/healthcare/02_Disease_Network_Analysis.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/02_Disease_Network_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/02_Disease_Network_Analysis.ipynb)\n",
+ "\n",
"# Disease Network Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete disease network analysis pipeline: ingest disease data from multiple sources (medical literature, research databases, clinical trials), extract disease relationships, build disease ontology, analyze networks, and predict outcomes.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, WebIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: DocumentParser, PDFParser, StructuredDataParser, JSONParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, TripleExtractor, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -402,4 +415,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/healthcare/03_Drug_Interactions_Analysis.ipynb b/cookbook/use_cases/healthcare/03_Drug_Interactions_Analysis.ipynb
index 1c1f96d4..f13b61d0 100644
--- a/cookbook/use_cases/healthcare/03_Drug_Interactions_Analysis.ipynb
+++ b/cookbook/use_cases/healthcare/03_Drug_Interactions_Analysis.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/03_Drug_Interactions_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/03_Drug_Interactions_Analysis.ipynb)\n",
+ "\n",
"# Drug Interactions Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete drug interactions analysis pipeline: ingest drug data from multiple sources (FDA databases, drug interaction databases, medical literature), extract drug information, build drug knowledge graph, detect interactions, and generate drug safety ontology.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, WebIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: DocumentParser, PDFParser, StructuredDataParser, JSONParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, TripleExtractor, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -29,6 +32,16 @@
"\n",
"**Drug Data Sources → Parse → Extract Drug Info → Build Drug KG → Detect Interactions → Generate Ontology → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Ingest Drug Data from Multiple Sources\n",
@@ -412,4 +425,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/healthcare/04_Healthcare_GraphRAG_Hybrid.ipynb b/cookbook/use_cases/healthcare/04_Healthcare_GraphRAG_Hybrid.ipynb
index 5dbb1af4..23c70bf3 100644
--- a/cookbook/use_cases/healthcare/04_Healthcare_GraphRAG_Hybrid.ipynb
+++ b/cookbook/use_cases/healthcare/04_Healthcare_GraphRAG_Hybrid.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/04_Healthcare_GraphRAG_Hybrid.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/04_Healthcare_GraphRAG_Hybrid.ipynb)\n",
+ "\n",
"# Healthcare GraphRAG System with Semantica\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates building a **Retrieval-Augmented Generation (GraphRAG) system** using **Semantica as the core framework** that leverages heterogeneous healthcare resources through a combination of materialized knowledge graphs and virtually integrated data sources.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/concepts/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/concepts/)\n",
+ "\n",
"### Why Semantica?\n",
"\n",
"Semantica provides a comprehensive, unified framework for building GraphRAG systems in healthcare:\n",
@@ -28,13 +31,23 @@
"- Materialized knowledge graphs from medical ontologies (SNOMED CT, ICD-10), clinical documents, and reports\n",
"- Virtual integration with Electronic Health Records (EHRs) without data replication\n",
"- Hybrid design separating structural knowledge from patient-level data\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
"- Dynamic orchestration of queries across ontologies, documents, and EHRs using Semantica\n",
"- Temporal and semantic dimensions via graph for historical analysis\n",
"- Traceable, explainable, and historically contextualized answers\n",
"\n",
"### Semantica Modules Used (20+)\n",
"\n",
- "- **Ingest**: FileIngestor, DBIngestor (for EHR virtual connections), WebIngestor (for medical literature)\n",
+ "- **Ingest**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor (for EHR virtual connections and medical literature)\n",
"- **Parse**: DocumentParser, PDFParser (clinical documents), StructuredDataParser (for structured medical data)\n",
"- **Normalize**: TextNormalizer (for text normalization)\n",
"- **Semantic Extract**: NERExtractor, RelationExtractor, TripleExtractor (medical entities and relationships)\n",
@@ -777,4 +790,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/healthcare/05_Medical_Database_Integration.ipynb b/cookbook/use_cases/healthcare/05_Medical_Database_Integration.ipynb
index dd2d6e62..abbe82d7 100644
--- a/cookbook/use_cases/healthcare/05_Medical_Database_Integration.ipynb
+++ b/cookbook/use_cases/healthcare/05_Medical_Database_Integration.ipynb
@@ -4,7 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/05_Medical_Database_Integration.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/05_Medical_Database_Integration.ipynb)\n",
+ "\n",
"# Medical Database Integration Pipeline\n",
"\n",
"## Overview\n",
@@ -13,7 +14,9 @@
"\n",
"**IMPORTANT**: This implementation supports ONLY Python-based MCP servers and FastMCP servers. Users can bring their own Python/FastMCP MCP servers via URL connections.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
"- **Ingestion**: MCPIngestor, ingest_mcp, DBIngestor, FileIngestor\n",
@@ -30,6 +33,16 @@
"\n",
"**Connect to Medical MCP Server → Ingest Patient/Drug Data via MCP → Parse MCP Responses → Extract Medical Entities → Build Healthcare KG → Query & Analyze → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Connect to Medical Database MCP Server\n",
@@ -577,4 +590,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/healthcare/06_Medical_Literature_GraphRAG.ipynb b/cookbook/use_cases/healthcare/06_Medical_Literature_GraphRAG.ipynb
index ffb66bd8..3d33ada9 100644
--- a/cookbook/use_cases/healthcare/06_Medical_Literature_GraphRAG.ipynb
+++ b/cookbook/use_cases/healthcare/06_Medical_Literature_GraphRAG.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/06_Medical_Literature_GraphRAG.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/06_Medical_Literature_GraphRAG.ipynb)\n",
+ "\n",
"# Medical Literature GraphRAG Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete medical literature GraphRAG pipeline: ingest research papers from multiple sources (PubMed, medical journals, research databases), extract findings, build research knowledge graph, generate embeddings, set up hybrid search (vector + KG), and query medical literature using advanced RAG.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/concepts/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/concepts/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, WebIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: DocumentParser, PDFParser, HTMLParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, TripleExtractor, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, ConnectivityAnalyzer\n",
@@ -29,6 +32,16 @@
"\n",
"**Research Papers → Parse → Extract Findings → Build Research KG → Generate Embeddings → Vector Store → GraphRAG Setup → Q&A → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Ingest Research Papers from Multiple Sources\n",
@@ -370,4 +383,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/healthcare/07_Patient_Records_Temporal.ipynb b/cookbook/use_cases/healthcare/07_Patient_Records_Temporal.ipynb
index 1bf8eb1c..39e21e92 100644
--- a/cookbook/use_cases/healthcare/07_Patient_Records_Temporal.ipynb
+++ b/cookbook/use_cases/healthcare/07_Patient_Records_Temporal.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/07_Patient_Records_Temporal.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/healthcare/07_Patient_Records_Temporal.ipynb)\n",
+ "\n",
"# Patient Records Temporal Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete patient records temporal analysis pipeline for healthcare: ingest patient records, extract medical entities, build temporal knowledge graph, query medical history, and generate insights.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
"- **Ingestion**: FileIngestor, DBIngestor, StreamIngestor\n",
@@ -27,6 +30,16 @@
"\n",
"**Patient Records → Parse → Extract Medical Entities → Build Temporal KG → Generate Ontology → Store in Triple Store → Query History → Export → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Process Patient Records\n",
@@ -321,4 +334,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/intelligence/01_Criminal_Network_Analysis.ipynb b/cookbook/use_cases/intelligence/01_Criminal_Network_Analysis.ipynb
index 07c26458..8ec2011c 100644
--- a/cookbook/use_cases/intelligence/01_Criminal_Network_Analysis.ipynb
+++ b/cookbook/use_cases/intelligence/01_Criminal_Network_Analysis.ipynb
@@ -4,14 +4,27 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/intelligence/01_Criminal_Network_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/intelligence/01_Criminal_Network_Analysis.ipynb)\n",
+ "\n",
"# Criminal Network Analysis with Semantica\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete criminal network analysis pipeline using **Semantica as the core framework** with agent-based workflows, MCP integration, and comprehensive graph analytics. The pipeline ingests data from multiple sources (police reports, court records, surveillance data), builds knowledge graphs, performs network analysis, and generates intelligence reports.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Why Semantica?\n",
"\n",
"Semantica provides a complete framework for criminal network analysis:\n",
@@ -37,7 +50,7 @@
"\n",
"### Semantica Modules Used (25+)\n",
"\n",
- "- **Ingest**: FileIngestor, DBIngestor, WebIngestor, StreamIngestor (multi-source data ingestion)\n",
+ "- **Ingest**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor (multi-source data ingestion)\n",
"- **MCP Integration**: MCP browser tools and resources for external data access\n",
"- **Parse**: StructuredDataParser, CSVParser, JSONParser, DocumentParser\n",
"- **Normalize**: TextNormalizer, DataNormalizer\n",
@@ -881,4 +894,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/intelligence/02_Intelligence_Analysis.ipynb b/cookbook/use_cases/intelligence/02_Intelligence_Analysis.ipynb
index 73a89c36..52676efc 100644
--- a/cookbook/use_cases/intelligence/02_Intelligence_Analysis.ipynb
+++ b/cookbook/use_cases/intelligence/02_Intelligence_Analysis.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/intelligence/02_Intelligence_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/intelligence/02_Intelligence_Analysis.ipynb)\n",
+ "\n",
"# Intelligence Analysis with Orchestrator-Worker Pattern\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates comprehensive intelligence analysis using **Semantica's Orchestrator-Worker Pattern** with complete implementation of graph analytics, hybrid RAG, and ontology building. The pipeline processes OSINT feeds, threat intelligence, and geospatial data to build multi-source intelligence graphs with detailed analysis.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Orchestrator-Worker Architecture\n",
"\n",
"The Orchestrator-Worker pattern uses **ExecutionEngine** as the orchestrator to coordinate **7 specialized workers** in parallel:\n",
@@ -51,7 +54,7 @@
"### Semantica Modules Used (30+)\n",
"\n",
"- **Orchestrator**: ExecutionEngine, PipelineBuilder, ParallelismManager\n",
- "- **Ingest**: FileIngestor, DBIngestor, WebIngestor, StreamIngestor, FeedIngestor\n",
+ "- **Ingest**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **MCP Integration**: MCP browser tools and resources\n",
"- **Parse**: JSONParser, XMLParser, CSVParser, DocumentParser, StructuredDataParser\n",
"- **Normalize**: TextNormalizer, DataNormalizer\n",
@@ -70,6 +73,16 @@
"\n",
"**OSINT Sources → MCP Integration → Orchestrator Setup → Parallel Workers (Data Ingestion → Ontology Building → Graph Construction → Graph Analytics → Hybrid RAG → Intelligence Analysis → Report Generation) → Visualization → Reporting**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n"
]
},
@@ -708,4 +721,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/intelligence/03_Law_Enforcement_Forensics.ipynb b/cookbook/use_cases/intelligence/03_Law_Enforcement_Forensics.ipynb
index 81337825..49d8fc18 100644
--- a/cookbook/use_cases/intelligence/03_Law_Enforcement_Forensics.ipynb
+++ b/cookbook/use_cases/intelligence/03_Law_Enforcement_Forensics.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/intelligence/03_Law_Enforcement_Forensics.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/intelligence/03_Law_Enforcement_Forensics.ipynb)\n",
+ "\n",
"# Law Enforcement and Forensics Analysis with Semantica\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete forensic analysis pipeline using **Semantica as the core framework** with agent-based workflows for processing case files, evidence logs, witness statements, and forensic reports. The pipeline builds temporal knowledge graphs, correlates evidence across cases, and generates comprehensive forensic analysis reports.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Why Semantica?\n",
"\n",
"Semantica provides a complete framework for forensic analysis:\n",
@@ -37,7 +40,7 @@
"\n",
"### Semantica Modules Used (25+)\n",
"\n",
- "- **Ingest**: FileIngestor, DBIngestor (case files, evidence databases)\n",
+ "- **Ingest**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor (case files, evidence databases)\n",
"- **Parse**: DocumentParser, StructuredDataParser, JSONParser, CSVParser\n",
"- **Normalize**: TextNormalizer, DataNormalizer\n",
"- **Semantic Extract**: NERExtractor, RelationExtractor, TripleExtractor, EventDetector\n",
@@ -56,6 +59,16 @@
"\n",
"**Case Files → Parse → Extract Evidence Entities/Relationships → Build Temporal Case KG → Graph Analytics → GraphRAG → Agent Analysis → Cross-Case Correlation → Generate Forensic Report → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n"
]
},
@@ -487,4 +500,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/intelligence/04_Network_Analysis_Intelligence_Reports.ipynb b/cookbook/use_cases/intelligence/04_Network_Analysis_Intelligence_Reports.ipynb
index 99b45ae4..f1c7cfe0 100644
--- a/cookbook/use_cases/intelligence/04_Network_Analysis_Intelligence_Reports.ipynb
+++ b/cookbook/use_cases/intelligence/04_Network_Analysis_Intelligence_Reports.ipynb
@@ -4,14 +4,27 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/intelligence/04_Network_Analysis_Intelligence_Reports.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/intelligence/04_Network_Analysis_Intelligence_Reports.ipynb)\n",
+ "\n",
"# Network Analysis and Intelligence Reports with Semantica\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates using **Semantica as the core framework** to combine graph analytics with AI to analyze relational data and generate professional intelligence reports for fraud detection, cybersecurity, supply chain analysis, and criminal networks.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Why Semantica?\n",
"\n",
"Semantica provides a complete framework for network analysis and intelligence reporting:\n",
@@ -35,7 +48,7 @@
"\n",
"### Semantica Modules Used (20+)\n",
"\n",
- "- **Ingest**: FileIngestor, DBIngestor, WebIngestor (relational data from various sources)\n",
+ "- **Ingest**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor (relational data from various sources)\n",
"- **Parse**: StructuredDataParser, CSVParser, JSONParser, DocumentParser (for various data formats)\n",
"- **Normalize**: TextNormalizer, DataNormalizer (for data cleaning and standardization)\n",
"- **Semantic Extract**: NERExtractor, RelationExtractor, TripleExtractor (relationship extraction, entity extraction)\n",
@@ -752,4 +765,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/renewable_energy/01_Energy_Market_Analysis.ipynb b/cookbook/use_cases/renewable_energy/01_Energy_Market_Analysis.ipynb
index b49e3547..d06dcb0f 100644
--- a/cookbook/use_cases/renewable_energy/01_Energy_Market_Analysis.ipynb
+++ b/cookbook/use_cases/renewable_energy/01_Energy_Market_Analysis.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/renewable_energy/01_Energy_Market_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/renewable_energy/01_Energy_Market_Analysis.ipynb)\n",
+ "\n",
"# Energy Market Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete energy market analysis pipeline: ingest energy market data from multiple sources (energy APIs, market data streams, databases), extract energy entities, build temporal market knowledge graph, analyze pricing trends, and predict market movements.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: WebIngestor, StreamIngestor, DBIngestor, FeedIngestor, FileIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, CSVParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, TemporalPatternDetector, GraphAnalyzer\n",
@@ -429,4 +442,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/renewable_energy/02_Environmental_Impact.ipynb b/cookbook/use_cases/renewable_energy/02_Environmental_Impact.ipynb
index 7f07244d..1b26da21 100644
--- a/cookbook/use_cases/renewable_energy/02_Environmental_Impact.ipynb
+++ b/cookbook/use_cases/renewable_energy/02_Environmental_Impact.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/renewable_energy/02_Environmental_Impact.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/renewable_energy/02_Environmental_Impact.ipynb)\n",
+ "\n",
"# Environmental Impact Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete environmental impact analysis pipeline: ingest environmental data from multiple sources (EPA APIs, climate databases, sustainability feeds), extract environmental entities, build impact knowledge graph, analyze relationships, and assess environmental impact.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, WebIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, CSVParser, StructuredDataParser, DocumentParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -29,6 +32,16 @@
"\n",
"**Environmental Data Sources → Parse → Extract Entities → Build Impact KG → Analyze Relationships → Assess Impact → Generate Ontology → Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Ingest Environmental Data from Multiple Sources\n",
@@ -468,4 +481,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/renewable_energy/03_Grid_Management.ipynb b/cookbook/use_cases/renewable_energy/03_Grid_Management.ipynb
index 6da0bc7b..b2036c09 100644
--- a/cookbook/use_cases/renewable_energy/03_Grid_Management.ipynb
+++ b/cookbook/use_cases/renewable_energy/03_Grid_Management.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/renewable_energy/03_Grid_Management.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/renewable_energy/03_Grid_Management.ipynb)\n",
+ "\n",
"# Smart Grid Management Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete smart grid management pipeline: stream grid data from multiple sources (grid sensors, SCADA systems, databases), build temporal grid knowledge graph, monitor grid health in real-time, detect anomalies, and predict failures.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: StreamIngestor, FileIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, StructuredDataParser, CSVParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, TripleExtractor\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, TemporalPatternDetector, GraphAnalyzer\n",
@@ -28,6 +31,16 @@
"\n",
"**Stream Grid Data → Parse → Extract Entities → Build Temporal Grid KG → Monitor Grid Health → Detect Anomalies → Predict Failures → Generate Alerts → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Stream Grid Data from Multiple Sources\n",
@@ -453,4 +466,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/renewable_energy/04_Resource_Optimization.ipynb b/cookbook/use_cases/renewable_energy/04_Resource_Optimization.ipynb
index 46a0306a..a8d0cc77 100644
--- a/cookbook/use_cases/renewable_energy/04_Resource_Optimization.ipynb
+++ b/cookbook/use_cases/renewable_energy/04_Resource_Optimization.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/renewable_energy/04_Resource_Optimization.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/renewable_energy/04_Resource_Optimization.ipynb)\n",
+ "\n",
"# Resource Optimization Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete resource optimization pipeline: ingest resource data from multiple sources (resource databases, monitoring systems, APIs), extract resource entities, build resource knowledge graph, analyze efficiency metrics, and optimize resource allocation.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, DBIngestor, WebIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, CSVParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -28,6 +31,16 @@
"\n",
"**Resource Data Sources → Parse → Extract Entities → Build Resource KG → Analyze Efficiency → Optimize Allocation → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Ingest Resource Data from Multiple Sources\n",
@@ -427,4 +440,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/renewable_energy/05_Supply_Chain_Analysis.ipynb b/cookbook/use_cases/renewable_energy/05_Supply_Chain_Analysis.ipynb
index c61fa94b..43361ad7 100644
--- a/cookbook/use_cases/renewable_energy/05_Supply_Chain_Analysis.ipynb
+++ b/cookbook/use_cases/renewable_energy/05_Supply_Chain_Analysis.ipynb
@@ -4,17 +4,20 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/renewable_energy/05_Supply_Chain_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/renewable_energy/05_Supply_Chain_Analysis.ipynb)\n",
+ "\n",
"# Renewable Energy Supply Chain Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete renewable energy supply chain analysis pipeline: ingest supply chain data from multiple sources (supplier databases, logistics systems, APIs), extract supply chain entities, build supply chain knowledge graph, analyze dependencies, and optimize supply chain flow.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, DBIngestor, WebIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, CSVParser, StructuredDataParser, DocumentParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -28,6 +31,16 @@
"\n",
"**Supply Chain Data Sources → Parse → Extract Entities → Build Supply Chain KG → Analyze Dependencies → Optimize Flow → Generate Reports → Visualize**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Ingest Supply Chain Data from Multiple Sources\n",
@@ -444,4 +457,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/supply_chain/01_Supply_Chain_Data_Integration.ipynb b/cookbook/use_cases/supply_chain/01_Supply_Chain_Data_Integration.ipynb
index af7dd5a6..20aa3b0b 100644
--- a/cookbook/use_cases/supply_chain/01_Supply_Chain_Data_Integration.ipynb
+++ b/cookbook/use_cases/supply_chain/01_Supply_Chain_Data_Integration.ipynb
@@ -4,7 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/supply_chain/01_Supply_Chain_Data_Integration.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/supply_chain/01_Supply_Chain_Data_Integration.ipynb)\n",
+ "\n",
"# Supply Chain Data Integration Pipeline\n",
"\n",
"## Overview\n",
@@ -13,10 +14,22 @@
"\n",
"**IMPORTANT**: This implementation supports ONLY Python-based MCP servers and FastMCP servers. Users can bring their own Python/FastMCP MCP servers via URL connections.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: MCPIngestor, ingest_mcp, DBIngestor, FileIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: MCPParser, JSONParser, StructuredDataParser, CSVParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, TripleExtractor\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, GraphAnalyzer, ConnectivityAnalyzer\n",
@@ -567,4 +580,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/supply_chain/02_Supply_Chain_Risk_Management.ipynb b/cookbook/use_cases/supply_chain/02_Supply_Chain_Risk_Management.ipynb
index 376f2ac9..a06f29f1 100644
--- a/cookbook/use_cases/supply_chain/02_Supply_Chain_Risk_Management.ipynb
+++ b/cookbook/use_cases/supply_chain/02_Supply_Chain_Risk_Management.ipynb
@@ -4,14 +4,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/supply_chain/02_Supply_Chain_Risk_Management.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/supply_chain/02_Supply_Chain_Risk_Management.ipynb)\n",
+ "\n",
"# Supply Chain Risk Management with Semantica\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates using **Semantica as the core framework** to transform supply chains into dynamic, interconnected networks for real-time visualization, analysis, and proactive risk management.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
"### Why Semantica?\n",
"\n",
"Semantica provides comprehensive graph technology capabilities essential for supply chain risk management:\n",
@@ -35,7 +38,7 @@
"\n",
"### Semantica Modules Used (15+)\n",
"\n",
- "- **Ingest**: FileIngestor, DBIngestor, WebIngestor, StreamIngestor (supply chain data from multiple sources)\n",
+ "- **Ingest**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, RepoIngestor, EmailIngestor, MCPIngestor (supply chain data from multiple sources)\n",
"- **Parse**: StructuredDataParser, JSONParser, CSVParser (BOM data, supplier data, tariff data)\n",
"- **Normalize**: TextNormalizer, DataNormalizer (for data standardization)\n",
"- **Semantic Extract**: RelationExtractor, TripleExtractor (supplier relationships, dependencies, risk factors)\n",
@@ -53,6 +56,16 @@
"\n",
"**Supply Chain Data → Parse → Extract Relationships → Build Supply Chain Graph → Analyze Risks → Identify Alternatives → Visualize → Generate Reports**\n",
"\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"---\n",
"\n",
"## Step 1: Setup and Import Semantica Modules\n"
@@ -672,4 +685,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/trading/01_Market_Data_Analysis.ipynb b/cookbook/use_cases/trading/01_Market_Data_Analysis.ipynb
index b2a2e390..58944791 100644
--- a/cookbook/use_cases/trading/01_Market_Data_Analysis.ipynb
+++ b/cookbook/use_cases/trading/01_Market_Data_Analysis.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/01_Market_Data_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/01_Market_Data_Analysis.ipynb)\n",
+ "\n",
"# Market Data Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete market data analysis pipeline: stream market data from multiple sources (trading APIs, financial feeds, databases), build temporal market knowledge graph, analyze patterns, and predict trends.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: StreamIngestor, FileIngestor, WebIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, CSVParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, TemporalPatternDetector, GraphAnalyzer\n",
@@ -352,4 +365,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/trading/02_News_Sentiment_Analysis.ipynb b/cookbook/use_cases/trading/02_News_Sentiment_Analysis.ipynb
index 88e878a6..610d3cc9 100644
--- a/cookbook/use_cases/trading/02_News_Sentiment_Analysis.ipynb
+++ b/cookbook/use_cases/trading/02_News_Sentiment_Analysis.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/02_News_Sentiment_Analysis.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/02_News_Sentiment_Analysis.ipynb)\n",
+ "\n",
"# News Sentiment Analysis Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete news sentiment analysis pipeline for trading: ingest financial news from multiple sources (RSS feeds, news APIs, web sources), extract entities, build news knowledge graph, analyze sentiment using embeddings, and generate trading signals.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: WebIngestor, FeedIngestor, DBIngestor, FileIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: HTMLParser, JSONParser, StructuredDataParser, DocumentParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -364,4 +377,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/trading/03_Real_Time_Market_Data.ipynb b/cookbook/use_cases/trading/03_Real_Time_Market_Data.ipynb
index 5c5a6d66..6051308b 100644
--- a/cookbook/use_cases/trading/03_Real_Time_Market_Data.ipynb
+++ b/cookbook/use_cases/trading/03_Real_Time_Market_Data.ipynb
@@ -4,7 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/03_Real_Time_Market_Data.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/03_Real_Time_Market_Data.ipynb)\n",
+ "\n",
"# Real-Time Market Data Integration Pipeline\n",
"\n",
"## Overview\n",
@@ -13,10 +14,22 @@
"\n",
"**IMPORTANT**: This implementation supports ONLY Python-based MCP servers and FastMCP servers. Users can bring their own Python/FastMCP MCP servers via URL connections.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: MCPIngestor, ingest_mcp, StreamIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: MCPParser, JSONParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, TemporalPatternDetector, GraphAnalyzer\n",
@@ -545,4 +558,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/trading/04_Real_Time_Monitoring.ipynb b/cookbook/use_cases/trading/04_Real_Time_Monitoring.ipynb
index 25535437..41025204 100644
--- a/cookbook/use_cases/trading/04_Real_Time_Monitoring.ipynb
+++ b/cookbook/use_cases/trading/04_Real_Time_Monitoring.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/04_Real_Time_Monitoring.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/04_Real_Time_Monitoring.ipynb)\n",
+ "\n",
"# Real-Time Trading Monitoring Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete real-time trading monitoring pipeline: stream trading data from multiple sources (trading platforms, market data streams, databases), build temporal knowledge graph, monitor positions in real-time, detect anomalies, and generate alerts.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: StreamIngestor, FileIngestor, DBIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, TripleExtractor\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, TemporalPatternDetector, GraphAnalyzer\n",
@@ -392,4 +405,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/trading/05_Risk_Assessment.ipynb b/cookbook/use_cases/trading/05_Risk_Assessment.ipynb
index 97493bb1..01337e99 100644
--- a/cookbook/use_cases/trading/05_Risk_Assessment.ipynb
+++ b/cookbook/use_cases/trading/05_Risk_Assessment.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/05_Risk_Assessment.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/05_Risk_Assessment.ipynb)\n",
+ "\n",
"# Risk Assessment Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete risk assessment pipeline for trading: ingest risk data from multiple sources (portfolio data, market risk metrics, historical data), extract risk entities, build risk knowledge graph, analyze risk relationships, and assess portfolio risk.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: FileIngestor, DBIngestor, WebIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, CSVParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, GraphAnalyzer, CentralityCalculator, CommunityDetector\n",
@@ -397,4 +410,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/cookbook/use_cases/trading/06_Strategy_Backtesting.ipynb b/cookbook/use_cases/trading/06_Strategy_Backtesting.ipynb
index 8b96b7fc..41fc7286 100644
--- a/cookbook/use_cases/trading/06_Strategy_Backtesting.ipynb
+++ b/cookbook/use_cases/trading/06_Strategy_Backtesting.ipynb
@@ -4,17 +4,30 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/06_Strategy_Backtesting.ipynb)\n\n",
+ "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Hawksight-AI/semantica/blob/main/cookbook/use_cases/trading/06_Strategy_Backtesting.ipynb)\n",
+ "\n",
"# Strategy Backtesting Pipeline\n",
"\n",
"## Overview\n",
"\n",
"This notebook demonstrates a complete strategy backtesting pipeline: ingest historical market data from multiple sources (databases, market data APIs, historical feeds), build temporal knowledge graph, test trading strategies on historical data, and analyze performance metrics.\n",
"\n",
- "\n**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n\n",
+ "\n",
+ "**Documentation**: [API Reference](https://semantica.readthedocs.io/use-cases/)\n",
+ "\n",
+ "## Installation\n",
+ "\n",
+ "Install Semantica from PyPI:\n",
+ "\n",
+ "```bash\n",
+ "pip install semantica\n",
+ "# Or with all optional dependencies:\n",
+ "pip install semantica[all]\n",
+ "```\n",
+ "\n",
"### Modules Used (20+)\n",
"\n",
- "- **Ingestion**: DBIngestor, FileIngestor, WebIngestor, FeedIngestor\n",
+ "- **Ingestion**: FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, DBIngestor, EmailIngestor, RepoIngestor, MCPIngestor\n",
"- **Parsing**: JSONParser, CSVParser, StructuredDataParser\n",
"- **Extraction**: NERExtractor, RelationExtractor, EventDetector, SemanticAnalyzer\n",
"- **KG**: GraphBuilder, TemporalGraphQuery, TemporalPatternDetector, GraphAnalyzer\n",
@@ -408,4 +421,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
-}
\ No newline at end of file
+}
diff --git a/docs/cookbook.md b/docs/cookbook.md
index 65f7f069..10337d3f 100644
--- a/docs/cookbook.md
+++ b/docs/cookbook.md
@@ -15,6 +15,17 @@ This collection of Jupyter notebooks is designed to take you from a beginner to
- A basic understanding of Python and Jupyter
- An OpenAI API key (for most examples)
+!!! success "Installation"
+ Install Semantica from PyPI (recommended):
+
+ ```bash
+ pip install semantica
+ # Or with all optional dependencies:
+ pip install semantica[all]
+ ```
+
+ For more installation options, see the [Installation Guide](installation.md).
+
---
## � Featured Recipes
@@ -65,9 +76,9 @@ Essential guides to master the Semantica framework.
- :material-hand-wave: **Welcome to Semantica**
---
- An interactive introduction to the framework's core philosophy.
+ An interactive introduction to the framework's core philosophy and all modules including ingestion, parsing, extraction, knowledge graphs, embeddings, and more.
- **Topics**: Framework Overview, Architecture
+ **Topics**: Framework Overview, Architecture, All Modules
**Difficulty**: Beginner
@@ -85,9 +96,9 @@ Essential guides to master the Semantica framework.
- :material-database-import: **Data Ingestion**
---
- Techniques for loading data from local files, URLs, and APIs.
+ Techniques for loading data from multiple sources using FileIngestor, WebIngestor, FeedIngestor, StreamIngestor, RepoIngestor, EmailIngestor, DBIngestor, and MCPIngestor.
- **Topics**: Loaders, Connectors, Async IO
+ **Topics**: File Ingestion, Web Scraping, Database Integration, Streams, Feeds, Repositories, Email, MCP
**Difficulty**: Beginner
@@ -729,14 +740,16 @@ Real-world examples and end-to-end applications across various industries.
To run these notebooks locally:
-1. **Clone the repository**:
+1. **Install Semantica from PyPI** (recommended):
```bash
- git clone https://github.com/Hawksight-AI/semantica.git
- cd semantica
+ pip install semantica[all]
+ pip install jupyter
```
-2. **Install dependencies**:
+2. **Or install from source** (for development):
```bash
+ git clone https://github.com/Hawksight-AI/semantica.git
+ cd semantica
pip install -e .[all]
pip install jupyter
```