Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

RDFdL: Integrating RDF with Differential Dynamic Logic

arXiv:2608.181652026-08-20

A framework lets you ask a single graph query that checks both 'is this physical transition safe' and 'who is the technician responsible for it'

RDF knowledge graphs are good at describing static facts like devices, buttons, and responsible technicians, but they cannot capture how physical quantities like temperature change continuously over time. The authors built RDFdL, which links RDF with Differential Dynamic Logic (dL), a formal language for verifying systems that mix continuous physics with discrete mode switches, so that both kinds of information can be queried together. They tested it on an oven, a yogurt production line, an industrial drum-boiler, and a coupled tank system, showing that verified physical behavior can be exposed as ordinary graph data.

METAL MEDIA explanatory visual

A framework lets you ask a single graph query that checks both 'is this physical transition safe' and 'who is the technician responsible for it'

  1. 01A question like 'can the oven's temperature safely reach a target range once it's switched on' cannot be answered by plain RDF or SPARQL, because temperature evolves according to a differential equation, and RDF has no built-in meaning for continuous change over time
  2. 02The team represents 'state regions'—combinations of a numeric variable range (like temperature) and a device mode (on/off)—in RDF and SHACL, then automatically translates them into dL formulas; Apache Jena handles RDF reasoning while the KeYmaera X theorem prover carries out the actual dL verification
  3. 03Candidate transitions between two state regions are not accepted as facts directly; instead they become dL proof obligations sent to KeYmaera X, and only the transitions that are successfully proven are added back into the RDF graph as new triples via predicates :next and :modeChange, which lets SPARQL's property-path queries answer multi-step reachability questions
  4. 04Evaluated on an oven, a yogurt production line with 14 state changes, an industrial drum-boiler, and a two-tank system with nonlinear coupled dynamics: for linear/polynomial cases, the number of proof obligations grew roughly linearly with the number of states and modes, and even the nonlinear tank system, despite requiring more complex algebraic decision procedures, had all its obligations successfully discharged
  5. 05SHACL is used to validate real-time sensor readings against the correct symbolic state region (e.g., matching a 185-degree, off-mode reading to its shape), while reachability and safety guarantees remain the job of dL proofs, keeping the two roles clearly separated
An explanatory diagram made by METAL MEDIA, not a figure supplied by the paper's authors.

What they did

  1. A question like 'can the oven's temperature safely reach a target range once it's switched on' cannot be answered by plain RDF or SPARQL, because temperature evolves according to a differential equation, and RDF has no built-in meaning for continuous change over time
  2. The team represents 'state regions'—combinations of a numeric variable range (like temperature) and a device mode (on/off)—in RDF and SHACL, then automatically translates them into dL formulas; Apache Jena handles RDF reasoning while the KeYmaera X theorem prover carries out the actual dL verification
  3. Candidate transitions between two state regions are not accepted as facts directly; instead they become dL proof obligations sent to KeYmaera X, and only the transitions that are successfully proven are added back into the RDF graph as new triples via predicates :next and :modeChange, which lets SPARQL's property-path queries answer multi-step reachability questions
  4. Evaluated on an oven, a yogurt production line with 14 state changes, an industrial drum-boiler, and a two-tank system with nonlinear coupled dynamics: for linear/polynomial cases, the number of proof obligations grew roughly linearly with the number of states and modes, and even the nonlinear tank system, despite requiring more complex algebraic decision procedures, had all its obligations successfully discharged
  5. SHACL is used to validate real-time sensor readings against the correct symbolic state region (e.g., matching a 185-degree, off-mode reading to its shape), while reachability and safety guarantees remain the job of dL proofs, keeping the two roles clearly separated
