Skip to main content

Ontology v2.0 - Knowledge Graph

Entity Recognition, Relation Extraction, Graph Query and Visualization

License: MIT Python PyPI

Overview

Ontology v2.0 is an advanced knowledge graph system 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

Ontology 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

# PyPI (recommended)
pip install ontology

# From source
pip install .

Quick Start

1. Build Index

knowledge-graph build_index

2. Query Ontology

knowledge-graph ontology_cli --help

3. Visualize Graph

knowledge-graph visualize_graph --output graph.html

Documentation

Requirements

  • Python 3.8+
  • SQLAlchemy
  • NetworkX
  • PyYAML

License

MIT License

Contributing

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

Links

Metadata

Release files for copaw-ontology 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for copaw-ontology 2.0.0
File Size Uploaded
copaw_ontology-2.0.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for copaw-ontology 2.0.0
File Interpreter ABI Platform
copaw_ontology-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / copaw_ontology-2.0.0.tar.gz

Download URL copaw_ontology-2.0.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0866cd80c0b41860d51342068f3200c8cdcf9cb35c49f28e55a2c3dceba214f8
BLAKE2b-256 checksum
How to use checksums
47846e7ec6f59672910feccaff70593587024767936a298c51655adfcb90435d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / copaw_ontology-2.0.0-py3-none-any.whl

Download URL copaw_ontology-2.0.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
381ca834e1c56e3a86066fcb2a324c636cbe08e0deddc38594d0d1cf7d46b09c
BLAKE2b-256 checksum
How to use checksums
97863ff91fb60fd170395274c1915e8e93c601d2b315b51793a4352512bcc80c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page