Advances in Artificial Intelligence Theory - MICAI - Mexican ...
Advances in Artificial Intelligence Theory - MICAI - Mexican ...
Advances in Artificial Intelligence Theory - MICAI - Mexican ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
8 Liu Q., Lu X., Ren F., Kuroiwa Sh.<br />
pattern ps 2, the processor cannot f<strong>in</strong>d the relation r 1.<br />
3. Obta<strong>in</strong><strong>in</strong>g last pattern by recursion: If the processor gets the correspond<strong>in</strong>g<br />
target pattern, it will use the correlative target functions structured recursively to get<br />
the correspond<strong>in</strong>g target pattern’s value.<br />
ESF based KR system is a new KR system that has the characters between<br />
template-based and standard KR. This is not only because the ESF based KR system<br />
comb<strong>in</strong>es standard KR with templates, but also because it tends to use syntactically<br />
structured templates (here the ”template” <strong>in</strong> ESF schema is a function. It has more<br />
changes than the common template), and allows the gaps as parameters <strong>in</strong> them to<br />
be filled recursively (i.e., by fill<strong>in</strong>g a gap, a new gap may result). The ESF based KR<br />
system can use grammars to aid l<strong>in</strong>guistic realization. For example, <strong>in</strong> Figure 5, it<br />
<strong>in</strong>cludes lexical items (e.g., referr<strong>in</strong>g expression function, aggregation function and so<br />
on) which always exist <strong>in</strong> standard KR. Therefore, it is difficult to give a def<strong>in</strong>ition of<br />
”template based” for our KR system. We th<strong>in</strong>k the word – ”function based” is more<br />
suited than ”template based”.<br />
3.3 ESF Structure Realization <strong>in</strong> Implement<strong>in</strong>g Layer<br />
It is necessary to utilize a ready-made and convenient technique to realize ESF schema<br />
<strong>in</strong> KR systems. We regard the extensible markup language (XML) is the best choice to<br />
def<strong>in</strong>e the ESF pattern. We also select extensible stylesheet language transformation<br />
(XSLT) to describe the ESF function and relation. This section helps the reader master<br />
and apply these ideas to KR problems. We utilize the XML and XSL techniques to<br />
realize ESF schema for build<strong>in</strong>g a KR system. As shown <strong>in</strong> the bottom layer of Figure<br />
1 , <strong>in</strong> a KR system the ESF patterns <strong>in</strong> XML is fed <strong>in</strong>to the XSLT processor as one<br />
<strong>in</strong>put, and the functions and relations <strong>in</strong> XSL is provided as a second <strong>in</strong>put. The output<br />
is then sent directly to user as a stream of HTML, XML or other formats. The ESF<br />
functions and relations <strong>in</strong> XSL generate the transformation <strong>in</strong>structions about ESF<br />
patterns, and the patterns <strong>in</strong> XML provide raw data. It is the implement<strong>in</strong>g layer of<br />
the KR system based on ESF schema.<br />
Pattern construction us<strong>in</strong>g XML:<br />
Code 1 – ESF source patterns<br />
<br />
...<br />
<br />
<br />
<br />
...<br />
<br />
We beg<strong>in</strong> with an XML document that represents a portion of quotations about<br />
MACD <strong>in</strong> stock market, which is shown above. The XML elements <strong>in</strong>clude their at-