Section |
---|
Column |
---|
| あなたは、インポート時に、またはXMLファイルを使用して、より高度な方法でデータモデルのいずれかのGUIを介して定義できます。 XML定義はBellaDatiのREST APIに提出またはGUIを介してアップロードされます。 基本コンセプトXML定義をオブジェクトに適用することができます。データモデルは次の要素で構成されます。 - データセット - データセットは、属性とインジケータで構成される仮想キューブです。
- 属性 - 属性はインジケーターの記述、典型的には、ID、名前、市などの一般的な文字列の記述子です。属性はインジケータの記述、典型的には、ID、名前、市などの一般的な文字列の記述子です。
- 属性メンバー - 属性の単一の値を表し、 - 例えば、ニューヨーク、ロンドン、属性Cityのベルリンなど例えば、都市属性のニューヨーク、ロンドン、ベルリンなど。
- 指標インジケータ - 計算データを含むデータ列です(価格、金額など)。
|
| XML設定ファイルの構造XML構成ファイルの構造上述したように、データモデルは、属性およびインディケータを含むデータセットの定義を含んでいます。各データセットは、外部データソースに接続できます。例のようにそれを行う方法を示ています。上述したように、データモデルは、属性およびインジケータを含むデータセットの定義を含んでいます。各データセットは、外部データソースに接続できます。例のようにそれを行う方法を示ています。 Code Block |
---|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:dataSet xmlns:ns2="http://www.belladati.com/api/v1.0" name="CRM - opportunities">
<indicators>
<indicator code="M_AMOUNT" name="Amount"/>
<indicator code="M_PROBABILITY" name="Probability"/>
</indicators>
<attributes>
<attribute code="L_CITY" name="City"/>
<attribute code="L_ID" name="Id"/>
<attribute code="L_NAME" name="Name"/>
<attribute code="L_OFFICE" name="Office"/>
<attribute code="L_PRODUCT" name="Product"/>
<attribute code="L_STATUS" name="Status"/>
</attributes>
<dataSources>
<dataSource name="SQL data source">
<sql dbType="MYSQL">
<columns>
<timeColumn localeString="cs" format="dd.MM.yyyy" index="0" name="Date"/>
<attributeColumn code="L_ID" index="1" name="Id"/>
<attributeColumn code="L_NAME" index="2" name="Name"/>
<attributeColumn code="L_OFFICE" index="3" name="Office"/>
<attributeColumn code="L_PRODUCT" index="4" name="Product"/>
<attributeColumn code="L_STATUS" index="5" name="Status"/>
<attributeColumn code="L_CITY" index="6" name="City"/>
<indicatorColumn code="M_AMOUNT" index="7" name="Amount"/>
<indicatorColumn code="M_PROBABILITY" index="8" name="Probability"/>
</columns>
<overridingTimeColumnDate>2010-12-17</overridingTimeColumnDate>
<properties>
<entry name="SQL" value="select * from crm_opportunities"/>
</properties>
<connectionParameters>
<entry name="database" value="crm_db"/>
<entry name="host" value="host_address"/>
<entry name="password" value="password"/>
<entry name="user" value="user"/>
</connectionParameters>
</sql>
</dataSource>
</dataSources>
<permissions>
<owner>support@belladati.com</owner>
</permissions>
</ns2:dataSet>
|
XML設定ファイルのコンテンツはbelladati_1_0.xsd XSDスキーマに対応します。 データセット作成データセットの作成 データセットが<dataSet> によって 定義されます。 例 Code Block |
---|
<ns2:dataSet xmlns:ns2="http://www.belladati.com/api/v1.0" name="CRM - opportunities">
...
</ns2:dataSet>
|
Section |
---|
Column |
---|
| タグ属性 名 | タイプ | 必須 | 説明 |
---|
name
| string | true | データセット名 |
|
Column |
---|
|
|
ネストされたタグ 名 | タイプ | カーディナリティ | 説明 |
---|
indicators
| コンプレックス | 0..1 | インディケータやインディケータのグループを囲みますインジケータやインジケータのグループを囲みます | attributes
| コンプレックス | 0..1 | 属性を囲みます | drilldownPaths
| コンプレックス | 0..1 | 可能なドリルダウンパスを囲みます | dataSources
| コンプレックス | 0..1 | データソースを定義します | alers
| コンプレックス | 0..1 | アラートを囲みます | permissions
| コンプレックス | 0..1 | 権限を囲みます許可を囲みます | reports
| コンプレックス | 0..1 | レポートの定義を囲みます |
指標と指標グループの作成インジケータとインジケータグループの作成インジケータは、単一のオブジェクトによって表されるまたはインディケータのグループの一部です。インディケータとグループは、インジケータは、単一のオブジェクト、またはインジケータのグループの一部によって表されます。インジケータとインジケータグループは、<indicators> タグで囲まれています。
インジケータ作成<indicator> タグによって単一インディケータが示されます タグによって単一インジケータが示されます
例 Code Block |
---|
<indicators>
<indicator code="M_AMOUNT" name="Amount" unit="USD"/>
<indicator code="M_COUNT" name="Count"/>
</indicators>
|
タグ属性 ネストされたタグ translations
| complex | 0..1 | インディケータの翻訳を囲みますインジケータの翻訳を囲みます | formula
| CDATA value | 0..1 | インディケータ値が評価される場合、式を定義しますインジケータ値が評価される場合、式を定義します |
数式インジケータを作成 例 Code Block |
---|
<indicators>
<indicator code="M_AMOUNT" name="Amount" unit="USD"/>
<indicator code="M_COUNT" name="Count"/>
<indicator code="M_RATE" name="Rate">
<formula>M_AMOUNT / M_COUNT</formula>
</indicator>
</indicators>
| インディケータの翻訳を作成インジケータの翻訳を作成インジケータの翻訳は、ネストされたタグ<translation> でサポートされています。翻訳は、インディケータとインディケータグループとしても準拠しています。でサポートされています。翻訳は、インジケータとインジケータグループとしても準拠しています。 例 Code Block |
---|
<indicators>
<indicator code="M_AMOUNT" name="Amount" unit="USD">
<translations>
<translation locale="de" value="Translated value"/>
</translations>
</indicator>
</indicators>
|
タグ属性 名 | タイプ | 必須 | 説明 |
---|
locale
| string | true | 翻訳のロケール | value
| string | true | 翻訳値 |
作成指標グループインジケータグループの作成 より構造化と階層的に組織インディケータが必要な場合は、インジケータ・グループでそれを定義できます。各インディケータのグループは、単一のインディケータまたはネストされたインディケータグループで構成されています。インジケータグループ定義は、タグ<indicatorGroup>で囲まれています。より構造化と階層的に組織インジケータが必要な場合は、インジケータ・グループでそれを定義できます。各インジケータのグループは、単一のインジケータまたはネストされたインジケータグループで構成されています。インジケータグループ定義は、タグ<indicatorGroup>で囲まれています。 例 Code Block |
---|
<indicators>
<indicatorGroup name="group">
<indicator code="M_INDICATOR" name="indicator"/>
<indicatorGroup name="sub-group">
<indicator code="M_SUBGROUP_INDICATOR" name="sub-group indicator"/>
</indicatorGroup>
</indicatorGroup>
</indicators>
|
タグ属性 ネストされたタグ indicator
| complex | 0..1 | ネストされたインディケータネストされたインジケータ | indicatorGroup
| complex | 0..1 | ネストされたインディケータグループネストされたインジケータグループ |
属性作成 <attribute> エントリが<attribute>タグでの定義されています。
例 Code Block |
---|
<attributes>
<attribute code="L_CITY" name="City"/>
<attribute code="L_ID" name="Id"/>
<attribute code="L_NAME" name="Name"/>
<attribute code="L_OFFICE" name="Office"/>
<attribute code="L_PRODUCT" name="Product"/>
<attribute code="L_STATUS" name="Status"/>
</attributes>
|
タグ属性 名 | タイプ | 必須 | 説明 |
---|
code
| string | true | インジケータのコード。 「M_」接頭辞で始まり、データセット内で一意である必要があります。 | name
| string | true | インジケータの名前 |
ネストされたタグ translations
| コンプレックス | 0..1 | 属性の翻訳を囲みます(インディケータの翻訳を参照してください)属性の翻訳を囲みます(インジケータの翻訳を参照してください) | memberTranslations
| コンプレックス | 0..1 | 属性メンバーの翻訳を囲みます | memberSettings
| コンプレックス | 0..1 | 外観のように、属性メンバーの設定を保持します |
翻訳属性を作成 属性の翻訳は、ネストされたタグ<translation> でサポートされていみます。 例 Code Block |
---|
<attributes>
<attribute code="L_CITY" name="City"/>
<translations>
<translation locale="de" value="Translated value"/>
<translation locale="cs" value="Another translated value"/>
</translations>
</attribute>
</attributes>
|
タグ属性 名 | タイプ | 必須 | 説明 |
---|
locale
| string | true | 翻訳のロケール | value
| string | true | 翻訳値 |
メンバーの翻訳を作成 例 Code Block |
---|
<attribute code="L_CITY" name="City">
<memberTranslations>
<memberTranslation memberValue="Prague" locale="cs" value="Praha"/>
<memberTranslation memberValue="Prague" locale="de" value="Prag"/>
</memberTranslations>
</attribute>
|
外観属性の定義 例 Code Block |
---|
<attribute code="L_CITY" name="City">
<memberSettings>
<memberSetting icon="cs" backgroundColor="#c41019" color="#ffffff" memberValue="Prague"/>
</memberSettings>
</attribute>
|
ドリルダウンパスの定義 例 Code Block |
---|
<drilldownPaths>
<pathAttribute code="L_ATTRIBUTE_1">
<pathAttribute code="L_ATTRIBUTE_2"/>
<pathAttribute code="L_ATTRIBUTE_2"/>
</pathAttribute>
</drilldownPaths>
|
|