File:Opasnet base connection.ANA

From Testiwiki
Revision as of 20:09, 28 August 2009 by Jouni (talk | contribs) (Development needs)
Jump to: navigation, search
Opasnet_base_connection.ANA(file size: 80 KB, MIME type: application/xml)
Warning: This file type may contain malicious code. By executing it, your system may be compromised.


This model is an interface for uploading data to and downloading it from the Opasnet base. This file is an editable version of a web interface. For using the file, you need Analytica Enterprise. For using the web interface, you only need a web browser (Mozilla Firefox recommended).

An improved web interface

There is also a web interface for downloading only; this interface produces raw data tables that you can copy-paste to an external software. However, some pieces of data are very large, and you may experience downloading the data, or handling the data afterwards. Therefore, there is a need to improve the interface. The improvement needs are described in this chapter.

The data is stored into the Opasnet base as two-dimensional tables, one for each data object (data objects can be either studies or variables. For details, see the description of the database structure. For example, the data called Morbidity data for Europe consists of a table that is indexed by four indices: Year, Sex, Age, and Country. Indices define the specifics of a particular observation. In addition, there is one parameter (morbidity), which is the field that contains the observations (values of interest).

Often, the user is only interested in a part of the data, e.g. one year of observation, one country, and maybe a few age groups. So, there should be an interface that shows the data in the Opasnet in a few steps, when a user selects a data object.

  1. The user is shown the list of uploads (versions) of the data object. The default is the newest upload, but the user should be able to choose an older one as well. This is based on the query that is shown on the metadata box as "List of uploads".
  2. The user is shown the list of indices and locations (possible values). The user can choose any combination of locations with tick boxes beside each location.
  3. The user is shown a two-dimensional table of data with indices and parameters as fields, and observations as rows. This can then be copy-pasted to other programs. Alternatively, a comma separated file (CSV) is created and a Save as dialog box appears. Now the "The newest upload" link does something like this but does not allow for selecting locations, and the output format is not optimal for copy-pasting data into another software.
  4. In cases where the data is given as distributions instead of point estimates, the data can also be downloaded as a sample file of distributions.

Development needs

  • Now the model interprets the results as numbers if applicable, otherwise text.
  • Analytica_node creates an indexname list where local indices start with dot (.Index). The dot should be removed, because in the Opasnet Base there are no local indices.
  • Upload the read functions. The indices should have the real names from the Opasnet Base, not just In1, In2 and so on.
  • The queries for read functions should be the same queries as in [[Template:Resultlink]].
  • The read functions don't work properly. They don't show Testvariable data uploaded 28.8.2009 for some reason.
  • The first read function should show data in 2D format; only the next function should turn it into an array. This is because not all data has originally been arrays and would result in hugely multidimensional arrays with a lot of empty cells.

See also

File history

Click on a date/time to view the file as it appeared at that time.

(newest | oldest) View ( | ) (10 | 20 | 50 | 100 | 250 | 500)
Date/TimeDimensionsUserComment
05:40, 31 March 2009 (762 KB)Jouni (talk | contribs)An intermediate version that combines the two input formats: Analytica model and data table. Works for Analytica model, but a lot to clean still.
11:58, 27 March 2009 (745 KB)Jouni (talk | contribs)European morbidity data included as an example of data formatting.
12:26, 25 March 2009 (322 KB)Jouni (talk | contribs)New part added for uploading data tables. Now this works, but the model uploading (with several variables) is not updated. This version requires a password and it only works from within THL.
06:02, 7 January 2009 (154 KB)Jouni (talk | contribs)The model passed all functionality tests. Now it is ready for test use. Farmed salmon model was removed from the file.
07:05, 6 January 2009 (291 KB)Jouni (talk | contribs)Now the Reader works beautifully and it is simple. But there is still some strange problems with Write buttons. Otherwise this is almost ready for production use.
13:51, 31 December 2008 (259 KB)Jouni (talk | contribs)I looked at the reader but it does not work yet. In addition, some functions seem extremely complex. It cannot be that difficult.
06:34, 31 December 2008 (345 KB)Jouni (talk | contribs)Finally it works! Problems with Sample1 were corrected, and now memory demand is much lower. Now it should be tested well and documented. Update Read part.
22:14, 30 December 2008 (364 KB)Jouni (talk | contribs)Now it should work except something strange with Sample1. Also, sampling does not result in a real sample but a series of mid values.
18:15, 30 December 2008 (361 KB)Jouni (talk | contribs)I realised that tables Loc and Roww should be merged and locations should be organised by index, not by dimension. After this version, I'll change the model accordingly.
14:40, 29 December 2008 (353 KB)Jouni (talk | contribs)Some progress done but not finished yet. I drew a graph to show dependencies between tables. The buttons are now updated and the first ones work. Still some problems with Write_item and Write_sam. A new write table created: Sample1. When this works, there
(newest | oldest) View ( | ) (10 | 20 | 50 | 100 | 250 | 500)
  • You cannot overwrite this file.

The following 3 pages link to this file: