Commit 4faf3f49034ec4d61d1a2bfb4c1edcc83dc2ec20

Authored by Renato De Donato
1 parent dc870954

datalet.dtd

DEEP.php
... ... @@ -109,6 +109,7 @@ class DEEP {
109 109 $this->app->get('/'.$component->name, function() use($component, $repository_url){
110 110 $response = array(
111 111 "name" => $component->name."",
  112 + "type" => $component->type."",
112 113 "bridge_link" => $repository_url."",
113 114 "component_link" => $component->name."/".$component->name.".html",
114 115 "idm" => $component->idm
... ...
datalets.xml
1 1 <?xml version="1.0" encoding="utf-8"?>
2 2  
3   -<!DOCTYPE handler_configuration SYSTEM "datalets/datalets.dtd" [
4   - <!ENTITY googlePiechart SYSTEM "datalets/googlePiechart.xml">
5   -]>
  3 +<!DOCTYPE handler_configuration SYSTEM "datalets/datalets.dtd">
6 4  
7 5 <handler_configuration>
8 6 <components>
9   -
10   - <!--&googlePiechart;-->
11   -
12   - <component>
13   - <name>datatable-datalet</name>
14   - <attributes>
15   - <attribute>
16   - <name>data-url</name>
17   - </attribute>
18   - <attribute>
19   - <name>fields</name>
20   - </attribute>
21   - </attributes>
22   - <idm>
23   - <inputs>
24   - <input>
25   - <name>Cell</name>
26   - <description>The table cell</description>
27   - <scale>nominal</scale>
28   - <role>domain</role>
29   - <selection>*</selection>
30   - </input>
31   - <layouts>
32   - </layouts>
33   - </inputs>
34   - </idm>
35   - </component>
36   - <component>
  7 + <component>
  8 + <name>datatable-datalet</name>
  9 + <idm>
  10 + <inputs>
  11 + <input>
  12 + <name>Cell</name>
  13 + <description>The table cell..</description>
  14 + <selection>*</selection>
  15 + </input>
  16 + <layouts>
  17 + </layouts>
  18 + </inputs>
  19 + </idm>
  20 + </component>
  21 + <component>
37 22 <name>barchart-datalet</name>
38   - <attributes>
39   - <attribute>
40   - <name>data-url</name>
41   - </attribute>
42   - <attribute>
43   - <name>fields</name>
44   - </attribute>
45   - </attributes>
  23 + <type>base</type>
46 24 <idm>
47 25 <inputs>
48 26 <input>
49 27 <name>Categories</name>
50 28 <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description>
51   - <scale>nominal</scale>
52   - <role>domain</role>
53   - <selection>11</selection>
54 29 </input>
55 30 <input>
56 31 <name>Series</name>
57 32 <description>The chart series. Its values will be put in the vertical axis.</description>
58   - <scale>nominal</scale>
59   - <role>domain</role>
60   - <selection>11</selection>
61 33 </input>
62 34 <layouts>
63 35 <input>
... ... @@ -78,29 +50,16 @@
78 50 </component>
79 51 <component>
80 52 <name>columnchart-datalet</name>
81   - <attributes>
82   - <attribute>
83   - <name>data-url</name>
84   - </attribute>
85   - <attribute>
86   - <name>fields</name>
87   - </attribute>
88   - </attributes>
  53 + <type>base</type>
89 54 <idm>
90 55 <inputs>
91 56 <input>
92 57 <name>Categories</name>
93 58 <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description>
94   - <scale>nominal</scale>
95   - <role>domain</role>
96   - <selection>11</selection>
97 59 </input>
98 60 <input>
99 61 <name>Series</name>
100 62 <description>The chart series. Its values will be put in the vertical axis.</description>
101   - <scale>nominal</scale>
102   - <role>domain</role>
103   - <selection>11</selection>
104 63 </input>
105 64 <layouts>
106 65 <input>
... ... @@ -121,29 +80,16 @@
121 80 </component>
122 81 <component>
123 82 <name>linechart-datalet</name>
124   - <attributes>
125   - <attribute>
126   - <name>data-url</name>
127   - </attribute>
128   - <attribute>
129   - <name>fields</name>
130   - </attribute>
131   - </attributes>
  83 + <type>base</type>
132 84 <idm>
133 85 <inputs>
134 86 <input>
135 87 <name>Categories</name>
136 88 <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description>
137   - <scale>nominal</scale>
138   - <role>domain</role>
139   - <selection>11</selection>
140 89 </input>
141 90 <input>
142 91 <name>Series</name>
143 92 <description>The chart series. Its values will be put in the vertical axis.</description>
144   - <scale>nominal</scale>
145   - <role>domain</role>
146   - <selection>11</selection>
147 93 </input>
148 94 <layouts>
149 95 <input>
... ... @@ -164,29 +110,18 @@
164 110 </component>
165 111 <component>
166 112 <name>column3Dchart-datalet</name>
167   - <attributes>
168   - <attribute>
169   - <name>data-url</name>
170   - </attribute>
171   - <attribute>
172   - <name>fields</name>
173   - </attribute>
174   - </attributes>
  113 + <type>base</type>
175 114 <idm>
176 115 <inputs>
177 116 <input>
178 117 <name>Categories</name>
179   - <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description>
180   - <scale>nominal</scale>
181   - <role>domain</role>
182   - <selection>11</selection>
  118 + <description>The chart categories. Its values will be put in the horizontal axis. You need one
  119 + value for each series.
  120 + </description>
183 121 </input>
184 122 <input>
185 123 <name>Series</name>
186 124 <description>The chart series. Its values will be put in the vertical axis.</description>
187   - <scale>nominal</scale>
188   - <role>domain</role>
189   - <selection>11</selection>
190 125 </input>
191 126 <layouts>
192 127 <input>
... ... @@ -207,29 +142,16 @@
207 142 </component>
208 143 <component>
209 144 <name>areachart-datalet</name>
210   - <attributes>
211   - <attribute>
212   - <name>data-url</name>
213   - </attribute>
214   - <attribute>
215   - <name>fields</name>
216   - </attribute>
217   - </attributes>
  145 + <type>base</type>
218 146 <idm>
219 147 <inputs>
220 148 <input>
221 149 <name>Categories</name>
222 150 <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description>
223   - <scale>nominal</scale>
224   - <role>domain</role>
225   - <selection>11</selection>
226 151 </input>
227 152 <input>
228 153 <name>Series</name>
229 154 <description>The chart series. Its values will be put in the vertical axis.</description>
230   - <scale>nominal</scale>
231   - <role>domain</role>
232   - <selection>11</selection>
233 155 </input>
234 156 <layouts>
235 157 <input>
... ... @@ -250,43 +172,23 @@
250 172 </component>
251 173 <component>
252 174 <name>bubble3d-datalet</name>
253   - <attributes>
254   - <attribute>
255   - <name>data-url</name>
256   - </attribute>
257   - <attribute>
258   - <name>fields</name>
259   - </attribute>
260   - </attributes>
261 175 <idm>
262 176 <inputs>
263 177 <input>
264 178 <name>Categories</name>
265 179 <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description>
266   - <scale>nominal</scale>
267   - <role>domain</role>
268   - <selection>11</selection>
269 180 </input>
270 181 <input>
271 182 <name>Y values</name>
272 183 <description>The chart plots y values. Its values will be put in the vertical axis.</description>
273   - <scale>nominal</scale>
274   - <role>domain</role>
275   - <selection>11</selection>
276 184 </input>
277 185 <input>
278 186 <name>Z values</name>
279 187 <description>The chart plots z value. Its values represent the size of the bubble.</description>
280   - <scale>nominal</scale>
281   - <role>domain</role>
282   - <selection>11</selection>
283 188 </input>
284 189 <input>
285 190 <name>Series</name>
286 191 <description>The chart series. Its values visualize multi- series bubbles chart.</description>
287   - <scale>nominal</scale>
288   - <role>domain</role>
289   - <selection>11</selection>
290 192 </input>
291 193 <layouts>
292 194 <input>
... ... @@ -311,29 +213,16 @@
311 213 </component>
312 214 <component>
313 215 <name>donutpie3dchart-datalet</name>
314   - <attributes>
315   - <attribute>
316   - <name>data-url</name>
317   - </attribute>
318   - <attribute>
319   - <name>fields</name>
320   - </attribute>
321   - </attributes>
  216 + <type>pie</type>
322 217 <idm>
323 218 <inputs>
324 219 <input>
325 220 <name>Series</name>
326   - <description>The chart series. Its values will be put on slice of each series.</description>
327   - <scale>nominal</scale>
328   - <role>domain</role>
329   - <selection>11</selection>
  221 + <description>The chart series. Its values will be put on slice of each series.</description>
330 222 </input>
331 223 <input>
332 224 <name>Size</name>
333 225 <description>The size for each series to create a concentric rings</description>
334   - <scale>nominal</scale>
335   - <role>domain</role>
336   - <selection>11</selection>
337 226 </input>
338 227 <layouts>
339 228 </layouts>
... ... @@ -342,29 +231,16 @@
342 231 </component>
343 232 <component>
344 233 <name>piechart-datalet</name>
345   - <attributes>
346   - <attribute>
347   - <name>data-url</name>
348   - </attribute>
349   - <attribute>
350   - <name>fields</name>
351   - </attribute>
352   - </attributes>
  234 + <type>pie</type>
353 235 <idm>
354 236 <inputs>
355 237 <input>
356 238 <name>Series</name>
357   - <description>The chart series. Its values will be put on slice of each series.</description>
358   - <scale>nominal</scale>
359   - <role>domain</role>
360   - <selection>11</selection>
  239 + <description>The chart series. Its values will be put on slice of each series.</description>
361 240 </input>
362 241 <input>
363   - <name>Size </name>
  242 + <name>Size</name>
364 243 <description>The size for each series to create a concentric rings</description>
365   - <scale>nominal</scale>
366   - <role>domain</role>
367   - <selection>11</selection>
368 244 </input>
369 245 <layouts>
370 246 </layouts>
... ... @@ -373,21 +249,11 @@
373 249 </component>
374 250 <component>
375 251 <name>treemap-datalet</name>
376   - <attributes>
377   - <attribute>
378   - <name>data-url</name>
379   - </attribute>
380   - <attribute>
381   - <name>fields</name>
382   - </attribute>
383   - </attributes>
384 252 <idm>
385 253 <inputs>
386 254 <input>
387 255 <name>Level</name>
388 256 <description>It is the level field that the datalet will use to group the values at corrisponding field number level.</description>
389   - <scale>nominal</scale>
390   - <role>domain</role>
391 257 <selection>*</selection>
392 258 </input>
393 259 <layouts>
... ... @@ -395,38 +261,21 @@
395 261 </inputs>
396 262 </idm>
397 263 </component>
398   - <component>
399   - <name>leafletjs-datalet</name>
400   - <attributes>
401   - <attribute>
402   - <name>data-url</name>
403   - </attribute>
404   - <attribute>
405   - <name>fields</name>
406   - </attribute>
407   - </attributes>
  264 + <component>
  265 + <name>leafletjs-datalet</name>
408 266 <idm>
409 267 <inputs>
410 268 <input>
411 269 <name>Latitude</name>
412 270 <description>It is latitude of the points you want to show in the map.</description>
413   - <scale>nominal</scale>
414   - <role>domain</role>
415   - <selection>11</selection>
416 271 </input>
417 272 <input>
418 273 <name>Longitude</name>
419 274 <description>It is longitude of the points you want to show in the map.</description>
420   - <scale>nominal</scale>
421   - <role>domain</role>
422   - <selection>11</selection>
423 275 </input>
424 276 <input>
425 277 <name>Balloon content</name>
426 278 <description>It is the text associated to the marker or the link to the image related to the camera associated to each points.</description>
427   - <scale>nominal</scale>
428   - <role>domain</role>
429   - <selection>11</selection>
430 279 </input>
431 280 <layouts>
432 281 </layouts>
... ...
datalets/datalets.dtd
1 1 <!ELEMENT handler_configuration (components)>
2 2 <!ELEMENT components (component*)>
3   -<!ELEMENT component (name, attributes, idm)>
4   -<!ELEMENT attributes (attribute*)>
5   -<!ELEMENT attribute (name)>
  3 +<!ELEMENT component (name, type?, idm)>
  4 +<!--<!ELEMENT component (name, attributes, idm)>-->
  5 +<!--<!ELEMENT attributes (attribute*)>-->
  6 +<!--<!ELEMENT attribute (name)>-->
6 7 <!ELEMENT idm (inputs*)>
7 8 <!ELEMENT inputs (input*, layouts)>
8 9 <!ELEMENT layouts (input*)>
... ...