Skip to main content

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)
  • AI capabilities (openai)
  • HTTP client (httpx, aiohttp)
  • 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)
  • ML/vectorization (torch, transformers, sentencepiece)
  • Fuzzy search (rapidfuzz, jellyfish, datasketch)

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

Data Import/Export

# Import RDF data (N-Triples, N-Quads, Turtle, JSONL, VitalSigns Block)
vitalgraphimport -s my_space -f data.nt
vitalgraphimport -s my_space -f entities.vital --format vital

# Export RDF data
vitalgraphexport -s my_space -f backup.nq
vitalgraphexport -s my_space -f entities.vital --format vital --entity-type-uri urn:PersonEntity

# See all options
vitalgraphimport --help
vitalgraphexport --help

Import/export is also available via the REST API (/api/data/import, /api/data/export) and the frontend Data Management page.

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.api): FastAPI-based graph database server
  • SPARQL-to-SQL Engine (vitalgraph.db.sparql_sql): Translates SPARQL 1.1 to PostgreSQL
  • Jena Sidecar (vitalgraph-jena-sidecar): Java service for SPARQL algebra compilation
  • React Admin UI (frontend): Web interface for space/graph/entity management
  • Admin Tools (vitalgraphadmin): Database administration utilities
  • Import/Export CLIs (vitalgraphimport, vitalgraphexport): Standalone data import/export tools
  • TypeScript Client (vitalgraph-client-ts): TypeScript/JS client SDK

Documentation

License

Apache License 2.0

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.39.tar.gz (7.6 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.39-py3-none-any.whl (8.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vital_graph-0.0.39.tar.gz
  • Upload date:
  • Size: 7.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for vital_graph-0.0.39.tar.gz
Algorithm Hash digest
SHA256 69d7fa57c2430479f63a2b519bfbd7fb05d113ed8cc4c983e812f7fbd8c3d7c0
MD5 1249f73ca6293b5a4190dc3908b879f4
BLAKE2b-256 e2657a1d96778563594df69b355d0697beb50366bc40d079ba471232e82b2a79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vital_graph-0.0.39-py3-none-any.whl
  • Upload date:
  • Size: 8.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for vital_graph-0.0.39-py3-none-any.whl
Algorithm Hash digest
SHA256 8da094206b540ab6dd8a275f88d1ab2d4e61cd06dd1ce6ce358bc90e829d8ac0
MD5 28e7364a996f53c3d7ad4f973961cc09
BLAKE2b-256 4bbc702cb8c2d3eeda81cba8370f2b3b08b393f2c0fbefa65d6ecb24f783c084

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.39 This release

2 files

0.0.38

2 files

0.0.37

2 files

0.0.36

2 files

0.0.35

2 files

0.0.34

2 files

0.0.33

2 files

0.0.32

2 files

0.0.31

2 files

0.0.30

2 files

0.0.29

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 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