「資料分析」範例包含一個樣本「資料分析」專案,該專案使用部分樣本 XML 資料預先移入。 您可以使用「資料分析」專案來探索「資料分析」視景及其視圖。在這些視圖中,您可以探索預先分析的 XML 資料、建立目標模型,以及產生「資料分析」工具(包括子流程)。您可以使用子流程來將輸入 XML 資料轉換到新的目標模型,以進一步處理。
「資料分析」範例使用 IBM 預先定義的 Book Series Data Analysis 設定檔。Book Series Data Analysis 設定檔包含 Book Series 綱目 'BookSeries.xsd',它顯示在下列映像檔中。此設定檔包含一個名詞解釋檔案查閱服務,以使用更容易讀取的形式來取代部分 XML 術語。例如,在「資料分析」視圖中,MediaType="MONO" 變成了 "Monograph",以便更容易解譯資料。
「資料分析專案」範例包含數個 Book Series XML 檔(位於 book.xml 目錄中)。這些檔案是預先分析的,且相關資料載入「資料分析」專案。
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="book-ns" xmlns:tns="book-ns"> <complexType name="Paper"> <sequence> <element name="Title" type="xsd:string"></element> <element name="Author" type="xsd:string" maxOccurs="unbounded" minOccurs="1"> </element> </sequence> </complexType> <complexType name="Section" mixed="true"> <sequence> <element name="Title" type="xsd:string"></element> <element name="Author" type="xsd:string" maxOccurs="unbounded" minOccurs="0"> </element> <element name="Editor" type="xsd:string" maxOccurs="unbounded" minOccurs="0"> </element> <element name="Paper" type="tns:Paper" maxOccurs="unbounded" minOccurs="0"> </element> </sequence> <attribute name="secType" type="xsd:string" use="required"></attribute> </complexType> <complexType name="Volume"> <sequence> <element name="Title" type="xsd:string"></element> <element name="Editor" type="xsd:string" maxOccurs="unbounded" minOccurs="1"> </element> <element name="volumeInfo" type="tns:VolumeInfo" maxOccurs="1" minOccurs="0"></element> <element name="Section" type="tns:Section" maxOccurs="unbounded" minOccurs="1"> </element> <element name="Media" type="tns:Media" maxOccurs="unbounded" minOccurs="0"> </element> <element name="Appendix" type="tns:AppendixType" maxOccurs="unbounded" minOccurs="0"> </element> </sequence> </complexType> <complexType name="Series"> <sequence> <element name="Title" type="xsd:string"></element> <element name="seriesInfo" type="tns:SeriesInfo" maxOccurs="1" minOccurs="1"></element> <element name="Volume" type="tns:Volume" maxOccurs="unbounded" minOccurs="1"> </element> </sequence> </complexType> <element name="BookSeries" type="tns:Series"></element> <complexType name="SeriesInfo"> <sequence> <element name="Editor" type="xsd:string"></element> <element name="PubDate" type="xsd:int"></element> </sequence> </complexType> <complexType name="Media"> <sequence> <element name="Title" type="xsd:string"></element> </sequence> <attribute name="mediaType" type="xsd:string" use="required"></attribute> </complexType> <complexType name="AppendixType"> <sequence> <element name="Bibliography" type="tns:Bibliography" maxOccurs="1" minOccurs="0"></element> <element name="References" type="tns:RefList" maxOccurs="1" minOccurs="0"></element> </sequence> </complexType> <complexType name="Bibliography"> <sequence> <element name="entry" type="tns:BibEntry" maxOccurs="unbounded" minOccurs="1"></element> </sequence> </complexType> <complexType name="RefList"> <sequence> <element name="Reference" type="xsd:string" maxOccurs="unbounded" minOccurs="1"></element> </sequence> </complexType> <complexType name="BibEntry"> <sequence> <element name="Name" type="xsd:string"></element> <element name="Author" type="xsd:string"></element> </sequence> </complexType> <complexType name="VolumeInfo"> <sequence> <element name="VolPubDate" type="xsd:string"></element> <element name="VolPubLoc" type="xsd:string"></element> </sequence> </complexType> </schema>