Metadata-Version: 2.4
Name: kg-engine
Version: 2.0.0
Summary: Knowledge Graph Engine - Entity Recognition, Relation Extraction, Graph Query and Visualization
Author-email: CoPaw <noreply@users.noreply.github.com>
License: MIT
Project-URL: Homepage, https://github.com/lcq225/knowledge-graph
Project-URL: Documentation, https://github.com/lcq225/knowledge-graph/blob/master/README.md
Project-URL: Repository, https://github.com/lcq225/knowledge-graph
Project-URL: Issues, https://github.com/lcq225/knowledge-graph/issues
Keywords: knowledge-graph,entity-recognition,relation-extraction,graph-query,ontology,kg-engine
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: sqlalchemy>=2.0.0
Requires-Dist: networkx>=3.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: numpy>=1.20.0
Dynamic: license-file

# KG Engine v2.0 - Knowledge Graph Engine

> Entity Recognition, Relation Extraction, Graph Query and Visualization

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://www.python.org/)
[![PyPI](https://img.shields.io/badge/PyPI-v2.0.0-green.svg)](https://pypi.org/project/kg-engine/)

## Overview

KG Engine v2.0 is an advanced knowledge graph engine with entity recognition, relation extraction, graph query, and visualization capabilities.

### Core Features

| Feature | Description |
|---------|-------------|
| **Entity Recognition** | Automatic entity detection and classification |
| **Relation Extraction** | Extract relationships between entities |
| **Graph Query** | SPARQL-like query language for graph traversal |
| **Visualization** | Interactive graph visualization with multiple layouts |
| **Ontology Management** | Class hierarchy, property inheritance, relation inference |

### Architecture

```
KG Engine v2.0
├── Contracts       # Skill contracts with YAML format
├── Core
│   ├── Bus        # Event-driven communication
│   ├── Validator  # Constraint validation
│   ├── Contract   # Skill contract management
│   └── Coordinator # Skill lifecycle management
├── Schema          # Data schema definitions
├── Scripts         # Utility scripts
└── Tests          # Unit tests
```

## Installation

```bash
pip install kg-engine
```

## Quick Start

### 1. Build Index

```bash
kg-engine build_index
```

### 2. Query Ontology

```bash
kg-engine ontology_cli --help
```

### 3. Visualize Graph

```bash
kg-engine visualize_graph --output graph.html
```

## Documentation

- [API Documentation](API.md)

## Requirements

- Python 3.8+
- SQLAlchemy
- NetworkX
- PyYAML

## License

MIT License

## Contributing

Contributions are welcome! Please open an issue or submit a pull request.

## Links

- GitHub: https://github.com/lcq225/knowledge-graph
- PyPI: https://pypi.org/project/kg-engine/
- Issues: https://github.com/lcq225/knowledge-graph/issues
