turn are represented by their associated attributes.
Each of these attributes is compared pair-wisely to
find similar entities. Although they don’t have the
same characteristic attribute, if their property sets
overlap by more than seventy percent then two
nodes would be judged to be identical. This is the
algorithm for object selection through comparison
by attributes.
/* Attribute compare*/
Function Same_attribute(Schema1,Schema2)
// Searching every node of schema2
while(Schema2_node !=NULL)
// Starting the root node of schema1
Point the root node of Schema1
while(Schema1_node !=NULL)
CompareAttribute(Schema1_nattribute,S
chema2_nattribute)
if same the characteristic attribute
then choose the node and break
// if property set of the node has similar objects
else if similarity of the property
set is found
then choose the node and break
// compare to the next node of schema1
else next the Schema1_node
end while
next the Schema2_node
end while
end Function
We will give an example based on this algorithm. In
Figure.3(b), the schema of the Woman entity has an
attribute set, i.e. attribute = {size, shape}, and
characteristic attribute, i.e. {bear()}. Comparison of
this entity starts from the root entity of the target
schema Figure.3(a), in terms of the actions and
attributes. If any attribute does not match for an
entity, then comparison continues with its child
entity’s attributes. In the Figure.3, for example we
may judge the Animal entity is similar to Woman
entity because both entities include the same
attributes such as ‘size’& ‘shape’. Since their
characteristic attributes do not match however,
further comparison with a child entity of Animal
entity is attempted. Since Lady entity inherits all the
other ancestor entities including Human entity, the
system would estimate that the two entities have the
same characteristic attribute i.e., ‘bear()’. Therefore
the two entities, Lady and Woman entities are
selected as suitable entity pair for integration.
3.3 Comparison by Similar
Construction and Hierarchy
We also can select the similar entity by means of
comparing their hierarchical similarity such as class
hierarchy. Figure.4 is the example of integrating the
Figure 3: Comparison of Property.
two schemas. The knowledge structure of
Figure.4(a) and Figure.4(b) encompasses concept
and links of objects with their own information.
However, Figure.4(a) depicts the hierarchy from
‘Physical Object’ with relations, on the other hand,
Figure.4(b) shows the hierarchy of move() of animal.
The comparison of hierarchical similarity of the two
schemas starts from the root node based on their
names and characteristic properties. If not similar,
the comparison moves to the next entities until either
reaching the end node or finding the similarity in the
top-down fashion. We in particular consider links
which have a meaning, i.e. ‘+life’, ‘mobility’.
The algorithm for object selection through the
comparison by structure is following.
/* Structure compare*/
Function Same_construction(Schema1,
Schema2)
Check the depth the two schemas
//if Schema1 has long depth
while(Schema1_node !=NULL)
// Starting the root node of schema1,schema2
Point the root node of Schema1,
Schema2
// part of structure compare
ComparetheLink
(Schema1_node,Schema2_node)
If same the number of Link the
two schemas
//use the attribute algorithm
then call Same_attribute(Schema1,
Schema2)
If same the definitional attribute
then select the node and break
else next to Schema1_node
next to Schema2_node
else asking the comparison
process continue
if approval then next to
Schema1_node
next to Schema2_node
else return abort
end while
end Function
We present the example on the basis of this
algorithm. In Figure.4, Living thing and Animal
entities are intuitively not the similar entity because
AN OBJECT SELECTION MECHANISM FOR SCHEMA INTEGRATION OF AGENT’S KNOWLEDGE
STRUCTURE IN VIRTUAL REALITY
413