Data Analysis サンプルは、いくつかの XML データ例が定義済みのデータ分析プロジェクト例として使用できます。 このプロジェクトを使用して、データ分析パースペクティブとそのビューを探索できます。 これらのビューで、ロードしたデータを分析してターゲット・モデルを作成し、最終的にはサブフローを生成することができます。 このサブフローを使用して、さらに処理するために入力 XML データを新しいターゲット・モデル表現に変換できます。
Data Analysis サンプルでは、IBM によって定義済みの Book Series データ分析プロファイルが使用されます。 Book Series データ分析プロファイルには、Book Series スキーマ (次の図に示す BookSeries.xsd) が含まれます。 いくつかの XML 項をより判読しやすい形態に置き換えるために使用されるグロッサリーも含まれています。 例えば、データ分析ビューでは MediaType="MONO" は "Monograph" になるので、データを解釈しやすくなります。
サンプル Data Analysis プロジェクトには、いくつかの Book Series xml ファイルが含まれます (bookxml ディレクトリー内)。 これらのファイルは、Data Analysis プロジェクトにプリロード済みです。
<?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>