/
aortafunctions.xsd
174 lines (172 loc) · 8.51 KB
/
aortafunctions.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema xmlns:chirpfunctions="http://www.eclipse.org/chirpfunctions" xmlns:column_structured_data="http://www.eclipse.org/column_structured_data" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:module_management="http://www.eclipse.org/module_management" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ecore:nsPrefix="chirpfunctions" ecore:package="org.eclipse.efbt.chirp.chirpfunctions" targetNamespace="http://www.eclipse.org/chirpfunctions">
<xsd:import namespace="http://www.eclipse.org/module_management" schemaLocation="module_management.xsd"/>
<xsd:import namespace="http://www.eclipse.org/column_structured_data" schemaLocation="column_structured_data.xsd"/>
<xsd:import namespace="http://www.eclipse.org/emf/2002/Ecore" schemaLocation="Ecore.xsd"/>
<xsd:annotation>
<xsd:documentation>TheFunctions pckage cotain information about functions and their specifications.
Functions ae used in DataSetTransformations such as the ones for TRL and VTL.
Functions are also used in AttributeLineageModels an in SpreadsheetLineageModels.
</xsd:documentation>
</xsd:annotation>
<xsd:annotation>
<xsd:appinfo ecore:key="license" source="license">Copyright (c) 2020 Bird Software Solutions Ltd
All rights reserved. This file and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html
SPDX-License-Identifier: EPL-2.0
Contributors:
Neil Mackenzie - initial API and implementation </xsd:appinfo>
</xsd:annotation>
<xsd:complexType name="AggregateFunction">
<xsd:annotation>
<xsd:documentation>A function which is responsible for aggregating values from multiple rows in the same source cube</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="chirpfunctions:Function">
<xsd:attribute ecore:reference="chirpfunctions:AggregateFunctionSpec" name="functionSpec" type="xsd:anyURI">
<xsd:annotation>
<xsd:documentation>The function specification</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="AggregateFunctionSpec">
<xsd:annotation>
<xsd:documentation>A Function Specification for an AggregateFunction</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="chirpfunctions:FunctionSpec"/>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="BasicFunction">
<xsd:annotation>
<xsd:documentation>A function which is not responsible for aggregating values from multiple rows in the same source cube</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="chirpfunctions:Function">
<xsd:attribute ecore:reference="chirpfunctions:BasicFunctionSpec" name="functionSpec" type="xsd:anyURI">
<xsd:annotation>
<xsd:documentation>The function specification</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="BasicFunctionSpec">
<xsd:annotation>
<xsd:documentation>A Function Specification for a Basic Function (as opposed to an AggregateFunction)</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="chirpfunctions:FunctionSpec">
<xsd:attribute ecore:unsettable="false" name="isInfix" type="ecore:EBoolean">
<xsd:annotation>
<xsd:documentation>true if the function is to be displayed in an infix fashion (like - or + functions)</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="BooleanFunction">
<xsd:annotation>
<xsd:documentation>A Function which returns a boolean result.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="chirpfunctions:BasicFunction"/>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="CellsParameter">
<xsd:annotation>
<xsd:documentation>For SpreadsheetLineageModels, we use Functions which will have Cell parameters as opposed to Cube column Parameters.
This is because we want to show the traceability of cells. </xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="chirpfunctions:Parameter">
<xsd:attribute ecore:reference="column_structured_data:Cell" name="cells" type="xsd:anyURI">
<xsd:annotation>
<xsd:documentation>The cell</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Function">
<xsd:annotation>
<xsd:documentation>A Function represents a function that takes parameters and returns a result.
The parameters of a function may be other functions also. </xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="chirpfunctions:Parameter">
<xsd:sequence>
<xsd:element ecore:resolveProxies="true" maxOccurs="unbounded" minOccurs="0" name="parameters" type="chirpfunctions:Parameter">
<xsd:annotation>
<xsd:documentation>The parameters of the function</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute ecore:id="true" name="name" type="ecore:EString">
<xsd:annotation>
<xsd:documentation>The name of the Parameter</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="FunctionSpec">
<xsd:annotation>
<xsd:documentation>A Function Specification</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element ecore:resolveProxies="true" maxOccurs="unbounded" minOccurs="0" name="parameterSpecs" type="chirpfunctions:ParamaterSpec">
<xsd:annotation>
<xsd:documentation>The parameter spec of the function</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="functionalName" type="ecore:EString">
<xsd:annotation>
<xsd:documentation>If the function spec represents a common function in a functional language like +, then this field holds that name.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute ecore:id="true" name="name" type="ecore:EString">
<xsd:annotation>
<xsd:documentation>The unique name of the function spec. </xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="sqlName" type="ecore:EString">
<xsd:annotation>
<xsd:documentation>If the function spec represents a common SQL function like SUM, then this field holds that name </xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="FunctionSpecModule">
<xsd:annotation>
<xsd:documentation>A Module made up of a list of FunctionSpecs </xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="module_management:Module">
<xsd:sequence>
<xsd:element ecore:resolveProxies="true" maxOccurs="unbounded" minOccurs="0" name="functionSpecs" type="chirpfunctions:FunctionSpec">
<xsd:annotation>
<xsd:documentation>The set of FunctionSpecs contained in the Module</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ParamaterSpec">
<xsd:annotation>
<xsd:documentation>A Specification of the parameters required by a function</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="name" type="ecore:EString">
<xsd:annotation>
<xsd:documentation>A name for the parameter specification</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="Parameter">
<xsd:annotation>
<xsd:documentation>A Parameter</xsd:documentation>
</xsd:annotation>
</xsd:complexType>
</xsd:schema>