# Probabilistic Multiagent Reasoning over Annotated Amalgamated F-Logic Ontologies

Authors: Markus Schatten
Journal: ISRN Artificial Intelligence
 (2013)

---

## Abstract

In a multiagent system (MAS), agents can have different opinions about a given problem. In order to solve the problem collectively they have to reach consensus about the ontology of the problem. A solution to probabilistic reasoning in such an environment by using a social network of trust is given. It is shown that frame logic can be annotated and amalgamated by using this approach which gives a foundation for collective ontology development in MAS. Consider the following problem: a set of agents in a multiagent system (MAS) model a certain domain in order to collectively solve a problem. Their opinions about the domain differ in various ways. The agents are connected into a social network defined by trust relations. The problem to be solved is how to obtain consensus about the domain.


---

## Body

## 1. Introduction

To formalize the problem letA={a1,…,an} be a set of agents, let τ be a trust relation defined over A×A, and let D={o1,…,om} be a problem domain consisting of a set of objects. Let further S be a set of all possible statements about D, and let O be a relation over A×S. We will denote by O the social ontology expressed by the agents. What is the probability that a certain statement from the expressed statements in O is true?By modeling some domains of interest (using a formalism like ontologies, knowledge bases, or other models) a person expresses his/her knowledge about it. Thus the main concept of interest in modeling any domain is knowledge. Nonaka and Takeuchi once defined knowledge as a “justified true belief” [1] whereby this definition is usually credited to Plato. This means that the modeling person implicitly presumes that the expressed statements in his/her model are true. On the other hand if one asks the important question what is the truth?, we arrive at one of the fundamental philosophical questions. Nietzsche once argued in [2] that a person is unable to prove the truth of a statement which is nothing more than the invention of fixed conventions for merely practical purposes, like repose, security, and/or consistence. According to this view, no one can prove that this paper is not just a fantasy of the reader reading it.The previously outlined definition of knowledge includes, intentionally or not, two more crucial concepts:justified and belief. An individual will consider something to be true that he believes in, and, from that perspective, the overall truth will be a set of statements that the community believes in. This mutual belief makes this set of statements justified. The truth was once that the Earth was the center of the universe until philosophers and scientists started to question that theory. The Earth was also once a flat surface residing on the back of an elephant. So an interesting fact about the truth, from this perspective, is that it evolves depending on the different beliefs of a certain community.In an environment where a community of agents collaborates in modeling a domain there is a chance that there will be disagreements about the domain which can yield certain inconsistencies in the model. A good example of such disagreements is the so-called “editor wars” on Wikipedia the popular free online encyclopedia. A belief about the war in ex-Yugoslavia will likely differ between a Croat and a Serb, but they will probably share the same beliefs about fundamental mathematical algebra.Following this perspective, our conceptualization of statements as units of formalized knowledge will consider the probability of giving a true statement a matter of justification. An agent is justified if other members of a social system believe in his statements. Herein we would like to outline a social network metric introduced by Bonacich [3] called eigenvector centrality which calculates the centrality of a node based on the centrality’s of its adjacent nodes. Eigenvector centrality assigns relative values to all nodes of a social network based on the principle that connections to nodes with high values contribute more to the value of the node in question than equal connections to nodes with low values. In a way, if we interpret the network under consideration as a network of trust, it yields an approximation of the probability that a certain agent will say the truth in a statement as perceived by the other agents of the network. The use of eigenvector centrality here is arbitrary; any other metric with the described properties could be used as well.In order to express knowledge about a certain domain, one needs an adequate language. Herein we will use frame logic or F-logic introduced by [4], which is an object-oriented, deductive knowledge base and ontology language. The use of F-logic here is arbitrary, and any other formal (or informal) language could be used that allows expressing an ontology of a given domain. Nevertheless, F-logic allows us to reason about concepts (classes of objects), objects (instances of classes), attributes (properties of objects) and methods (behavior of objects), by defining rules over the domain, which makes it much more user friendly than other approaches.


## 2. Introducing Frame Logic

