RDF, OWL and SHACL alternative

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

SynaLemma vs RDF, OWL and SHACL: key differences

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Synalog

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.

shop.l
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");
$ synalog shop.l verify
✓ Revenue.one_row_per_customer holds ✗ Revenue.known_customer is violated: ∀ c r, Revenue c r → ∃ k, Customer c k 1 counterexample: +----+----+ | c | r | +----+----+ | 12 | 20 | +----+----+ 1 row ✓ Revenue.positive holds
At a glance

SynaLemma vs RDF, OWL and SHACL at a glance

SynaLemma vs RDF, OWL and SHACL at a glance
CriterionSynaLemmaRDF, 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
RDF, OWL, SHACL

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.

FAQ

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.

See it on your data

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.