NEW

SurrealDB 4 is here, introducing SurrealDB Earth and SurrealDS!

Learn more

Knowledge graphs, natively

Ontology. Schema as ontology, with tables as entity types and edges that carry their own properties.
Vectors. Semantic search beside structured data, with each embedding stored in the same record as its entity.
Traversal. Graph queries in SurrealQL, with similarity, traversal, full-text and filters in a single statement.

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.