The syntax of F-logic is defined as follows [4].Definition 1.
The alphabetΣℱ of an F-logic language ℒℱ consists of the following:(i)
a set of object constructors,ℱ;(ii)
an infinite set of variables,𝒱;(iii)
auxiliary symbols, such as,(,), [,], →, ↠, •→, •↠, ⇒, and ⇒⇒; and(iv)
usual logical connectives and quantifiers,∨, ∧, ¬, ←, ∀, and ∃.
Object constructors (the elements ofℱ) play the role of function symbols in F-logic whereby each function symbol has an arity. The arity is a nonnegative integer that represents the number of arguments the symbol can take. A constant is a symbol with arity 0, and symbols with arity ≥1 are used to construct larger terms out of simpler ones. An id term is a usual first-order term composed of function symbols and variables, as in predicate calculus. The set of all variable free or ground id terms is denoted by U(ℱ) and is commonly known as Herbrand Universe. Id terms play the role of logical object identities in F-logic which is a logical abstraction of physical object identities.
A language in F-logic consists of a set of formulae constructed out of alphabet symbols. The simplest formulae in F-logic are called F-molecules.Definition 2.
A molecule in F-logic is one of the following statements:(i)
an is-a assertion of the formC::D (C is a nonstrict subclass of D) or of the form O:C (O is a member of class C), where C, D, and O are id terms;(ii)
an object molecule of the form O [a “;” separated list of method expressions], whereO is an id term that denotes an object. A method expression can be either a noninheritable data expression, an inheritable data expression, or a signature expression.
(a)
Noninheritable data expressions can be in either of the following two forms.
(1)
A non-inheritable scalar expressionScalMethod@Q1,…,Qk→T, (k⩾0).(2)
A non-inheritable set-valued expressionSetMethod@R1,…,Rl↠{S1,…,Sm} (l,m⩾0).(b)
Inheritable scalar and set-valued expression are equivalent to their non-inheritable counterparts except that→ is replaced with •→ and ↠ with •↠.(c)
Signature expression can also take two different forms.
(1)
A scalar signature expressionScalMethod@V1,…,Vn⇒(A1,…,Ar), (n,r⩾0).(2)
A set-valued signature expressionSetMethod@W1,…,Ws⇒⇒ (B1,…,Bt) (s,t⩾0).
All methods’ left hand sides (e.g.,Qi, Ri, Vi, and Wi) denote arguments, whilst the right hand sides (e.g., T, Si, Ai, and Bi) denote method outputs. Single-headed arrows (→,•→, and ⇒) denote scalar methods, and double-headed arrows (↠, •↠, and ⇒⇒) denote set-valued methods.
As in a lot of other logic, F-formulae are built out of simpler ones by using the usual logical connectives and quantifiers mentioned above.Definition 3.
A formula in F-logic is defined recursively:(i)
F-molecules are F-formulae;(ii)
φ∨ψ, φ∧ψ, and ¬φ are F-formulae if so are φ and ψ;(iii)
∀Xφ and ∃Yψ are F-formulae if so are φ and ψ, and X and Y are variables.
F-logic further allows us to define logic programs. One of the popular class of logic programs is Horn programs.Definition 4.
A Horn F-program consists of Horn rules, which are statements of the form(1)head⟵body.
Wherebyhead is an F-molecule, and body is a conjunction of F-molecules. Since the statement is a clause, we consider all variables to be implicitly universally quantified.
For our purpose these definitions of F-logic are sufficient, but the interested reader is advised to consult [4] for profound logical foundations of object-oriented and frame based languages.


## 3. Introducing Social Network Analysis

