Commit 4faf3f49034ec4d61d1a2bfb4c1edcc83dc2ec20
1 parent
dc870954
datalet.dtd
Showing
3 changed files
with
36 additions
and
185 deletions
DEEP.php
| @@ -109,6 +109,7 @@ class DEEP { | @@ -109,6 +109,7 @@ class DEEP { | ||
| 109 | $this->app->get('/'.$component->name, function() use($component, $repository_url){ | 109 | $this->app->get('/'.$component->name, function() use($component, $repository_url){ |
| 110 | $response = array( | 110 | $response = array( |
| 111 | "name" => $component->name."", | 111 | "name" => $component->name."", |
| 112 | + "type" => $component->type."", | ||
| 112 | "bridge_link" => $repository_url."", | 113 | "bridge_link" => $repository_url."", |
| 113 | "component_link" => $component->name."/".$component->name.".html", | 114 | "component_link" => $component->name."/".$component->name.".html", |
| 114 | "idm" => $component->idm | 115 | "idm" => $component->idm |
datalets.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 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 | <handler_configuration> | 5 | <handler_configuration> |
| 8 | <components> | 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 | <name>barchart-datalet</name> | 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 | <idm> | 24 | <idm> |
| 47 | <inputs> | 25 | <inputs> |
| 48 | <input> | 26 | <input> |
| 49 | <name>Categories</name> | 27 | <name>Categories</name> |
| 50 | <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description> | 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 | </input> | 29 | </input> |
| 55 | <input> | 30 | <input> |
| 56 | <name>Series</name> | 31 | <name>Series</name> |
| 57 | <description>The chart series. Its values will be put in the vertical axis.</description> | 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 | </input> | 33 | </input> |
| 62 | <layouts> | 34 | <layouts> |
| 63 | <input> | 35 | <input> |
| @@ -78,29 +50,16 @@ | @@ -78,29 +50,16 @@ | ||
| 78 | </component> | 50 | </component> |
| 79 | <component> | 51 | <component> |
| 80 | <name>columnchart-datalet</name> | 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 | <idm> | 54 | <idm> |
| 90 | <inputs> | 55 | <inputs> |
| 91 | <input> | 56 | <input> |
| 92 | <name>Categories</name> | 57 | <name>Categories</name> |
| 93 | <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description> | 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 | </input> | 59 | </input> |
| 98 | <input> | 60 | <input> |
| 99 | <name>Series</name> | 61 | <name>Series</name> |
| 100 | <description>The chart series. Its values will be put in the vertical axis.</description> | 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 | </input> | 63 | </input> |
| 105 | <layouts> | 64 | <layouts> |
| 106 | <input> | 65 | <input> |
| @@ -121,29 +80,16 @@ | @@ -121,29 +80,16 @@ | ||
| 121 | </component> | 80 | </component> |
| 122 | <component> | 81 | <component> |
| 123 | <name>linechart-datalet</name> | 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 | <idm> | 84 | <idm> |
| 133 | <inputs> | 85 | <inputs> |
| 134 | <input> | 86 | <input> |
| 135 | <name>Categories</name> | 87 | <name>Categories</name> |
| 136 | <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description> | 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 | </input> | 89 | </input> |
| 141 | <input> | 90 | <input> |
| 142 | <name>Series</name> | 91 | <name>Series</name> |
| 143 | <description>The chart series. Its values will be put in the vertical axis.</description> | 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 | </input> | 93 | </input> |
| 148 | <layouts> | 94 | <layouts> |
| 149 | <input> | 95 | <input> |
| @@ -164,29 +110,18 @@ | @@ -164,29 +110,18 @@ | ||
| 164 | </component> | 110 | </component> |
| 165 | <component> | 111 | <component> |
| 166 | <name>column3Dchart-datalet</name> | 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 | <idm> | 114 | <idm> |
| 176 | <inputs> | 115 | <inputs> |
| 177 | <input> | 116 | <input> |
| 178 | <name>Categories</name> | 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 | </input> | 121 | </input> |
| 184 | <input> | 122 | <input> |
| 185 | <name>Series</name> | 123 | <name>Series</name> |
| 186 | <description>The chart series. Its values will be put in the vertical axis.</description> | 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 | </input> | 125 | </input> |
| 191 | <layouts> | 126 | <layouts> |
| 192 | <input> | 127 | <input> |
| @@ -207,29 +142,16 @@ | @@ -207,29 +142,16 @@ | ||
| 207 | </component> | 142 | </component> |
| 208 | <component> | 143 | <component> |
| 209 | <name>areachart-datalet</name> | 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 | <idm> | 146 | <idm> |
| 219 | <inputs> | 147 | <inputs> |
| 220 | <input> | 148 | <input> |
| 221 | <name>Categories</name> | 149 | <name>Categories</name> |
| 222 | <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description> | 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 | </input> | 151 | </input> |
| 227 | <input> | 152 | <input> |
| 228 | <name>Series</name> | 153 | <name>Series</name> |
| 229 | <description>The chart series. Its values will be put in the vertical axis.</description> | 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 | </input> | 155 | </input> |
| 234 | <layouts> | 156 | <layouts> |
| 235 | <input> | 157 | <input> |
| @@ -250,43 +172,23 @@ | @@ -250,43 +172,23 @@ | ||
| 250 | </component> | 172 | </component> |
| 251 | <component> | 173 | <component> |
| 252 | <name>bubble3d-datalet</name> | 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 | <idm> | 175 | <idm> |
| 262 | <inputs> | 176 | <inputs> |
| 263 | <input> | 177 | <input> |
| 264 | <name>Categories</name> | 178 | <name>Categories</name> |
| 265 | <description>The chart categories. Its values will be put in the horizontal axis. You need one value for each series.</description> | 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 | </input> | 180 | </input> |
| 270 | <input> | 181 | <input> |
| 271 | <name>Y values</name> | 182 | <name>Y values</name> |
| 272 | <description>The chart plots y values. Its values will be put in the vertical axis.</description> | 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 | </input> | 184 | </input> |
| 277 | <input> | 185 | <input> |
| 278 | <name>Z values</name> | 186 | <name>Z values</name> |
| 279 | <description>The chart plots z value. Its values represent the size of the bubble.</description> | 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 | </input> | 188 | </input> |
| 284 | <input> | 189 | <input> |
| 285 | <name>Series</name> | 190 | <name>Series</name> |
| 286 | <description>The chart series. Its values visualize multi- series bubbles chart.</description> | 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 | </input> | 192 | </input> |
| 291 | <layouts> | 193 | <layouts> |
| 292 | <input> | 194 | <input> |
| @@ -311,29 +213,16 @@ | @@ -311,29 +213,16 @@ | ||
| 311 | </component> | 213 | </component> |
| 312 | <component> | 214 | <component> |
| 313 | <name>donutpie3dchart-datalet</name> | 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 | <idm> | 217 | <idm> |
| 323 | <inputs> | 218 | <inputs> |
| 324 | <input> | 219 | <input> |
| 325 | <name>Series</name> | 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 | </input> | 222 | </input> |
| 331 | <input> | 223 | <input> |
| 332 | <name>Size</name> | 224 | <name>Size</name> |
| 333 | <description>The size for each series to create a concentric rings</description> | 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 | </input> | 226 | </input> |
| 338 | <layouts> | 227 | <layouts> |
| 339 | </layouts> | 228 | </layouts> |
| @@ -342,29 +231,16 @@ | @@ -342,29 +231,16 @@ | ||
| 342 | </component> | 231 | </component> |
| 343 | <component> | 232 | <component> |
| 344 | <name>piechart-datalet</name> | 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 | <idm> | 235 | <idm> |
| 354 | <inputs> | 236 | <inputs> |
| 355 | <input> | 237 | <input> |
| 356 | <name>Series</name> | 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 | </input> | 240 | </input> |
| 362 | <input> | 241 | <input> |
| 363 | - <name>Size </name> | 242 | + <name>Size</name> |
| 364 | <description>The size for each series to create a concentric rings</description> | 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 | </input> | 244 | </input> |
| 369 | <layouts> | 245 | <layouts> |
| 370 | </layouts> | 246 | </layouts> |
| @@ -373,21 +249,11 @@ | @@ -373,21 +249,11 @@ | ||
| 373 | </component> | 249 | </component> |
| 374 | <component> | 250 | <component> |
| 375 | <name>treemap-datalet</name> | 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 | <idm> | 252 | <idm> |
| 385 | <inputs> | 253 | <inputs> |
| 386 | <input> | 254 | <input> |
| 387 | <name>Level</name> | 255 | <name>Level</name> |
| 388 | <description>It is the level field that the datalet will use to group the values at corrisponding field number level.</description> | 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 | <selection>*</selection> | 257 | <selection>*</selection> |
| 392 | </input> | 258 | </input> |
| 393 | <layouts> | 259 | <layouts> |
| @@ -395,38 +261,21 @@ | @@ -395,38 +261,21 @@ | ||
| 395 | </inputs> | 261 | </inputs> |
| 396 | </idm> | 262 | </idm> |
| 397 | </component> | 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 | <idm> | 266 | <idm> |
| 409 | <inputs> | 267 | <inputs> |
| 410 | <input> | 268 | <input> |
| 411 | <name>Latitude</name> | 269 | <name>Latitude</name> |
| 412 | <description>It is latitude of the points you want to show in the map.</description> | 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 | </input> | 271 | </input> |
| 417 | <input> | 272 | <input> |
| 418 | <name>Longitude</name> | 273 | <name>Longitude</name> |
| 419 | <description>It is longitude of the points you want to show in the map.</description> | 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 | </input> | 275 | </input> |
| 424 | <input> | 276 | <input> |
| 425 | <name>Balloon content</name> | 277 | <name>Balloon content</name> |
| 426 | <description>It is the text associated to the marker or the link to the image related to the camera associated to each points.</description> | 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 | </input> | 279 | </input> |
| 431 | <layouts> | 280 | <layouts> |
| 432 | </layouts> | 281 | </layouts> |
datalets/datalets.dtd
| 1 | <!ELEMENT handler_configuration (components)> | 1 | <!ELEMENT handler_configuration (components)> |
| 2 | <!ELEMENT components (component*)> | 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 | <!ELEMENT idm (inputs*)> | 7 | <!ELEMENT idm (inputs*)> |
| 7 | <!ELEMENT inputs (input*, layouts)> | 8 | <!ELEMENT inputs (input*, layouts)> |
| 8 | <!ELEMENT layouts (input*)> | 9 | <!ELEMENT layouts (input*)> |