Mondrain Schema Basic Elements
< Schema > is the topmost element, mondrian version 4.0 and above must be added, metamodelVersion = '4.0' attribute
Physical elements
< PhysicalSchema > is used to define the physical table used in the model, which can contain the following
< Table > uses a table directly
< Query > Use the result set of the query, which can be obtained from multiple tables
< InlineTable > inline table
< Link > connects two tables
< ExpressionView > SQL expression collection
< Column > A column associated with the SQL expression
< SQL > The SQL dialect expression for a particular database.
The top-level element of the < Rows > row
< Row > inlineTable The row of the dataset of the inline table
< Value > inlineTable The value of one column of the dataset in the inline table
Logical elements
< Cube > The primary business view for analysis, a cube is a collection of dimensions and measures.
< Dimensions > A collection of dimensions
< Dimension > dimension definition
Data items in the < Attribute > dimension
< Hierarchy > Hierarchy element
<Levels>
< Level > Level
< Key > This is the primary key of one or more columns of attributes, which can uniquely determine an attribute
< Name > This is an attribute name
The title of the < Caption > attribute
< OrderBy > column of members of the "property" used for ordering
< Property > Member's property The definition is for a hierarchy or level, but the property will be available to all members.
< MeasureGroups > Metric group collection
< MeasureGroup > metrics stored in fact table
<Measures>
<Measure>
< DimensionLinks > is used to define an association between MeasureGroups and Dimensions
< ForeignKeyLink > defines a foreign key, using a field in the fact table
<FactLink>
<CopyLink>
<NoLink>
< CalculatedMembers > Calculated members
< NamedSet > has a set of values returned by MDX as a dataset
< Closure > Map the hierarchical parent-child relationship to a table
Access control
< Role > an access control profile
< SchemaGrant > Schema permissions
< CubeGrant > Cube permissions
< HierarchyGrant > Hierarchy Permissions
< Union > A combination of a set of permissions
Extensions
< UserDefinedFunction > User Defined Function
< Script > Implement user-defined functions through scripting
Miscellaneous
< Annotation > User-defined attributes associated with a metadata
< CalculatedMemberProperty > Calculated member property
<Formula>
< MeasureExpression > Calculates measures by sql expressions