---
title: "Deploy Oxigraph RDF Graph Database"
description: "Persistent RDF storage with SPARQL queries and protected updates."
category: "Storage"
url: https://railway.com/deploy/oxigraph-rdf-graph-database
---

# Deploy Oxigraph RDF Graph Database

Persistent RDF storage with SPARQL queries and protected updates.

**[Deploy Oxigraph RDF Graph Database on Railway](https://railway.com/template/oxigraph-rdf-graph-database)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/oxigraph-rdf-graph-database/manifest.json

- **Creator:** orenaksakal
- **Category:** Storage

## Template content

### oxigraph

- **Source:** orenaksakal/railway-templates
- **Health check:** /healthz
- **Public domain:** Yes

### app

- **Image:** ghcr.io/oxigraph/oxigraph:0.5.11@sha256:7532c1f9aa5f28c0dc6a4243198f7f6144017fab7429bf6c164a89fec9411767
- **Start command:** `/usr/local/bin/oxigraph serve --location /data --bind 0.0.0.0:7878`

## Documentation

# Deploy and Host Oxigraph RDF Graph Database on Railway

Persistent RDF storage with SPARQL queries and protected updates.

**Draft status:** Configuration and upstream documentation reviewed. Container startup, Railway application workflows, restart behavior, backup restoration and costs remain unverified.

## About Hosting

Persistent RDF storage with SPARQL queries and protected updates.

| Service | Role | Persistent path |
| --- | --- | --- |
| `app` | Private application or dependency | `/data` |
| `oxigraph` | Public owner gateway | `None` |

## Why Deploy

Run this application in your own Railway project, with explicit configuration and storage under your control.

## Common Use Cases

- Persistent RDF storage with SPARQL queries and protected updates.

## Dependencies for Oxigraph RDF Graph Database

### Deployment Dependencies

The application images are pinned by registry digest. Database services, when included, stay on the private network. One replica is supported for each volume-backed service.

## First use

Open the `oxigraph` service's HTTPS domain. Sign in to the owner gateway with username `admin` and its generated `ACCESS_PASSWORD`. Complete the application's own setup afterward.

API calls must also send `X-Template-Key` with that owner password. The gateway forwards native Bearer tokens, strips Basic Authorization, and limits requests to 32 MiB. Browser sessions receive a secure owner cookie. Native clients, webhooks and public sharing require specific compatibility checks before use. Gateway `/healthz` only checks the proxy, not application readiness.

Sign into the gateway to use the query UI. Import RDF using /store and query /query. Automated clients can supply X-Template-Key without replacing their existing Authorization header.

## Scope and limitations

- One volume-backed replica; no clustering or database high availability is configured.
- All reads and writes are owner-only. Export RDF and back up the volume before changing versions.

## Acceptance checks before use

- Insert a small Turtle dataset, run SELECT, then restart and repeat the query.
- Verify public /update and /store reject missing owner credentials.
- Confirm generated credentials are distinct on a second fresh deployment.
- Back up every listed persistent path and database, then restore into a separate test project.
- Measure Railway usage with representative data and workload before estimating operating costs.

## Backups and upgrades

Back up databases, file volumes, encryption keys and configuration together. Keep a copy outside the running project. Review upstream migration notes before changing a digest; rollback can require restoring a compatible database and files, not just selecting an older image.

## Sources and selection evidence

- [Upstream documentation](https://github.com/oxigraph/oxigraph/blob/v0.5.11/cli/README.md): Server usage, Docker image, persistent location, SPARQL /query /update /store endpoints and authentication proxy guidance.
- [Upstream documentation](https://github.com/oxigraph/oxigraph/blob/v0.5.11/cli/Dockerfile): Distroless image has /usr/local/bin/oxigraph; no shell is assumed.
- [Upstream project](https://github.com/oxigraph/oxigraph)

Product and alias searches found no matching public Railway listing during this research. This is a bounded search result; private, unindexed or differently named listings may exist. It is not evidence of demand or revenue.

Upstream software retains its own license and edition restrictions. This deployment draft does not imply upstream endorsement.


## Similar templates

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/oxigraph-rdf-graph-database
