Alessandro Artale,Roman Kontchakov,Alisa Kovtunova,Vladislav Ryzhikov,Frank Wolter,Michael Zakharyaschev
Abstract:We investigate ontology-based data access to temporal data. We consider temporal ontologies given in linear temporal logic LTL interpreted over discrete time (Z,<). Queries are given in LTL or MFO(<), monadic first-order logic with a built-in linear order. Our concern is first-order rewritability of ontology-mediated queries (OMQs) consisting of a temporal ontology and a query. By taking account of the temporal operators used in the ontology and distinguishing between ontologies given in full LTL and its core, Krom and Horn fragments, we identify a hierarchy of OMQs with atomic queries by proving rewritability into either FO(<), first-order logic with the built-in linear order, or FO(<,E), which extends FO(<) with the standard arithmetic predicates saying that "x is equivalent to 0 modulo n", for any fixed n > 1, or FO(RPR), which extends FO(<) with relational primitive recursion. In terms of circuit complexity, FO(<,E)- and FO(RPR)-rewritability guarantee OMQ answering in uniform AC0 and, respectively, NC1.
We obtain similar hierarchies for more expressive types of queries: positive LTL-formulas, monotone MFO(<)- and arbitrary MFO(<)-formulas. Our results are directly applicable if the temporal data to be accessed is one-dimensional; moreover, they lay foundations for investigating ontology-based access using combinations of temporal and description logics over two-dimensional temporal data.
What problem does this paper attempt to address?
### What problems does this paper attempt to solve?
This paper mainly explores how to perform first - order rewritability on ontologies with a time dimension and queries, in order to achieve effective access to time - data. Specifically, the paper focuses on the first - order rewritability and data complexity of ontology - mediated queries (OMQs) under Linear Temporal Logic (LTL).
#### The main research contents include:
1. **Define and classify OMQs**:
- The paper considers different types of OMQs, including atomic queries, positive LTL formula queries, monotonic MFO(<) formula queries, etc.
- These queries can be simple atomic queries or more complex LTL or MFO(<) formulas.
2. **First - order rewritability**:
- It studies the first - order rewritability of different fragments of LTL (such as Prior - LTL, Krom - LTL, etc.) and their combinations with query languages.
- For example, all OMQs of the Prior - LTL fragment can be rewritten as FO(<), and OMQs of the Krom - LTL fragment can be rewritten as FO(<,≡).
3. **Data complexity**:
- It analyzes the performance of different types of OMQs in terms of data complexity. For example, FO(<)-rewritable OMQs can be completed in AC0 time, and FO(<,≡)-rewritable OMQs can be completed in NC1 time.
4. **Extended logic**:
- It introduces extended first - order logics, such as FO(RPR), to handle more complex queries and ensure that these queries can still be completed within a reasonable complexity.
5. **Theoretical basis**:
- It uses tools such as automata theory, partially ordered automata, and monadic automata to prove the results of first - order rewritability.
- It uses Kamp's theorem to link the expressive power between FO(<) formulas and LTL formulas.
6. **Application scenarios**:
- The results of the paper can be directly applied to the access of one - dimensional time - data and lay the foundation for future research on ontology - mediated queries of multi - dimensional time - data.
### Formula representation
- **Operators of Linear Temporal Logic LTL**: $\bigcirc F$ (next moment), $\Diamond F$ (eventually), $\Box F$ (always), $U$ (until) and their past - time corresponding operators $\bigcirc P$, $\Diamond P$, $\Box P$, $S$ (since).
- **First - order logic FO(<)**: First - order logic with a built - in linear order relation $<$.
- **Extended logic FO(<,≡)**: On the basis of FO(<), the standard arithmetic predicate $x \equiv 0 \ (\text{mod} \ n)$ is added.
- **Extended logic FO(RPR)**: On the basis of FO(<), relation primitive recursion is added.
### Conclusion
Through the above research, the paper provides a systematic theoretical framework for ontology - mediated queries of time - data, clarifies the first - order rewritability and data complexity of different types of OMQs, and lays a solid foundation for further research and application.