Presentation is loading. Please wait.

Presentation is loading. Please wait.

XML and Distributed Applications By Quddus Chong Presentation for CS551 – Fall 2001.

Similar presentations


Presentation on theme: "XML and Distributed Applications By Quddus Chong Presentation for CS551 – Fall 2001."— Presentation transcript:

1 XML and Distributed Applications By Quddus Chong Presentation for CS551 – Fall 2001

2 Overview Introduction to XML Applications and Vocabularies XML Transformations Schema-Based Programming XML & Databases XML & The Semantic Web XML-RPC & SOAP XML Tools & Resources Online

3 Introduction to XML Extensible Markup Language (version 1.0) Developed by W3 Consortium, made available as a public specification since 1998. Essentially a markup language that describes the content and structure of data. Key principle: separation of data content and data presentation. Can be transmitted using basic www protocols such as HTTP. Foundation for a universal data exchange and data storage format.

4 XML Applications & Vocabularies XML allows the exchange of data in specific domains such as business, science, education, and healthcare through standard ‘vocabularies.’  e.g. Chemical Markup Language (CML), BizTalk, Dublin Core, IMS Global Learning Consortium, Health Level 7. XML vocabularies are formalized using DTDs or XML Schemas. Applications can be built around XML data; two programming APIs are the Document Object Model (DOM) and the Simple API for XML (SAX).

5 Example: DALS Learner Space XML binding of learner profile 12345 Anarchic High Low Recursion 1.0 1 Complete 85

6 Example: DALS Knowledge Network XML binding of course content Networking 003 Introduction to Networks 1 Router 1 Routing is the technique by which data finds its way from one host computer to another. In the Internet context there are three major aspects of routing Physical Address Determination Selection of inter-network gateways Symbolic and Numeric Addresses.

7 Example: DALS E-game XML binding of quiz information r \/ !r Always True Always False Sometimes True, Sometimes False 1 Truth Table r !r r \/ !r T F T F T T Regardless of truth value of r, the result is always True.

8 XML Transformations A powerful technique which allows the conversion of XML data from one form, into another form, using a set of transformation rules stored in a stylesheet. Can be used to:  Format information for display (e.g. XML to HTML/XHTML); multiple presentations generated from a single document.  Perform data interchange between different computer systems, or manage data flows within an application.  Carry out some report generation (e.g. selection, aggregation, highlighting).

9 Schema-Based Programming An experimental model of programming; “The schema is the API”: the XML document is the application. Makes use of declarative language approach of XSLT; processing of data is triggered by the pattern of the data itself. The XML document contains:  State information (model)  Script code to control processing for events (intentions)  Elements to link intentions to views in the web page (events)  XSLT stylesheets to implement the behavior to update a particular view (views) SBP may provide a useful alternative to describe and process high- level behavior, e.g. for distributed systems where resources and interactions remain fixed.

10 XML & Databases XML provides an alternative way to represent information ‘outside’ the database. Can easily represent hierarchical views. Provide ‘neutral’ storage format; allows data from heterogeneous data storage systems to be integrated or exchanged. XML support included in most major enterprise DBMS (MS SQL Server 2000, IBM DB2, Oracle). Research issues: XQuery, Relational Schema Generation, semistructured data.

11 Example: Inform Study patient record (data source)

12 Example: Inform Study patient record in XML <InformScreenRecord xmlns="http:/www.mahi.org/informscreen" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="InformScreen-test.xsd" id="rec001" version="1.0" StudyID="123456" LName=“Doe" AdmitDate="2001-01-11" DOB="1977-10-11" SSN="999199990" PtAcctNo="0127512345" ExclNonEnglish="0" ExclOthEtio="0" ExclSecondary="0" ExclHospice="0" ExclDementia="0" ExclDied="0" ExclRefused="0" ExclMissed="0" ExclStabXfer="0" ExclPrevEnr="0" CPSubPress="1" CPStress="0" CPLikePrior="0" CPRestNitro="0" CPOtherCP="0" CPNoCP="0" CPDur="1" CPMI2Wk="0" CPASA7d="0" CPPro="1" CPMultPro24="1" CPRest="0" CPMultRest48="0" CPIncrMo="0" CPNewAng="0" CPStabAng="0" CPNoAng="0" EnrollStatus="1" EnrollDate="2001-10-01" />

13 Example: XML Schema for Inform Study (fragment)

14 XML & The Semantic Web “Semantic web”: vision of data on the web defined and linked in a way that can be used by machines for automation, integration, and reuse. (Dr. Tim Berners- Lee) Web pages to store semantic metadata, creating environment for software agents to roam from page to page to carry out automated tasks for users. An XML standard for metadata is the Resource Description Framework (RDF). RDF provides:  An abstract ‘model’ for metadata.  A transportable XML representation of that model.

15 XML-RPC & SOAP XML can be used as the data format for communications protocols in distributed computing environments. XML-RPC is an XML vocabulary that describes remote procedure calls which are transmitted over HTTP. XML-RPC clients makes procedure requests of XML-RPC servers, which return results to the XML-RPC client. SOAP (Simple Object Access Protocol) is a mechanism for data messaging using HTTP or SMTP; it can provide access to an object’s methods and properties. Both SOAP and XML-RPC are lightweight and easy methods to integrate multiple computing environments; they form the underlying technology being adopted for developing web services architectures.

16 XML Tools & Resources Online Some useful open source XML tools:  IBM XML4J (XML parser)  Apache Xalan (XSL Transformation processor)  JDOM, JAXP (Java APIs for XML programming) Resources online:  http://www.w3.org http://www.w3.org  http://www.xml.com http://www.xml.com  http://xml.coverpages.org http://xml.coverpages.org


Download ppt "XML and Distributed Applications By Quddus Chong Presentation for CS551 – Fall 2001."

Similar presentations


Ads by Google