The RDF, OWL and SHACL alternative: operational ontologies on SQL
The semantic web stack uses four languages and an open world, where a missing fact is unknown. Synalog is one closed-world language, compiled to SQL on your databases.
SynaLemma vs RDF, OWL and SHACL: key differences
-
One definition per term
The semantic web stack spreads a definition over RDF, OWL, SHACL and SPARQL, plus R2RML to reach SQL. In Synalog, each business term is one rule over your tables, in one language for rules, queries and assertions, and the layer grows from the first question.
-
Every rule proved before it runs
OWL reasons in an open world: a missing fact is unknown, not false. Synalog is closed-world, like your database. A symbolic verifier proves each rule well-formed, safe and terminating, and first-order assertions return the rows that break them.
-
The engine reasons, not the model
With RDF and OWL, totals, averages and rankings are written in SPARQL, outside OWL reasoning. The Synalog engine does every join, recursion and total in one program, to a declared depth, compiled to SQL on your existing databases, with no triple store.
-
Same rule, same SQL
The engine compiles SQL from each rule, so the same rule always gives the same SQL. Every figure cites its rule, which your team can read, correct or lock.
-
Every access scoped, every change on record
The SQL only reads your tables, raw SQL is refused before it runs, and the agent works with the rights of the person asking. Each change to a definition is a reviewable git commit with its author.
-
Sovereign by construction, not by contract
Rules, data and model stay on your infrastructure, on the SQL databases you already run. The Synalog engine is open source, under Apache-2.0.
Example: a closed-world check
Revenue per customer, with three assertions. The second one is the check OWL's open world cannot make on its own. Customer 12 is missing; the engine names the row.
Order(order_id:, customer_id:, amount:, status:) :- orders(order_id:, customer_id:, amount:, status:);
Customer(customer_id:, country:) :- customers(customer_id:, country:);
@Assert(Revenue,
one_row_per_customer: "∀ c r s, Revenue c r → Revenue c s → r = s",
known_customer: "∀ c r, Revenue c r → ∃ k, Customer c k",
positive: "∀ c, Revenue c > 0");
Revenue(customer_id:, revenue? += amount) distinct :-
Order(customer_id:, amount:, status: "delivered"); SynaLemma vs RDF, OWL and SHACL at a glance
| Criterion | SynaLemma | RDF, OWL, SHACL |
|---|---|---|
| Semantic: one definition per term | Definitions build on each other: each business term defined once, as a rule over your tables, reused by every person and agent | Classes and properties with global IRIs, reused across datasets |
| Reasoning: who computes joins, recursion, totals | The engine, not the model: Synalog computes every join and recursion, to a declared depth, compiled to SQL | OWL reasoners infer; SPARQL handles paths and totals; the engine depends on the store |
| Verified: what is checked before a rule runs | Every rule proved well-formed, safe and terminating; first-order assertions return the rows that break them | Reasoners check ontology consistency; SHACL reports the nodes that violate a shape |
| Deterministic: same rule, same SQL | Never generated per question: SQL compiled by the engine from the rule; definitions reused and lockable | Not applicable: no agent; SPARQL is written by a person or a tool |
| Governed: access and change control | The agent cannot bypass the layer: no SQL written, raw SQL refused, the asker's role only; every change a git commit | Not in the standards: access control and history depend on the triple store |
| Language model | The one you choose: a small open model is enough, no per-token fees | Not applicable: the standards define no language model |
| Deployment | On-premises, on your infrastructure | A triple store, or mappings to relational tables |
| Logic | Closed world, like your database | Open world: a missing fact is unknown |
| Languages | One: rules, queries and assertions | RDF, OWL, SHACL, SPARQL, plus R2RML to reach SQL |
Why teams look for an alternative to RDF, OWL and SHACL
-
Open world
In OWL, a missing fact is unknown, not false (OWL 2 primer).
-
Four languages
RDF, OWL, SHACL and SPARQL, plus R2RML to reach relational tables (R2RML).
-
A triple store or mappings
The data has to move or be mapped.
-
No business aggregates in OWL
Totals, averages and rankings are written in SPARQL.
-
Modelling up front
Ontology projects commonly take months or years before the first answer.
RDF, OWL and SHACL alternative: FAQ
What is an operational ontology?
An ontology that describes only the concepts and relationships your data contains, each computed from your tables.
Do I need a triple store or a graph database?
No. Synalog compiles to SQL and runs on your existing databases. Graph queries are recursive rules.
Can Synalog check that every order has a customer?
Yes, with an assertion. Synalog is closed-world, so the engine returns the rows with no customer.
Sources
- W3C: OWL 2 Web Ontology Language Primer
- W3C: Shapes Constraint Language (SHACL)
- W3C: R2RML, RDB to RDF Mapping Language
- W3C: SPARQL 1.1 Query Language
- Synalog on GitHub (Apache-2.0)
Checked against each product's public documentation on the review date. To report an error: contact@synalinks.com.
Other comparisons
Bring a question your current stack can't answer.
In 30 minutes, we show SynaLemma answering it, with the rule behind the number and the checks it passed.