Skip to main content

VitalGraph

Project description

VitalGraph

VitalGraph is a high-performance knowledge graph database and client library built on PostgreSQL with full SPARQL 1.1 support.

Installation

VitalGraph offers flexible installation options depending on your use case:

Client Only (Default - Lightweight)

For applications that only need to connect to existing VitalGraph servers:

pip install vital-graph[client]

This installs dependencies for the VitalGraph client library:

  • Basic RDF processing (rdflib, PyLD)
  • Advanced graph processing (pyoxigraph) - now included by default
  • AI capabilities (openai) - now included by default
  • HTTP client (requests)
  • Configuration management (PyYAML, pydantic)
  • CLI tools (click-repl, tabulate)

Server Installation

For running a complete VitalGraph server with database capabilities:

pip install vital-graph[server]

This includes all server dependencies:

  • FastAPI web framework and uvicorn server
  • PostgreSQL drivers (psycopg, asyncpg)
  • Database ORM (SQLAlchemy, alembic)
  • Vector database support (pgvector)
  • Authentication (PyJWT, email-validator)
  • TiDB integration (pytidb[models], pytidb)

Development Setup

For development with all tools:

pip install vital-graph[dev]

Includes pytest, black, mypy, and other development tools.

Full Installation

For everything:

pip install vital-graph[all]

Custom Combinations

You can combine multiple extras:

pip install vital-graph[client,dev]
pip install vital-graph[server,test,docs]

Quick Start

Client Usage

from vitalgraph.client import VitalGraphClient

# Initialize client with config file
client = VitalGraphClient("path/to/config.yaml")

# Connect to server
await client.open()

# Execute SPARQL queries
results = await client.sparql.query("SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10")

# Close connection
await client.close()

Server Usage

# Start VitalGraph server
vitalgraphdb

# Or with custom config
vitalgraphdb --config /path/to/vitalgraphdb-config.yaml

Features

  • Full SPARQL 1.1 Support: SELECT, CONSTRUCT, ASK, DESCRIBE, UPDATE operations
  • High Performance: PostgreSQL-backed with optimized query translation
  • RESTful API: Complete REST API for all operations
  • Client Library: Python client with authentication and session management
  • Docker Support: Ready-to-use Docker containers
  • Knowledge Graph Types: Built-in support for VitalSigns ontologies
  • Real-time Updates: WebSocket support for live data updates

Architecture

VitalGraph consists of:

  • Client Library (vitalgraph.client): Lightweight REST API client
  • Server (vitalgraph.server): FastAPI-based graph database server
  • Database Layer (vitalgraph.db): PostgreSQL integration with SPARQL translation
  • Admin Tools (vitalgraphadmin): Database administration utilities

Documentation

License

Apache License 2.0

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

vital_graph-0.0.22.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

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

vital_graph-0.0.22-py3-none-any.whl (7.2 MB view details)

Uploaded Python 3

File details

Details for the file vital_graph-0.0.22.tar.gz.

File metadata

  • Download URL: vital_graph-0.0.22.tar.gz
  • Upload date:
  • Size: 6.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.11

File hashes

Hashes for vital_graph-0.0.22.tar.gz
Algorithm Hash digest
SHA256 25f2a2b8fe20889be864d05d47cce1f946cc17daf9d154c593919c2775bbcc84
MD5 0a34b4c4ea277262ae1f510519f3ff4c
BLAKE2b-256 8d344e79a357101b7524bce45bbc7dedb61f2ecce6a68feb559f4e0c27944c1b

See more details on using hashes here.

File details

Details for the file vital_graph-0.0.22-py3-none-any.whl.

File metadata

  • Download URL: vital_graph-0.0.22-py3-none-any.whl
  • Upload date:
  • Size: 7.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.11

File hashes

Hashes for vital_graph-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 a4eeb91842dc6b9b0e5c03f7d5ff03b1b0fae8064e49d4b1e7da6d68e093e8b5
MD5 81d731598fad9d08b55226317a1aef7c
BLAKE2b-256 9ef3e803d06b185ca479ac6f8508a2cd439b1b69383f27cf0b0c52a4bdeb82b6

See more details on using hashes here.

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