Figure 1: RDFdL architecture. The transition predicates :next and :modeChange are defined by Jena inference rules whose builtins invoke the KeYmaera X prover; verified transitions are therefore entailed triples, visible to SPARQL queries, including property paths alongside asserted data.
Figure 1: RDFdL architecture. The transition predicates :next and :modeChange are defined by Jena inference rules whose builtins invoke the KeYmaera X prover; verified transitions are therefore entailed triples, visible to SPARQL queries, including property paths alongside asserted data.
Table 1: Syntax of dL formulas and hybrid programs
dL Formulas (φ,ψ)
SyntaxMeaning
[α]​φAfter all runs of α, φ holds (safety)
⟨α⟩​φSome run of α reaches a state where φ holds (liveness)
φ∧ψConjunction (and)
φ∨ψDisjunction (or)
φ→ψImplication
φ↔ψBiimplication (equivalence)
Hybrid Programs (α,β)
SyntaxMeaning
α;βSequential: do α then β
α∪βChoice: execute either α or β
x:=tDiscrete assignment: set x to the value of t
{x′=t,y′=s&Q}Continuous evolution: x˙=t,y˙=s within domain Q
Figure 2: Main Classes and Properties of our Ontology.
Figure 2: Main Classes and Properties of our Ontology.
Table 2: SHACL constraints and their dL correspondents.
SHACL constraintdL literal
sh:hasValuex=c
sh:minInclusivex≥c
sh:maxInclusivex≤c
sh:minExclusivex>c
sh:maxExclusivex<c
Figure 3: Yogurt and drum-boiler examples.
Figure 3: Yogurt and drum-boiler examples.
Table 3: Notation used in the SHACL → dL mapping.
SymbolMeaning
pURI of a numeric evolving variable, e.g. ex:T
f,vSHACL constraint components and their literal values
θfComparison operator mapped from f (Table 2)
𝗆𝗈𝖽𝖾dCurrent mode of device d
MdFinite set of modes declared for device d
𝐟ODE derivatives (:derivative)
Q⁡(𝐱)Evolution-domain constraint
Figure 4: Oven and Tank Example
Figure 4: Oven and Tank Example
Table 4: Evaluation Results
Use CaseStatesModesState Transitions.Correct Transitions.dL Obligations.Sound / Global Inv.
Oven424440Yes/Yes
Empty Tank524436Yes/Yes
Yogurt1481818350Yes/Yes
Drumboiler524440Yes/Yes
Table 5: Valid real-time state mapping to correct SHACL shapes.
DomainReal-time StateMatched State
OvenOven: On, x=60s12
OvenOven: Off, x=150s11
OvenOven: On, x=190s21
OvenOven: Off, x=200s22
YogurtHeater: On, x=45; Homogenizer: Off, p=9s112
YogurtHeater: Off, x=50; Homogenizer: Off, p=8s122
YogurtHeater: On, x=60; Homogenizer: On, p=15s311
YogurtHeater: On, x=110; Homogenizer: Off, p=2s212
TankTank1: Off,h1=1.0 ; Tank2: Off,h2=0.1s0
TankTank1: On,h1=1.0 ; Tank2: On,h2=0.1s1
TankTank1: Off,h1=0.5 ; Tank2: Off,h2=0.5s2
TankTank1: On,h1=0.0 ; Tank2: On,h2=1.0s3
TankTank1: Off,h1=0.0 ; Tank2: Off,h2=1.0s4

Why it matters

In cyber-physical settings like manufacturing digital twins, engineers previously needed separate tools to ask 'who is responsible for this device' versus 'is this physical transition actually safe,' forcing them to stitch together answers manually. RDFdL shows a way to merge both kinds of questions into a single SPARQL query, treating formally verified physical behavior as just another piece of graph data.

Terms in this paper

  • RDF · A graph data model that represents facts as subject-predicate-object triples
  • SHACL · A constraint language used to validate whether RDF data conforms to defined shapes
  • SPARQL · The query language used to search patterns in RDF graphs
  • Differential Dynamic Logic (dL) · A formal logic for specifying and proving safety/reachability properties of hybrid systems that combine continuous ODE-governed dynamics with discrete mode switches
  • KeYmaera X · A theorem prover software that discharges dL proof obligations
  • entailment · Facts that are logically derived rather than explicitly stated, added into the graph as new triples

Original abstract (English)

Knowledge graphs modeled in RDF are powerful for describing static knowledge, but they cannot capture or reason about the dynamic behavior of physical systems, e.g., systems described by differential equations, which is a critical gap for AI-driven cyber-physical systems. To solve this, we propose RDFdL, a framework that integrates RDF with Differential Dynamic Logic (dL) to represent and reason about both static knowledge and the continuous dynamics of physical systems. For the dynamic part, we syntactically represent differential equations and ranges in the state space in RDF and SHACL and provide semantics using a translation to dL. Linking RDF and dL through their shared foundation in first-order logic achieves a unique integration: verification results for safety and reachability properties in the dynamic logic domain become available as entailment to SPARQL queries over RDF data. We implement the pipeline using Apache Jena for ontology-driven RDF reasoning and KeYmaera X, the theorem prover for dL, and sketch its applicability in manufacturing.

Authors · Yuyang Li, Lukas Kubelka, Julia Butte, Tobias K\"afer

Read on arXiv

Latest papers

All papers →

Latest from METAL MEDIA

Figures: Yuyang Li et al., arXiv:2608.18165, CC BY 4.0