1 / 12

XML-based Agent Platform

XML-based Agent Platform. Michael Sintek 12 Nov 1999. Overview. XML-based agents as framework for XML/RDF/++-based Knowledge Management FIPA-like agents communicate with XML messages (instead of LISP-like ones) communication via HTTP involved XML technologies:

hetal
Download Presentation

XML-based Agent Platform

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. XML-based Agent Platform Michael Sintek 12 Nov 1999

  2. Overview • XML-based agents as framework for XML/RDF/++-based Knowledge Management • FIPA-like agents communicate with XML messages (instead of LISP-like ones) • communication via HTTP • involved XML technologies: • XSLT for message transformation and information extraction • RDF for meta-information • RDF Schema for ontologies • XML/RDF-based query and transformation languages for distributed inferences

  3. XML Messages <message type=“message-type” sender=“sender-url” receiver=“receiver-url” additional-information > contents </message> • message types: inform, request, agree, cancel, confirm, disconfirm, subscribe, ... (speech acts, FIPA) • additional information: reply-with, in-reply-to, language, ontology, reply-by, protocol, ... • contents: XML “forest”

  4. Architecture HTML Form Agent 1 Browser Agent n Servlet Java Applet Servlet-enabled HTTP Server Browser Java Application CGI 1 CGI n C/C++ etc. Application (standard) HTTP Server HTTP

  5. Consequences • all foreign software components which are designed as CGI programs are immediately usable as agents (no explicit wrappers needed) • access to agents simple for all software components that have access to a HTTP library (Java, C, C++, ...)

  6. Train Example

  7. Train Example: Agents bahn.hafas.de HTML Form Coor-dinator Extract HTML

  8. Train Example: Communication <message type="request" sender="alien" receiver="http://serv-302.dfki.uni-kl.de:8080/xkm/agent/bahn"> <time>10:00</time> <from>Kaiserslautern</from> <to>Duesseldorf</to> ... </message> <message type="request" sender="http://serv-302.dfki.uni-kl.de:8080/xkm/agent/bahn" send-method="POST" receiver="http://bahn.hafas.de/bin/query.exe/l"> <time>10:00</time> ... </message> <HTML sender="http://bahn.hafas.de/bin/query.exe/l" receiver="http://serv-302.dfki.uni-kl.de:8080/xkm/agent/bahn"> <HEAD><TITLE>ReiseService - Verbindungen - Uebersicht</TITLE></HEAD> <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"> ... </HTML>

  9. Communication cont’d <HTML sender="http://serv-302.dfki.uni-kl.de:8080/xkm/agent/bahn” receiver="#bahnExtract"> ... </HTML> <message type="inform" sender="http://serv-302.dfki.uni-kl.de:8080/xkm/agent/bahnExtract” receiver="http://serv-302.dfki.uni-kl.de:8080/xkm/agent/bahn"> <verbindung> <ab>9:38</ab> <an>13:13</an> </verbindung> <verbindung> <ab>10:30</ab> <an>14:30</an> </verbindung> ... </message> <message type="inform" sender="http://serv-302.dfki.uni-kl.de:8080/xkm/agent/bahn” receiver="#bahnHtml"> .... </message>

  10. Communication cont’d <html type="inform" sender="http://serv-302.dfki.uni-kl.de:8080/xkm/agent/bahnHtml” receiver="http://serv-302.dfki.uni-kl.de:8080/xkm/agent/bahn"> <body bgcolor="#FFFFEE"> <table border="2"> <tr> <td>9:38</td> <td>13:13</td> </tr> <tr> <td>10:30</td> <td>14:30</td> </tr> ... </table> </body> </html> <html type="inform" sender="http://serv-302.dfki.uni-kl.de:8080/xkm/agent/bahn” receiver="alien"> <body bgcolor="#FFFFEE"> ... </body> </html>

  11. Using XSLT for Simple Agents:Information Extraction <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"> <xsl:template match="/"> <message type="inform"> <xsl:apply-templates select="//B[text()='ab']/BR/FONT/B"/> </message> </xsl:template> <xsl:template match="B"> <verbindung> <ab><xsl:value-of select="text()"/></ab> <an><xsl:value-of select="BR/text()"/></an> </verbindung> </xsl:template> </xsl:stylesheet>

  12. XSLT for HTML Generation <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"> <xsl:template match="/"> <html type="inform"> <body bgcolor="#FFFFEE"> <table border="2"> <xsl:apply-templates/> </table> </body> </html> </xsl:template> <xsl:template match="verbindung"> <tr> <td><xsl:value-of select="ab"/></td> <td><xsl:value-of select="an"/></td> </tr> </xsl:template> </xsl:stylesheet>

More Related