Skip to content

Knowledge graphs, natively

Ontology. Schema as ontology, with rich edges between entities.
Vectors. Semantic search beside structured data, in the same store.
Traversal. Graph queries in SurrealQL, meaning and structure together.

01 |HYBRID RETRIEVAL

Vector search beside structured data

02 |OPERATIONAL KNOWLEDGE GRAPHS

Digital twins as living knowledge graphs. Assets, dependencies and telemetry in one engine.

03 |ONTOLOGICAL MODELLING

Your schema is your ontology. Tables are entity types, relations are relationship types, and edges carry their own properties.

SCHEMA

Define the ontology

-- Define an ontology directly in the schema
DEFINE TABLE person SCHEMAFULL;
DEFINE FIELD name ON person TYPE string;
DEFINE FIELD role ON person TYPE string;

DEFINE TABLE knows SCHEMAFULL TYPE RELATION FROM person TO person;
DEFINE FIELD since ON knows TYPE datetime;
DEFINE FIELD confidence ON knows TYPE float;
DEFINE FIELD context ON knows TYPE string;
RELATIONS

Relationships as documents

-- Create a relationship with rich metadata
RELATE person:jaime->knows->person:sarah SET
since = d"2020-03-15",
confidence = 0.95,
context = "worked together at Acme Corp";

-- Traverse with filters on edge properties
SELECT ->knows[WHERE confidence > 0.9]->person.name AS trusted
FROM person:jaime;

THE PLATFORM

Everything an application and its agents know. Five surfaces, one engine.

IN PRODUCTION

Trusted at scale. Samsung, Nvidia, Verizon, Tencent, and Walmart run on SurrealDB.

14,000+

Developers building on SurrealDB Cloud

4M+

Developers building on SurrealDB worldwide

FROM THE TEAMS

SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.
Justin Foley

VP of Engineering, Later

GET STARTED

Build knowledge graphs with SurrealDB. Ontology, rich edges and vector search, in one database.

SurrealDB

The context and memory layer for AI agents

Database. Graphs, vectors, documents and relational data in one engine, in a single ACID transaction.
Agent Memory. Connects and retrieves context wherever your data lives, every fact carrying its source.
Cloud. Fully managed, in the cloud provider and region you choose.

Explore with AI

Copyright © 2026 SurrealDB Ltd. Registered in England and Wales. Company no. 13615201

Registered address: 3rd Floor 1 Ashley Road, Altrincham, Cheshire, WA14 2DT, United Kingdom

Trading address: Huckletree Oxford Circus, 213 Oxford Street, London, W1D 2LG, United Kingdom