Abstract
AbstractWe propose a fundamentally new approach to Datalog evaluation. Given a linear Datalog program DB written usingNconstants and binary predicates, we first translate if-and-only-if completions of clauses in DB into a setEq(DB) of matrix equations with a non-linear operation, where relations inMDB, the least Herbrand model of DB, are encoded as adjacency matrices. We then translateEq(DB) into another, but purely linear matrix equationsẼq(DB). It is proved that the least solution ofẼq(DB) in the sense of matrix ordering is converted to the least solution ofEq(DB) and the latter givesMDBas a set of adjacency matrices. Hence, computing the least solution ofẼq(DB) is equivalent to computingMDBspecified by DB. For a class of tail recursive programs and for some other types of programs, our approach achievesO(N3) time complexity irrespective of the number of variables in a clause since only matrix operations costingO(N3) or less are used. We conducted two experiments that compute the least Herbrand models of linear Datalog programs. The first experiment computes transitive closure of artificial data and real network data taken from the Koblenz Network Collection. The second one compared the proposed approach with the state-of-the-art symbolic systems including two Prolog systems and two ASP systems, in terms of computation time for a transitive closure program and the same generation program. In the experiment, it is observed that our linear algebraic approach runs 101~ 104times faster than the symbolic systems when data is not sparse. Our approach is inspired by the emergence of big knowledge graphs and expected to contribute to the realization of rich and scalable logical inference for knowledge graphs.
Publisher
Cambridge University Press (CUP)
Subject
Artificial Intelligence,Computational Theory and Mathematics,Hardware and Architecture,Theoretical Computer Science,Software
Reference30 articles.
1. Simoncini V. 2013. Computational Methods for Linear Matrix Equations. Technical report, SIAM REVIEW, 58(3), pp. 377–441.
2. Tensor Decompositions and Applications
3. Krompass D. , Nickel M. and Tresp V. 2014. Querying factorized probabilistic triple databases. In Proc. of the 13th International Semantic Web Conference(ISWC'14), P. Mika , T. Tudorache , A. Bernstein , C. Welty , C. Knoblock , D. Vrandeac , P. Groth , N. Noy , K. Janowicz , C. Goble , Eds. Springer-Verlag New York, Inc., New York, NY, USA, 114–129.
4. Gebser M. , Kaminski R. , Kaufmann B. and Schaub T. 2014. Clingo = ASP + Control: Preliminary Report. In M. Leuschel and T. Schrijvers , Eds. Technical Communications of the Thirtieth International Conference on Logic Programming (ICLP'14), Vol. 14(4–5). 1–9.
Cited by
13 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献