Vadalog
Vadalog is a system for performing complex logic reasoning tasks over knowledge graphs. Its language is based on an extension of the rule-based language Datalog, Warded Datalog ± . Vadalog was developed by researchers at the University of Oxford and Technische Universität Wien as well as employees at the Bank of Italy. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
Vadalog is a system for performing complex logic reasoning tasks over knowledge graphs. Its language is based on an extension of the rule-based language Datalog, Warded Datalog ± . Vadalog was developed by researchers at the University of Oxford and Technische Universität Wien as well as employees at the Bank of Italy. or, alternatively, in Datalog syntax, it can be written as follows: p(X,Z) :- r(X). Variables in Vadalog are like variables in first-order logic and a variable is local to the rule in which it occurs. This means that occurrences of the same variable name in different rules refer to different variables. In case of a set of rules \Sigma , consisting of the following: r(X,Y) :- p(X). p(Z) :- r(X,Z). the variable Z in the second rule is said to be dangerous, since the first rule will generate a null in the second term of the atom r and this will be injected to the second rule to get the atom p, leading to a propagation of nulls when trying to find an answer to the program. If arbitrary propagation is allowed, reasoning is undecidable and the program will be infinite. Warded Datalog ± overcomes this issue asking that for every rule defined in a set \Sigma , all the variables in the rule bodies must coexist in at least one atom in the head, called a ward. The concept of wardness restricts the way dangerous variable can be used inside a program. Although this is a limit in terms of expressive power, with this requirement and thanks to its architecture and termination algorithms, Warded Datalog ± is able to find answers to a program in a finite number of steps. It also exhibits a good trade-off between computational complexity and expressive power, capturing PTIME data complexity while allowing ontological reasoning and the possibility of running programs with recursion. Consider the following set of Vadalog rules: ancestor(Y,X) :- person(X). ancestor(Y,Z) :- ancestor(Y,X), parent(X,Z). The first rule states that for each person X there exists an ancestor Y . The second rule states that, if X is a parent of Z , then Y is an ancestor of Z too. Note the existential quantification in the first position of the ancestor predicate in the first rule, which will generate a null ν i in the chase procedure. Such null is then propagated to the head of the second rule. Consider a database D = {person(Alice), person(Bob), parent(Alice,Bob)} with the extensional facts and the query of finding all the entailed ancestor facts as reasoning task. By performing the chase procedure, the fact ancestor(ν 1 ,Alice) is generated by triggering the first rule on person(Alice) . Then, ancestor(ν 1 ,Bob) is created by activating the second rule on ancestor(ν 1 ,Alice) and parent(Alice,Bob) . Finally, the first rule could be triggered on person(Bob) , but the resulting fact ancestor(ν 2 ,Bob) is isomorphic with ancestor(ν 1 ,Bob) , thus this fact is not generated and the corresponding portion of the chase graph is not explored. In conclusion, the answer to the query is the set of facts {ancestor(ν 1 ,Alice), ancestor(ν 1 ,Bob)} . These rules can be written in a Vadalog program that will derive all control edges like the following: control(X,X) :- company(X). control(X,Y) :- control(X,Y), own(Y,Z,W), V = sum(W, ), V > 0.5. The first rule states that each company controls itself. The second rule defines control of over by summing the shares of held by companies , over all companies controlled by . These rules can be written in a Vadalog program that will derive all close link edges like the following: mcl(X,Y,S) :- own(X,Y,S). mcl(X,Z,S1 * S2) :- mc1(X,Y,S1), own(Y,Z,S2). cl1(X,Y) :- mcl(X,Y,S), TS = sum(S), TS > 0.2. cl2(X,Y) :- cl1(Z,X), cl1(Z,Y), X != Y. closelink(X,Y) :- cl1(X,Y). closelink(X,Y) :- cl2(X,Y). The first rule states that two companies and connected by an ownership edge are possible close links. The second rule states that, if and are possible close links with a share and there exists an ownership edge from to a company with a share , then also and are possible close links with a share . The third rule states that, if the sum of all the partial shares of owned directly or indirectly by is greater than or equal to 20% of the equity of , then they are close links according to the first definition. The fourth rule models the second definition of close links, i.e., the third-party case.
Cite this
"Vadalog". 1774717374. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1345872907 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy