We aim to determine which temporal instance queries can be uniquely characterised by a (polynomial-size) set of positive and negative temporal data examples. We start by considering queries formulated in fragments of propositional linear temporal logic LTL that correspond to conjunctive queries (CQs) or extensions thereof induced by the until operator. Not all of these queries admit polynomial characterisations but by restricting them further to path-shaped queries we identify natural classes that do. We then investigate how far the obtained characterisations can be lifted to temporal knowledge graphs queried by 2D languages combining LTL with concepts in description logics E L or E LI (i.e., tree-shaped CQs). While temporal operators in the scope of description logic constructors can destroy polynomial characterisability, we obtain general transfer results for the case when description logic constructors are within the scope of temporal operators. Finally, we apply our characterisations to establish (polynomial) learnability of temporal instance queries using membership queries in the active learning framework.
PreliminariesBy a signature we mean any finite set σ = ∅ of atomic concepts A, B, C, . . . representing observations, measurements, events, etc. A σ-data instance is any finite sequenceWe do not distinguish between D and its variants of the form (δ 0 , . . . , δ n , ∅, . . . , ∅).We access data by means of queries, q, constructed from atoms, ⊥ and ⊤ using ∧ and the temporal operators , ♦, ♦ r and U. The set of atomic concepts occurring in q is denoted by sig(q). The set of queries that only use the operators from Φ ⊆ { , ♦, ♦ r , U} is denoted byto a signature σ. The size |q| of q is the number of symbols in q, and the temporal depth tdp(q) of q is the maximum number of nested temporal operators in q.Q[ , ♦, ♦ r ]-queries can be equivalently defined as treeshaped conjunctive queries (CQs) with the binary predicates suc, <, ≤ over N, and atomic concepts as unary predicates. Each such CQ is a set Q(t 0 ) of assertions of the form A(t), suc(t, t ′ ), t < t ′ , and t ≤ t ′ , with a distinguished variable t 0 , such that, for every variable t in Q(t 0 ), there exists exactly one path from t 0 to t along the binary predicates suc, <, ≤.The set of Q[ , ♦, ♦ r ]-queries with path-shaped CQ counterparts is denoted by Q p [ , ♦, ♦ r ]. Such queries q take the form (1), where o i ∈ { , ♦, ♦ r } and ρ i is a conjunction of atoms (the empty conjunction is ⊤). Similarly, Q p [U]-queries take the form (2).Given a data instance D = (δ 0 , . . . , δ n ), the truth-relation D, ℓ |= q, for ℓ < ω, is defined as follows:Note that D, n |= ♦⊤ ∧ ⊤ ∧ (q U ⊤) as (δ 0 , . . . , δ n , ∅) is a variant of D. We write q |= q ′ if D, ℓ |= q implies D, ℓ |= q ′ for any D and ℓ. If q |= q ′ and q ′ |= q, we call q and q ′ equivalent and write q ≡ q ′ . Since q ≡ ⊥Uq, ♦q ≡ ⊤Uq and ♦q ≡ ♦ r q, one can assume that Q