RDF data framework · written in Go

Model the world.
Run the system.

Facilis uses RDFD to move semantic models between RDF/Turtle definitions and Neo4j—served through REST and real-time WebSockets.

RDF

Turtle definitions

Load RDF, RDFS and OWL vocabulary from connected .ttl ontology files.

RDFD

Semantic runtime

Map ontology classes into typed specimens and executable graph operations.

N4J

Neo4j persistence

Generate Cypher, persist graph data and query relationships through Neo4j 5.x.

The data path

RDF ↔ RDFD ↔ Neo4j

The semantic definition stays visible while RDFD handles conversion, validation, querying and persistence.

01 / DEFINE

RDF + TTL

Classes, datatype properties, object properties, constraints and connected ontologies.

↔
02 / EXECUTE

RDFD

RDF2Cypher, identifiers, triples, Specimens, SpecMan, plugins and API handlers.

↔
03 / PERSIST

NEO4J

Graph nodes, relationships, Cypher queries, indexes and durable application data.

One graph. Every layer.

Architecture without the glue code.

Facilis treats schemas, behavior and presentation as connected parts of the same system.

01

TTL ontology loader

Load multiple connected Turtle definitions and expose ontology metadata through the API.

↗
02

RDF2Cypher engine

Translate RDF classes, properties and specimens into Neo4j nodes, relationships and Cypher operations.

↗
03

Specimen + SpecMan

Create, validate, query, update and delete ontology-backed instances with automatic change tracking.

↗
04

REST + WebSocket API

Use authenticated HTTP endpoints or live WebSocket commands for queries, specimens and properties.

↗
05

Extensible Go core

Register initializers, HTTP handlers and plugins around a modular Go 1.22 backend.

↗

Supported today

A complete semantic
application stack.

The RDFD repository includes a Go backend, SvelteKit management interface, Neo4j integration, ontology tools and a real-time transport layer.

Go 1.22.3+Neo4j 5.xGorilla WebSocketREST APIAPI-key authSvelteKitTypeScript generationPlugin systemMulti-ontologyInteractive terminal
LIVE

WebSocket commands

Execute Cypher queries, request RDF properties and create or update specimens over one persistent connection.

ws://host:9090/ws
HTTP

Authenticated REST

Authenticate users, manage graph-backed users and access ontology definitions through API-key protected routes.

GET /ontology/{path}
GO

GitHub modules

Built with the Neo4j Go driver, Gorilla Mux/WebSocket, RDFD rdf2go and gon3 RDF/N3 utilities.

github.com/C2b2b/RDFD

Built on the graph

Apps running
on Facilis.

Each app below is a separate ontology-backed application registered with RDFD — no two share a hardcoded schema.

GAME

Capitalism

A 3D factory-builder economy game rendered in RDFHub. Ores, buildings, inventories and supply routes are all live ontology instances — nothing is hardcoded client-side.

appId: capitalism
AUTH

Facilis Auth

Graph-native identity and access control. Accounts, sessions and permissions are modeled as ontology instances instead of a separate auth database.

appId: facilis-auth
TASKS

Todos

A minimal task-tracking app, built to show the smallest possible ontology-backed application on top of RDFD.

appId: todos

Current TTL definitions

Define a whole domain.

Twelve connected ontology files currently describe the system, runtime rules, interfaces and the example economy world.

01

System

.ttl
02

Rules

.ttl
03

User interface

.ttl
04

Economy

.ttl
05

Logistics

.ttl
06

Buildings

.ttl
07

Technology

.ttl
08

Energy

.ttl
09

Workers

.ttl
10

Production

.ttl
11

World

.ttl
12

Initial world seed

.ttl

Open source foundation

Inspect the runtime.
Build on the graph.

Open RDFD on GitHub →