A formal approach to defining social networks is graph theory [5].Definition 5.
Agraph𝒢 is the pair (𝒩,𝒜) whereby 𝒩 represents the set of verticles or nodes and 𝒜⊆𝒩×𝒩 the set of edges or arcs connecting pairs from 𝒩.
A graph can be represented with the so-called adjacency matrix.Definition 6.
Let𝒢 be a graph defined with the set of nodes {n1,n2,…,nm} and edges {e1,e2,…,el}. For every i, j (1⩽i⩽m and 1⩽j⩽m) one defines
(2)aij={1,ifthereisanedgebetweennodesniandnj,0,otherwise.
MatrixA=[aij] is then the adjacency matrix of graph 𝒢. The matrix i is symmetric since if there is an edge between nodes ni and nj, then clearly there is also an edge between nj and ni. Thus A=[aij]=[aji].
The notion of directed and valued-directed graphs is of special importance to our study.Definition 7.
Adirected graph or digraph𝒢 is the pair (𝒩,𝒜), whereby 𝒩 represents the set of nodes and 𝒜⊆𝒩×𝒩 the set of ordered pairs of elements from 𝒩 that represents the set of graph arcs.Definition 8.
Avalued or weighted digraph𝒢𝒱 is the triple (𝒩,𝒜,𝒱) whereby 𝒩 represents the set of nodes or verticles, 𝒜⊆𝒩×𝒩 the set of ordered pairs of elements from 𝒩 that represent the set of graph arcs, and 𝒱:𝒩→ℝ a function that attaches values or weights to nodes.
A social network can be represented as a graph𝒢=(𝒩,𝒜) where 𝒩 denotes the set of actors and 𝒜 denotes the set of relations between them [6]. If the relations are directed (e.g. support, influence, message sending, trust, etc.), we can conceptualize a social network as a directed graph. If the relations additionally can be measured in a numerical way, social networks can be represented as valued digraphs.
One of the main applications of graph theory to social network analysis is the identification of the “most important” actors inside a social network. There are lots of different methods and algorithms that allow us to calculate the importance, prominence, degree, closeness, betweenness, information, differential status, or rank of an actor. As previously mentioned we will use the eigenvector centrality to annotate agents’ statements.Definition 9.
Letpi denote the value or weight of node ni, and let [aij] be the adjacency matrix of the network. For node ni let the centrality value be proportional to the sum of all values of nodes which are connected to it. Hence
(3)pi=1λ·∑j∈M(j)‍pj=1λ·∑j=1N‍aij·pj,
where M(i) is the set of nodes that are connected to the ith node, N is the total number of nodes, and λ is a constant. In vector notation this can be rewritten as
(4)p=1λ·A·porastheeigenvectorequationA·p=λ·p.
PageRank is a variant of the eigenvector centrality measure, which we decided to use herein. PageRank was developed by Google or more precise by Larry Page (from where the word play PageRank comes from) and Sergey Brin. They used this graph analysis algorithm, for the ranking of web pages on a web search engine. The algorithm uses not only the content of a web page but also the incoming and outgoing links. Incoming links are hyperlinks from other web pages pointing to the page under consideration, and outgoing links are hyperlinks to other pages to which the page under consideration points.
PageRank is iterative and starts with a random page following its outgoing hyperlinks. It could be understood as a Markov process in which states are web pages, and transitions (which are all of equal probability) are the hyperlinks between them. The problem of pages which do not have any outgoing links, as well as the problem of loops, is solved through a jump to a random page. To ensure fairness (because of a huge base of possible pages), a transition to a random page is added to every page which has the probabilityq and is in most cases 0.15. The equation which is used for rank calculation (which could be thought of like the probability that a random user will open this particular page) is as follows:
(5)PageRank(pi)=qN+(1-q)∑pj∈M(pi)‍PageRank(pj)L(pj),
where p1,p2,…,pN are nodes under consideration, M(pi) the set of nodes pointing to pi, L(pi) the number of arcs which come from node pj, and N the number of all nodes [7, 8].
A very convenient feature of PageRank is that the sum of all ranks is 1. Thus, semantically, we can interpret the ranking value of agents (or actors in the social network) participating in a given MAS asthe probability that an agent will say the truth in the perception of the others. In the following we will use the ranking, obtained through such an algorithm in this sense.


## 4. Probability Annotation

As shown in Section2 there are basically three types of statements agents can make: (1) is-a relations, (2) object molecules, and (3) Horn rules. While is-a relations and Horn rules can be considered atomic, object molecules can be compound since object molecules of the form
(6)o[a1⟶v1;…;an⟶vn]o[a1⟶→v1;…;an⟶→vn]o[a1•⟶v1;…;an•⟶vn]o[a1•↠v1;…;an•↠vn]o[a1⟹v1;…;an⟹vn]o[a1⟹⇒v1;…;an⟹⇒vn]can be rewritten as corresponding atomic F-molecules(7)o[a1⟶v1]⋯o[an⟶vn]o[a1⟶→v1]⋯o[an⟶→vn]o[a1•⟶v1]⋯o[an•⟶vn]o[a1•↠v1]⋯o[an•↠vn]o[a1⟹v1]⋯o[an⟹vn]o[a1⟹⇒v1]⋯o[an⟹⇒vn].We will consider in the following that all F-molecule statements are atomic. Now we are able to define the annotation scheme of agent statements as follows.Definition 10.
LetS={s1,s2,…,sn} be a set of statements, let A={a1,a2,…,an} be a set of agents, let O:S×A be a corresponding social ontology, let τ be a trust relation between agents over A×A, and let ϕ:A→[0,1] be a function that assigns ranks to agents based on τ. Then the annotation∧̿ of the statements is defined as follows:
(8)s∧̿π,π=∑(a,s)∈O‍ϕ(a).
An extension to such a probability annotation is the situation when statements can have a negative valency. This happens when a particular agent disagrees to a statement of another agent. Such an annotation would be defined as follows.Definition 11.
LetS={s1,s2,…,sn} be a set of signed statements, let A={a1,a2,…,an} be a set of agents, let O:S×A be a corresponding social ontology, let τ be a trust relation between agents over A×A, and let ϕ:A→[0,1] be a function that assigns ranks to agents based on τ. Then the annotation∧̿ of the statements is defined as follows:
(9)s∧̿π,π={∑(a,s)∈O‍ϕ(a)-∑(a,-s)∈O‍ϕ(a)if∑(a,s)∈O‍ϕ(a)>∑(a,-s)∈O‍ϕ(a),0if∑(a,s)∈O‍ϕ(a)⩽∑(a,-s)∈O‍ϕ(a).
Such a definition is needed in order to avoid possible negative probability (the case when disagreement is greater than approvement).


## 5. Query Execution

In a concrete system we need to provide a mechanism for query execution that will allow agents to issue queries of the following form:(10)Qp:F∧̿p,
where F is any formula in frame logic and p a probability. The semantics of the query is: does the formulaFhold with probabilitypwith regard to the social ontology?The solution of this problem is equivalent to finding the probabilities of all possible solutions of queryF(11)Q:F.Definition 12.
LetRQ={r1,r2,…,rn} be a set of solutions to query Q; then RQp is a subset of RQ consisting of those solutions from RQ which probability is greater or equal to p and represents the set of solutions to query Qp.The probability of a solutionp(ri) is obtained by a set of production rules.Rule 1.
Ifri is a conjunction of two formulas ri1 and ri2, then p(ri)=p(ri1)·p(ri2).Rule 2.
Ifri is a disjunction of two formulas ri1 and ri2, then p(ri)=p(ri1)+p(ri2).Rule 3.
Ifri is an F-molecule if the form is i[an→av], then p(ri)=min(p(an),p(av)).The implications of these three definitions are given in the following four theorems.Theorem 13.
Ifri is an F-molecule of the form i[an1→av1,…,ann→avn], then p(ri)=∏i=1n‍min(p(ani),p(avi)).Proof.
Sinceri in this case can be written as:
(12)i[an1⟶av1]∧⋯∧i[anv⟶avv],
and due to Rule3 the probabilities of the components of this conjunction are min(p(an1),p(av1)),…,min(p(ann),p(avn)). Due to Rule 1 the probability of a conjunction is the product of the probabilities of its elements which yields ∏i=1n‍min(p(ani),p(avi)).Theorem 14.
Ifri is an F-molecule of the form i:c[an1→av1,…,ann→avn], then p(ri)=p(i:c)·∏i=1n‍min(p(ani),p(avi)).Proof.
Since the given F-molecule can be written as(13)i:c∧i[an1⟶av1]∧⋯∧i[ann⟶avn],
the proof is analogous to the proof of Theorem 13.Theorem 15.
Ifri is a statement of generalization of the form c1::c2, if P is the set of all paths between c1 and c2, and if ▸ is the relation of immediate generalization, then
(14)p(ri)=∑pa∈P‍∏cj▸ci∈pa‍p(cj▸ci).Proof.
Since any class hierarchy can be presented as a directed graph, it is obvious that there has to be at least one path fromc1 to c2. If the opposite was true, the statement would not hold and thus wouldn’t be in the initial solution set.
For the statementc1::c2 to hold, at least one path statement of the form
(15)pax=c1▸cx1∧cx1▸cx2∧⋯∧cxn▸c2
has to hold as well. This yields according to Rule 1 that the probability of one path would be
(16)p(pax)=∏cj▸ci∈pa‍p(cj▸ci).
Since there is a probability that there are multiple paths which are alternative possibilities for proving the same premise, it holds that(17)pa1∨pa2∨⋯∨pam.
Thus from Rule2 we get
(18)p(c1::c2)=∑pa∈P‍∏cj▸ci∈pa‍p(cj▸ci)
what we wanted to prove.Theorem 16.
Ifri is a statement of classification of the form i:c, then
(19)p(ri)=p(i)·∑pa∈P‍∏cj▸ci∈pa‍p(cj▸ci).Proof.
Since the statementri can be written as
(20)ri=i:c1∧c1::c,
the given probability is a consequence of Rule 1 and Theorem 15.A special case of query execution is when the social ontology contains Horn rules. Such rules are also subject to probability annotation. Thus we have(21)rule:Head⟵Body∧̿p,
where p is the annotated probability of the rule. In order to provide a mechanism to deal with such probability annotated rules, we will establish an extended definition by using an additional counter predicate for each Horn rule. Thus, each rule is extended as
(22)Head⟵Body∧CounterPredicate,
whereby CounterPredicate is a predicate which will count the number of times the particular rule has been successfully executed for finding a given solution.The query execution scheme has to be altered as well. Instead of finding only the solutions from formulaF an additional variable for every rule in the social ontology is added to the formula. For n rules we would thus have
(23)Q:F∧count(?r1)∧count(?r2)∧⋯∧count(?rn).In order to calculate the probability of a result obtained by using some probability annotated rule we establish the following definition.Definition 17.
Letr be a result obtained with probability pF by query F from a social ontology, let pr be the probability of rule R, and let c be the number of times rule R was executed during the derivation of result r. The final probability of r is then defined as
(24)p(r)=pF·prc.
This definition is intuitive since for the obtainment of resultr the rule R has to hold c times. Thus if a social ontology contains n rules (R1,…,Rn) their corresponding annotated probabilities are pr1,…,prn, and numbers of execution during derivation of result r are c1,…,cn, then the final probability is defined as
(25)p(r)=pF·∏i=1n‍prici.


## 6. Annotated Reasoning Example

In order to demonstrate the approach we will take the following (imaginary) example of an MAS (all images, names, and motives are taken from the 1968 movie “Yellow Submarine” produced by United Artists (UA) and King Features Syndicate). Presume we have a problem domain entitled “Pepperland” with objects entitled “Music” and “Purpose of life.” Let us further presume that we have six agents collaborating on this problem, namely, “John,” “Paul,” “Ringo,” “George,” “Max,” and “Glove.”Another intelligent agent “Jeremy Hilary Boob Ph.D (Nowhere man)” tries to reason about the domain, but as it comes out, the domain is inconsistent. Table1 shows the different viewpoints of agents.Table 1
Viewpoints of “Pepperland” agents.
Music
Purpose of life
John
: harmonious sounds
Main purpose→ love
Paul
: harmonious sounds
Main purpose→ love
Ringo
: harmonious sounds
Main purpose→ drums
George
Disagrees to (: evil noise)
Main purpose→ love
Max
: evil noise
Disagrees to (main purpose→ love)
Glove
: evil noise
Main purpose→ gloveDue to the disagreement on different issues a normal query would yield at least questionable results. For instance, if the disagreement statements are ignored in frame logic syntax, the domain would be represented with a set of sentences similar to the following:(26)oMusic:evilnoiseoMusic:harmonioussoundsoPurposeoflifel[mainpurpose↠oPurposeoflifelii{glove,love,drums}].Thus a query asking for the class to which the object entitled “Music” belongs(27)?-oMusic:?class
would yield two valid answers, namely, “evil noise” and “harmonious sounds.” Likewise if querying for the value of the “main purpose” attribute of object oPurposeoflife, for example,
(28)?-oPurposeoflife[mainpurpose⟶?purpose]
the valid answers would be “glove,” “love,” and “drums.” But, these answers do not reflect the actual state of the MAS, since one answer is more meaningful to it than the others.Nowhere man thinks hard and comes up with a solution. The agents form a social network of trust are shown in Figure1.Figure 1
Social network of “Pepperland.”The figure reads as follows: Ringo trusts Paul and John, Paul trusts John, John trusts George, George trusts John, Max trusts Glove, and Glove does not trust anyone. Using the previously described PageRank algorithm Nowhere man was able to order the agents by their respective rank (Table2).Table 2
Trust ranking of the “Pepperland” agents.
Agent
Ranking
John
0.303391
Glove
0.289855
George
0.267724
Paul
0.060667
Max
0.043478
Ringo
0.034884Now, Nowhere man uses these rankings to annotate the statements given by the agents:(29)p(evilnoise)=Rank(Max)p(evilnoise)=+Rank(Glove)p(evilnoise)=-Rank(George)p(evilnoise)=0.065609.As we can see the probability that objectoMusic is and “evil noise” is equal to the sum of agents’ rankings who agree to this statement (Glove and Max) minus the sum of agents’ rankings who disagree (George). Note that if an agent had expressed the same statement twice with the same attribute name, his ranking would be counted only once. Also note that, if an agent would have agreed and disagreed to a statement, his sum would be zero, since he would be at the agreed and disagreed side.From this probability calculation Nowhere man is able to conclude that the formulaoMusic:evilnoise holds with probability 0.065609. Likewise he calculates the probability of oMusic:harmonioussounds(30)p(harmonioussounds)=Rank(John)p(harmonioussounds)=+Rank(Paul)p(harmonioussounds)=+Rank(Ringo)p(harmonioussoundlls)=0.398942.He can now conclude thatoMusic:harmonioussounds holds more likely than oMusic:evilnoise with regard to the social network of agents. From these calculations Nowhere man concludes that the final solutions to query ?-oMusic:?class are
(31)?class=evilnoise∧̿0.065609?class=harmonioussounds∧̿0.398942.Nowhere man continues reasoning and calculates the probabilities for the other queries(32)p(mainpurpose)=Rank(John)p(mainpurpose)=+Rank(Paul)p(mainpurpose)=+Rank(Ringo)p(mainpurpose)=+Rank(George)p(mainpurpose)=-Rank(Max)p(mainpurpose)=+Rank(Glove)p(mainpurpllose)=0.913043,p(love)=Rank(John)p(love)=+Rank(Paul)p(love)=+Rank(George)p(love)=-Rank(Max)p(lovlle)=0.588304,p(glove)=Rank(Glove)p(glove)=0.289855,p(drums)=Rank(Ringo)p(drums)=0.034884.From these calculations Nowhere man concludes thatoPurposeoflife[mainpurpose→love] is most likely to hold with p=0.588304. The final result of the query
(33)?-oPurposeoflife[mainpurpose⟶?purpose]
is then
(34)?purpose=love∧̿0.588304?purpose=glove∧̿0.289855?purpose=drums∧̿0.034884.Now we can complicate things a bit to see the other parts of the approach in action. Assume now that John has expressed a statement that relates the object entitled “Music” to the object entitled “Purpose of life” and named the attribute “has to do with.” We would now have the following social ontology:(35)oMusic:evilnoiseoMusic:harmonioussoundsoMusic[⟶oPurposeoflife]oPurposeoflife[mainpurpose↠{glove;love,drums}].Now suppose that Nowhere man wants to issue the following query:(36)?-?o1:?c[?a⟶?o2]∧?o2[mainpurpose⟶?p].The solutions using “normal” frame logic are(37)s1:?o1=oMusic?c=evilnoise?a=hastodowith?o2=oPurposeoflife?p=glove,s2:?o1=oMusic?c=evilnoise?a=hastodowith?o2=oPurposeoflife?p=love,s3:?o1=oMusic?c=evilnoise?a=hastodowith?o2=oPurposeoflife?p=drums,s4:?o1=oMusic?c=harmonioussounds?a=hastodowith?o2=oPurposeoflife?p=glove,s5:?o1=oMusic?c=harmonioussounds?a=hastodowith?o2=oPurposeoflife?p=love,s6:?o1=oMusic?c=harmonioussounds?a=hastodowith?o2=oPurposeoflife?p=drums.To calculate the probabilities Nowhere man uses the following procedure. The variables in the query are exchanged with the actual values for a given solution:s1:
oMusic:evilnoise[hastodowith⟶oPurposeoflife]∧oPurposeoflife[mainpurpose⟶glove],s2:
oMusic:evilnoise[hastodowith⟶oPurposeoflife]∧oPurposeoflife[mainpurpose⟶love],s3:
oMusic:evilnoise[hastodowith⟶oPurposeoflife]∧oPurposeoflife[mainpurpose⟶drums],s4:
oMusic:harmonioussounds[hastodowith⟶oPurposeoflife]∧oPurposeoflife[mainpurpose⟶glove],s5:
oMusic:harmonioussounds[hastodowith⟶oPurposeoflife]∧oPurposeoflife[mainpurpose⟶love],s6:
oMusic:harmonioussounds[hastodowith⟶oPurposeoflife]∧oPurposeoflife[mainpurpose⟶drums].Now according to rule 1 the conjunction becomes(38)p(s1)=p(oPurposeoflifeoMusic:evilnoise[oPurposeoflifehastodowith⟶oPurposeoflife])p(s1)=·p(oPurposeoflife[mainpurpose⟶glove]),p(s2)=p(oPurposeoflifeoMusic:evilnoise[oPurposeoflifehastodowith⟶oPurposeoflife])p(s1)=·p(oPurposeoflife[mainpurpose⟶love]),p(s3)=p(oPurposeoflifeoMusic:evilnoise[oPurposeoflifehastodowith⟶oPurposeoflife])p(s1)=·p(oPurposeoflife[mainpurpose⟶drums]),p(s4)=p(oMusic:harmonioussounds[hastodowith⟶oPurposeoflife])p(s1)=·p(oPurposeoflife[mainpurpose⟶glove]),p(s5)=p(oMusic:harmonioussounds[hastodowith⟶oPurposeoflife])p(s1)=·p(oPurposeoflife[mainpurpose⟶love]),p(s6)=p(oMusic:harmonioussounds[hastodowith⟶oPurposeoflife])p(s1)=·p(oPurposeoflife[mainpurpose⟶drums]).The second parts of the equations were already calculated, and according to Theorem14 the first parts of the equations become
(39)p(s1)=p(oMusic:evilnoise)p(s1)=·min(p(hastodowith),p(oPurposeoflife))p(s1)=·0.289855,p(s2)=p(oMusic:evilnoise)p(s1)=·min(p(hastodowith),p(oPurposeoflife))p(s1)=·0.588304,p(s3)=p(oMusic:evilnoise)p(s1)=·min(p(hastodowith),p(oPurposeoflife))p(s1)=·0.034884,p(s4)=p(oMusic:harmonioussounds)p(s4)=·min(p(hastodowith),p(oPurposeoflife))p(s4)=·0.289855,p(s5)=p(oMusic:harmonioussounds)p(s4)=·min(p(hastodowith),p(oPurposeoflife))p(s4)=·0.588304,p(s6)=p(oMusic:harmonioussounds)p(s4)=·min(p(hastodowith),p(oPurposeoflife))p(s4)=·0.034884.We already know the probabilities of the is-a statement, and since(40)p(hastodowith)=p(oPurposeoflife)p(hastodowith)=ϕ(John)=0.303391,
the equations become
(41)p(s1)=0.065609·0.303391·0.289855,p(s2)=0.065609·0.303391·0.588304,p(s3)=0.065609·0.303391·0.034884,p(s4)=0.398942·0.303391·0.289855,p(s5)=0.398942·0.303391·0.588304,p(s6)=0.398942·0.303391·0.034884,
and finally
(42)p(s1)=0.005770,p(s2)=0.011710,p(s3)=0.000694,p(s4)=0.035083,p(s5)=0.071206,p(s6)=0.004222.


## 7. Amalgamation

To provide a mechanism for agents to query multiple annotated social ontologies we decided to use the principles of amalgamation. The model of knowledge base amalgamation which is based on online querying of underlaying sources is described in [9]. The intention of amalgamation is to show if a given solution holds in any of the underlaying sources.Since the local annotations of different ontologies that are subject to amalgamation do not necessarily hold for the global ontology, we need to introduce a mechanism to integrate the ontologies in a coherent way which will yield global annotations. Since the set of ontologies is a product of a set of respective social agent networks surrounding them, we decided to firstly integrate the social networks in order to provide the necessary foundation for global annotation.Definition 18.
The integration ofn social networks represented with the valued digraphs (𝒩1,𝒜1,𝒱1),…,(𝒩n,𝒜n,𝒱n) is given as the valued digraph (𝒩1∪⋯∪𝒩z,𝒜1∪⋯∪𝒜n,𝒱), where 𝒱 is a function 𝒱:𝒩1∪⋯∪𝒩n→ℝ that attaches values to nodes.
In particular𝒱 will be a social network analysis metric or in our case a variant of the eigenvector centrality. Now we can define the integration of ontologies as follows.Definition 19.
LetO1,…,On be sets of statements as defined above representing particular social ontologies. The integration is given as O1∪⋯∪On.What remains is to provide the annotation that is at the same time the amalgamation scheme.Definition 20.
Let(𝒩1∪⋯∪𝒩n,𝒜1∪⋯∪𝒜n,𝒱) be the integration of n social networks of agents, let O1∪⋯∪On be the integration of their corresponding social ontologies, let τ be a trust relation between agents, and let ϕ:A→[0,1] be a function that assigns ranks to agents based on τ; then the amalgamated annotation scheme ∧̿ of the metadata statements is defined as follows:
(43)s∧̿π,π=∑(a,s)∈O1∪⋯∪On‍ϕ(a).


## 8. Amalgamated Annotated Reasoning Example

To demonstrate the amalgamation approach proposed here let us again assume that our intelligent agent “Jeremy Hilary Boob Ph.D. (Nowhere man)” tries to reason about the “Pepperland” domain, but this time he wants to draw conclusions from the domain “Yellow submarine” as well. The “Yellow submarine” domain is being modeled by “Ringo,” “John,” “Paul,” “George,” and “Young Fred” which form the social network shown in Figure2. Since the contents of this domain as well as the particular ranks of the agents in it will not be used further in the example, they have been left out.Figure 2
Social network of “Yellow submarine.”Since Nowhere man wants to reason about both domains he needs to find a way to amalgamate these two domains.Again he thinks hard and comes up with the following solution. All he needs to do is to integrate the two social networks together and recalculate the ranks of all agents of this newly established social network in order to reannotate the metainformation in both domains.Since the networks of “Pepperland” and “Yellow submarine” can be represented as the following sets of tuples:(44)𝒢Pepperland={GPepperland=i(Ringo,John),GPepperland=i(Ringo,Paul),GPepperland=i(Paul,John),GPepperland=i(John,George),GPepperland=i(George,John),GPepperland=i(Max,Glove)GPepperlandii},(45)𝒢Yellowsubmarine={GYellowsubmarine=i(Ringo,John),GYellowsubmarine=i(Ringo,YoungFred),GYellowsubmarine=i(John,Paul),GYellowsubmarine=i(YoungFred,Ringo),GYellowsubmarine=i(YoungFred,George)GYellowsubmarinell},
all he needs is to find 𝒢A=𝒢Pepperland∪𝒢Yellowsubmarine and recalculate the ranks of this new network. Thus
(46)𝒢A={GA=i(Ringo,John),GA=i(Ringo,Paul),GA=i(Paul,John),GA=i(John,George),GA=i(George,John),GA=i(Max,Glove)GA=i(Ringo,YoungFred),GA=i(John,Paul),GA=i(YoungFred,Ringo),GA=i(YoungFred,George)GllA}.The newly established integrated social network is shown in Figure3.Figure 3
The integration of two social networks.Now Nowhere man calculates the ranks of this new network and uses the previously described procedure to annotate the meta information (Section4) and reason about the amalgamated domain (Section 5).


## 9. Towards a Distributed Application

As we could see from the previous examples, in order to gain accurate knowledge and accurate probabilities about a certain domain, we had to introduce an all-knowing agent (Nowhere man). This agent had to be aware of all knowledge of each agent and all trust relations they engage in. Such a scenario is not feasible for large-scale MAS (LSMAS). Thus we need to provide a mechanism to let agents reason in a distributed manner and still get accurate enough results.This problem consists of two parts; namely, an agent needs (1) to acquire an accurate approximation of the ranks of each agent in its network and (2) to acquire knowledge about the knowledge of other agents. The first part deals with annotation and the second with amalgamation of the ontology.A solution to the first problem might be to calculate ranks in a distributed manner, as has been shown in [10]. In this way agents acquire approximate knowledge about the ranks of their neighbouring agents.The second problem could be used by the proposed algorithm for amalgamation. Each agent can ask agents it trusts about their knowledge and then amalgamate their ontology with its own. In this way the agent acquires continuously better knowledge about its local environment. We could have easily considered Nowhere man in the last example to be doing the just described procedure—asking one agent after another about their knowledge.


## 10. Possible Application areas

In order to provide a practical example, consider a network of store-and-forward e-mail routing agents in which spam bots try to send unsolicited messages. Some routers (agents) might be under the control of spam bots and send out messages which might be malicious to users and other routers. The domain these agents reason about is the domain of spam messages—for example, which message from which user forwarded by which router and what kind of content is spam and should be discarded.This scenario can be modeled by using the previously described approach: agents form trust relations and mutually exchange new rules about spam filtering. An agent will amalgamate rules (ontologies) of other agents with its own but will decide about a message (using an adequate query) based not only on the given rules but also on the probability annotation given by the network of trust.


## 11. Related Work

Alternative approaches to measuring trust in the form of the reputation inference and the SUNNY algorithm are presented in [11, 12], respectively. Both of these could have been used instead of PageRank in the approach outlined herein. A much more elaborated system of measuring reputation and likewise trust in MAS called the Regret system is presented in [13]. It is based on three different dimensions of reputation (individual, social, and ontological) and allows for measuring several types of reputation in parallel. The approach is partly incompatible with our approach, but several adjustments would allow us to combine both approaches.A different approach to a similar problem related to trust management in the Semantic Web is presented in [14]. It provides a profound model based on path algebra and inspired by Markov models. It provides a method of deriving the degree of belief in a statement that is explicitly asserted by one or more individuals in a network of trust, whilst a calculus for computing the belief in derived statements is left to future research. Herein a formalism for deriving the belief in any computable statement is presented for F-logic.


## 12. Conclusion

When agents have to solve a problem collectively, they have to reach consensus about the domain since their opinions can differ. Especially when agents are self-interested, their goals in a given situation can vary quite intensively. Herein an approach to reaching this consensus based on a network of trust between agents has been presented which is a generalization of the work done in [15, 16] which dealt with semantic wiki systems and semantic social networks, respectively. By using a network analysis trust ranks of agents can be calculated which can be interpreted as an approximation of the probability that a certain agent will say the truth. Using this interpretation an annotation scheme for F-logic based Horn programs has been developed which allows agents to reason about the modeled domain and make decisions based on the probability that a certain statement (derived or explicit) is true. Based on this annotation scheme and the network of trust an amalgamation scheme has been developed as well, which allow agents to reason about multiple domains.Still, there are open questions: how does the approach scale in fully decentralized environments like LSMAS? What are the implications of self-interest or could agents develop strategies to “lie” on purpose to attain their goals? These and similar questions are subject to our future research.



---

*Source: 691707-2013-09-30.xml*