Skip to main content

orchestration engine for knowledge graph

Project description

coreason-graph-nexus

The Graph Orchestration & Reasoning Engine

Organization License: Prosperity 3.0 CI Code Style: Ruff Documentation

coreason-graph-nexus acts as the "Platinum Layer" Builder and Graph Logic Engine. It bridges the gap between persistent graph storage (Neo4j) and high-speed in-memory reasoning (NetworkX), ensuring robust data ingestion, ontology alignment, and advanced algorithmic analysis.


🚀 Features

  • Hybrid Compute Architecture: Seamlessly moves data between Cold Storage (Neo4j) and Hot Compute (NetworkX) for on-demand analysis.
  • Projection Engine (The Builder): Declarative ETL pipeline that transforms raw data into a semantic graph, enforcing schema constraints.
  • Ontology Resolver (The Librarian): Standardizes entity identities (e.g., merging "Tylenol" and "APAP") with high-performance Redis caching.
  • Graph Computer (The Thinker): Executes complex algorithms like PageRank, Betweenness Centrality, and Community Detection in memory.
  • Link Predictor (The Analyst): Infers implicit relationships using both heuristic rules and semantic vector embeddings.

📦 Installation

pip install coreason-graph-nexus

🛠️ Usage

Here is a quick example of how to initialize the client and run a PageRank analysis:

from coreason_graph_nexus.adapters.neo4j_adapter import Neo4jClient
from coreason_graph_nexus.compute import GraphComputer
from coreason_graph_nexus.models import GraphAnalysisRequest, AnalysisAlgo

# 1. Initialize Connection
neo4j_auth = ("neo4j", "password")
with Neo4jClient(uri="bolt://localhost:7687", auth=neo4j_auth) as client:

    # 2. Initialize the Graph Computer
    computer = GraphComputer(client)

    # 3. Define Analysis Request
    request = GraphAnalysisRequest(
        center_node_id="RxNorm:123",
        algorithm=AnalysisAlgo.PAGERANK,
        depth=2,
        write_property="pagerank_score"
    )

    # 4. Run Analysis
    results = computer.run_analysis(request)
    print(f"Computed PageRank for {len(results)} nodes.")

📄 License

This software is dual-licensed. It is available under the Prosperity Public License 3.0 for open-source and non-commercial use. Commercial use beyond a 30-day trial requires a separate license.

Copyright (c) 2025 CoReason, Inc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coreason_graph_nexus-0.1.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coreason_graph_nexus-0.1.0-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file coreason_graph_nexus-0.1.0.tar.gz.

File metadata

  • Download URL: coreason_graph_nexus-0.1.0.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coreason_graph_nexus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bac659681d8eb8b3fbf4e375891c356b2129d4791ad3d403f790bd84a78fd08d
MD5 9eba7c0f48fdd34708d60f5b585e9d63
BLAKE2b-256 788d43df155e8522cd04a027dd044ba34e27a428dfe134db802c2608c6708165

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_graph_nexus-0.1.0.tar.gz:

Publisher: publish.yml on CoReason-AI/coreason-graph-nexus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coreason_graph_nexus-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for coreason_graph_nexus-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 433fefb1fe29fc5581ca0589103cac0879598ca02950f7281c4f30a682918216
MD5 4e0b5eb680334fe91892ba69f954f821
BLAKE2b-256 b03165b793d1e5cf224ba6ce2a06d8b811a08bfccaebcbb9eba5105641556c71

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_graph_nexus-0.1.0-py3-none-any.whl:

Publisher: publish.yml on CoReason-AI/coreason-graph-nexus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page