2. XML Usage & Examples in Data Management · Point it towards a browser using XSLT
Transcript of 2. XML Usage & Examples in Data Management · Point it towards a browser using XSLT
1
© Copyright 2004 by Data Blueprint - all rights reserved!1 - datablueprint.com
2. XML Usage &2. XML Usage &Examples in DataExamples in Data
ManagementManagement• XML Usage Overview• Web Efficiency
Example• Parser-based
Integration Example• B2B Example• XML Conversion• E-business Marketplace-based Strategies• Envera• Metadata Management Example• Legacy System Evolution
© Copyright 2004 by Data Blueprint - all rights reserved!2 - datablueprint.com
Metadata Management ExampleMetadata Management Example
• Have copy of 700 + page document in.doc format
• Describes functional decomposition of asystem as comprised of
• 1,887 composition units– 35 functions– 1,852 processes
• How to make use of it?– Wrap it in XML– Put it on the web
2
© Copyright 2004 by Data Blueprint - all rights reserved!3 - datablueprint.com
<?xml version='1.0' standalone='yes'?><!DOCTYPE documentation SYSTEM "CMS.dtd">
<documentation> <node> <name>AMS_ASSET_MANAGEMENT</name> <description> <origin>SAMMS & DISMS</origin> <explanation>This function includes requisitioning, inventory control as well as maintaining master files,
reference files and generation of reports. The requisition processing systems edit and validate requisitions,referrals, passing orders, and requisition-related documents. The inventory control systems maintains physicalinventories, accomplishes location reconciliation, support Depot Balance Transaction Register, controlsitem/balance freezes and reviews on-hand assets. </explanation>
</description> <type>Function</type> <subordinate-of>SAMMS_MANAGEMENT</subordinate-of> <subordinates> <item>AMS_PROCESS_REQSN_RELTD_TYPE_DOC</item> <item>AMS_PROCESS_RECEIPTS</item> <item>AMS_PERFORM_LOGISTIC_REASSESSMNT</item> <item>AMS_MANAGE_DISCREPANCIES</item> <item>AMS_MAINTAIN_INVENTORY_CONTROL</item> <item>AMS_DETERMINE_STOCK_POSITIONING</item> <item>AMS_CONTROL_GFM</item> </subordinates> </node>
<node> <name>AMS_CONTROL_GFM</name> <description> <origin>SAMMS</origin> <explanation>Control Government Furnished Materiel (GFM) Control. The Control Government Furnished Materiel
(GFM) subsystem involves the establishment and maintenance of an accountable system for tracking GovernmentFurnished Materiel (GFM), Government Loaned Property (GLP), and Government Furnished Equipment (GFE) in thehands of End Item contractors. This function includes Provide GFM Control and Management Control Activity (MCA)Control. The GFM Control provides a complete audit trail of all issues, receipts, returns, and adjustmentsrelating to each End Item contract. The MCA Control ensures that only authorized GFM, GFE, and GLP is issued toauthorized End Item Contractors. LEGACY: None. </explanation>
</description> <type>Function</type> <subordinate-of>AMS_ASSET_MANAGEMENT</subordinate-of> <subordinates> <item>AMS_PROVIDE_GFM_CONTROL</item> <item>AMS_PROVIDE_MCA_CONTROL</item> <item>AMS_PROVIDE_GFM_RSVRTN_CNTRL</item> </subordinates> </node>
Wrap it in XMLWrap it in XML
© Copyright 2004 by Data Blueprint - all rights reserved!4 - datablueprint.com
What about the usual questions?What about the usual questions?• What are the user
requirements?• Who is going to use
the metadata?• How should it be delivered
– Fax– Browser– Cell phone– Pager
• How should it be formatted for delivery?
3
© Copyright 2004 by Data Blueprint - all rights reserved!5 - datablueprint.com
XML CapabilitiesXML Capabilities
© Copyright 2004 by Data Blueprint - all rights reserved!6 - datablueprint.com
Point it towards a browser using XSLTPoint it towards a browser using XSLT
<?xml version='1.0' standalone='yes'?><!DOCTYPE documentation SYSTEM "CMS.dtd">
<documentation> <node> <name>AMS_ASSET_MANAGEMENT</name> <description> <origin>SAMMS & DISMS</origin> <explanation>This function includes requisitioning, inventorycontrol as well as maintaining master files, reference files andgeneration of reports. The requisition processing systems edit andvalidate requisitions, referrals, passing orders, and requisition-relateddocuments. The inventory control systems maintains physical inventories,accomplishes location reconciliation, support Depot Balance TransactionRegister, controls item/balance freezes and reviews on-hand assets.</explanation> </description> <type>Function</type> <subordinate-of>SAMMS_MANAGEMENT</subordinate-of> <subordinates> <item>AMS_PROCESS_REQSN_RELTD_TYPE_DOC</item> <item>AMS_PROCESS_RECEIPTS</item> <item>AMS_PERFORM_LOGISTIC_REASSESSMNT</item> <item>AMS_MANAGE_DISCREPANCIES</item> <item>AMS_MAINTAIN_INVENTORY_CONTROL</item> <item>AMS_DETERMINE_STOCK_POSITIONING</item> <item>AMS_CONTROL_GFM</item> </subordinates> </node>
<node> <name>AMS_CONTROL_GFM</name> <description> <origin>SAMMS</origin> <explanation>Control Government Furnished Materiel (GFM) Control.The Control Government Furnished Materiel (GFM) subsystem involves theestablishment and maintenance of an accountable system for trackingGovernment Furnished Materiel (GFM), Government Loaned Property (GLP), andGovernment Furnished Equipment (GFE) in the hands of End Item contractors.This function includes Provide GFM Control and Management Control Activity(MCA) Control. The GFM Control provides a complete audit trail of allissues, receipts, returns, and adjustments relating to each End Itemcontract. The MCA Control ensures that only authorized GFM, GFE, and GLPis issued to authorized End Item Contractors. LEGACY: None. </explanation> </description> <type>Function</type> <subordinate-of>AMS_ASSET_MANAGEMENT</subordinate-of> <subordinates> <item>AMS_PROVIDE_GFM_CONTROL</item> <item>AMS_PROVIDE_MCA_CONTROL</item> <item>AMS_PROVIDE_GFM_RSVRTN_CNTRL</item> </subordinates> </node>
<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html><head><title>Documentation</title></head> <body bgcolor="#FFFFFF" text="#000000"> <h1><center><a name="top"> Defense Logistics Agency Data Documentation</a></center></h1> <h2><center>Prepared by the Institute for Data Research</center></h2>
<hr width="100%" />
<table width="100%" border="0"> <tr><td width="20%" halign="left" valign="top"> <p><h2>Master Index:</h2> <font size="-2"> <ul> <xsl:for-each select="//documentation/node/name/."> <xsl:sort select="position()" order="descending"/> <xsl:variable name="tmp" select="."/> <li><a href="#{$tmp}"><xsl:value-of select="$tmp"/></a></li> </xsl:for-each> </ul> </font> </p> </td> <td width="80%"><xsl:apply-templates/></td></tr> </table>
4
© Copyright 2004 by Data Blueprint - all rights reserved!7 - datablueprint.com
XML-based Function & Process MetadataXML-based Function & Process Metadata
Show Me
© Copyright 2004 by Data Blueprint - all rights reserved!8 - datablueprint.com
Web Efficiency Example Illustrates Both PointsWeb Efficiency Example Illustrates Both Points• Request
information forflights fromRichmond, VA toLondon on aspecific date -several screens ofdata are returned
• Typical HTMLbehavior is toshorten list withsuccessivequeries - finetuning bydeparture time,price, airline, etc.
• Each refinementrequires serveraccess
Requestinformation forflights fromRichmond, VA toLondon on aspecific date -several screens ofdata are returned
5
© Copyright 2004 by Data Blueprint - all rights reserved!9 - datablueprint.com
Send small Java programSend small Java programallowing user controlallowing user control
without serverwithout serverinvolvementinvolvement
<?xml version="1.0" standalone="yes"?><?xml-stylesheet type="text/xsl" href="flight.xsl"?>
<trip>
<option> <carrier>Continental Airlines</carrier> <price>846.80</price>
<passenger-list> <person fname="Peter" lname="Aiken" ssn="XXX-XX-XXXX"> </person> </passenger-list>
<path> <flight number="3853"> <aircraft>Embraer ERJ-135</aircraft> <day>Saturday</day> <month>September</month> <day-of-month>22</day-of-month> <year>2001</year> <time>2:55PM</time>
<source><city>Richmond</city><province>Virginia</province><airport-code>RIC</airport-code>
<country>USA</country> </source>
<destination><city>Cleveland</city><province>Ohio</province><airport-code>CLE</airport-code><country>USA</country>
</destination>
Multiply this by a millionMultiply this by a millionWeb users, and theWeb users, and the
global efficiency gainsglobal efficiency gainsbecome dramaticbecome dramatic
© Copyright 2004 by Data Blueprint - all rights reserved!17 - datablueprint.com
Transformation ManagementTransformation Management
A_ACCOUNT STATUS B_ACCOUNT STATUS
EIL (enterprise integration layer)
TransformationsA->EIL
Transformations B->EIL
TransformationsEIL->???