Skip to main content

SureCentric Tech Architecture

SureCentric's architecture is organized into five layers: the desktop application layer, the dynamic data warehouse, the schema layer, the AI services layer, and the data sources layer. Each layer has a clearly defined contract with the layers above and below it.

Architecture Diagram

SureCentric Platform Architecture

Layer Breakdown

Desktop Layer — UI Surface

The desktop layer provides the user-facing surfaces for all platform operations:

SurfaceDescription
Dashboards (Superset)Apache Superset embedded as an iframe — charts, SQL Lab, datasets
Query & ReportsStructured query execution with schema-grounded NL2SQL via DataAgent
Explorer & ViewerBrowse schemas, data, and ontology relationships interactively
Schema BuilderJSON-LD schema editor — the primary authoring and translation tool

Data Warehouse Layer

The lakehouse sits beneath the desktop layer and executes all analytical queries. Schema DDL is generated automatically from the JSON-LD schemas — tables, views, indexes, foreign keys, and constraints are never hand-authored.

EnginePurpose
DuckDBIn-process, Arrow-native analytical engine for local and embedded execution
Dolt (MySQL wire)Version-controlled metadata store for platform data, CARD profiles, and relational schemas — supports Git-style branching, commits, diffs, and rollback. Replaced PostgreSQL.
Apache IcebergTime-travel, schema evolution, and immutable data snapshots
TrinoFederated SQL across heterogeneous data sources
note

SureCentric migrated its metadata database from PostgreSQL to Dolt (MySQL-compatible). See Dolt Database for the full architecture and branching strategy.

Schema Layer

The schema layer is SureCentric's core innovation. JSON-LD is the canonical format — every data source, every query, and every dashboard is grounded in a declared, versioned, semantic schema.

┌─────────────────────────────────────────────────────────────────────┐
│ Schema Layer │
│ │
│ ┌─────────────┐ ┌────────────────┐ ┌────────────────────┐ │
│ │ Schema │ │ Schema │ │ Exporters │ │
│ │ Builder │───►│ Mappers + │───►│ • OWL / RDF-XML │ │
│ │ (Editor) │ │ Translators │ │ • SQL DDL │ │
│ └─────────────┘ └────────────────┘ │ • JSON Schema │ │
│ └────────────────────┘ │
└─────────────────────────────────────────────────────────────────────┘

AI Layer

ComponentRole
SureAgentAgentic workflow orchestration — multi-step AI pipelines
SureIntelFlowise-based RAG pipeline for document intelligence and retrieval
SureLLMPrivate domain LLM gateway (LiteLLM-compatible, OpenAI API surface)
SureIndexUniversal data ingestion via CocoIndex — indexes any structured or unstructured source
DataAgentNL2SQL engine grounded by compiled schema metadata — deterministic, not hallucinated

Data Sources Layer

Source TypeExamples
SureDrive AppsSureDrive document archives with OWL-based content models (CM1, CM2, CM3)
External DatabasesPostgreSQL, MySQL, Snowflake, BigQuery, Oracle
SureConnectOpenAPI 3.x connector for any REST API
File SourcesParquet, CSV, JSON-LD, XLSX

Schema Builder Workflow

① JSON-LD Editor (Schema Builder)
• Create/edit schemas with @context, @type, @id
• SPARQL autocompletion against ontology endpoints
• Visual schema diagram (Vue Flow)
• AJV validation in real-time



② JSON-LD Canonical Schema
• CareLex/eClinical @context namespace
• OWL import/export for SureClinical archives
• Schema catalog/registry with versioning



③ Schema Translation Service
• JSON-LD → DDL (PostgreSQL/DuckDB CREATE TABLE)
• JSON-LD → OWL (Nuxeo archive format)
• JSON-LD → JSON Schema (API validation)



④ Data Warehouse / Lakehouse
• Tables, views, metrics auto-created from DDL
• Superset datasources/datasets auto-registered
• NL2SQL grounded by compiled schema metadata

Tech Stack

CategoryTechnology
Schema editorVue 3, TypeScript, PrimeVue 4, Pinia, Vite, TailwindCSS
Schema formatJSON-LD 1.1 (W3C), OWL/RDF-XML, JSON Schema Draft 2020-12
ValidationAJV (JSON Schema), jsonld.js (JSON-LD 1.1)
VisualizationVue Flow (schema diagram), Apache Superset (dashboards)
Analytical engineDuckDB, Dolt/MySQL, Apache Iceberg, Trino
AI gatewayLiteLLM (OpenAI-compatible)
OWL serviceSpring Boot + owlapi-jsonld
DeploymentDocker Compose, Cloudflare Pages (docs), Cloudflare Workers (MCP index)