Difference between revisions of "File:Opasnet base connection.ANA"

From Testiwiki
Jump to: navigation, search
(uploaded a new version of "Image:Opasnet base connection.ANA": Small changes with Res and Resinfo)
(technical edits)
 
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
[[Category:Opasnet]]
 +
[[Category:Opasnet Base]]
 
[[Category:Analytica tool]]
 
[[Category:Analytica tool]]
 
[[Category:SQL tool]]
 
[[Category:SQL tool]]
 
[[Category:Open assessment]]
 
[[Category:Open assessment]]
{{tool}}
+
{{tool|moderator=Jouni}}
This model is an interface for uploading data to and downloading it from the [[Opasnet base]]. This file is an editable version of a [http://www.analyticaonline.com/24a/Client/AwpClient.aspx?inviteId=invite58&inviteCode=61143 web interface]. For using the file, you need [[Analytica]] Enterprise. For using the web interface, you only need a web browser (Mozilla Firefox recommended).  
+
''This page relates to old versions of [[Opasnet Base (2008-2011)]] and its connections. For the current database version, see [[Opasnet Base]].
  
==An improved web interface==
+
This model is an interface for uploading data to and downloading it from the [[Opasnet Base]]. For using the file, you need [[Analytica]] Enterprise.
  
There is also a [http://base.opasnet.org 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.
+
[[Uploading to Opasnet Base]] helps you understand what data could and should be updated to [[Opasnet Base]] and what the recommended data structures and formats are. For technical instructions how to use the current upload software, see [[Opasnet Base connection]]. For a general description about the database, see [[Opasnet Base]] and for technical details about the database, see [[Opasnet Base structure]]. For details about downloading data, see [[Opasnet Base UI]].
  
The data is stored into the [[Opasnet base]] as two-dimensional tables, one for each data object (data objects can be either [[study|studies]] or [[variable]]s. For details, see the [[Opasnet Base structure|description of the database structure]].  For example, the data called [[Morbidity data for Europe]] consists of a table that is indexed by four [[index|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).
+
'''Some key parts of OBC explained
  
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.
+
; Findid: This function gets an id from a table. It has the following parameters: '''in''': the property for which the id is needed. In MUST be unique in cond and it must contain index i. '''table''': the table from where the id is brought. The table MUST have .j as the column index, .i as the row index, and a column named 'id'. '''cond''': the name of the field that is compared with in. Cond must be text.
# 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".
 
# 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.
 
# 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.
 
# 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==
+
;Textify: Changes a number to a text value with up to 15 significant numbers. This bypasses the number formatting problem that tends to convert e.g. 93341 to '93.34K'. If the input is null, the result is ''.
 
 
* Evaluate function in Data_table converts all text values to null, which is not good. Instead, it should be asked somewhere whether the content is text, number, or either one.
 
  
 
==See also==
 
==See also==
  
 +
* [[Opasnet Base Connection for R]]
 +
* [[Opasnet Base]]
 +
* [[Opasnet Base structure]]
 +
* [[Uploading to Opasnet Base]]
 +
* [[Opasnet Base UI]]
 
* Previous version [[:image:RDB connection.ANA]] and [[:image:RDB reader.ANA]] were only for either reading or writing data.
 
* Previous version [[:image:RDB connection.ANA]] and [[:image:RDB reader.ANA]] were only for either reading or writing data.
 +
[[Category:Opasnet Base]]
 +
* [http://cs.stanford.edu/people/thathoo/rmysql.pdf Guidance document for RMySQL] (the MySQL database connection for [[R]] software.

Latest revision as of 19:01, 10 April 2015


This page relates to old versions of Opasnet Base (2008-2011) and its connections. For the current database version, see Opasnet Base.

This model is an interface for uploading data to and downloading it from the Opasnet Base. For using the file, you need Analytica Enterprise.

Uploading to Opasnet Base helps you understand what data could and should be updated to Opasnet Base and what the recommended data structures and formats are. For technical instructions how to use the current upload software, see Opasnet Base connection. For a general description about the database, see Opasnet Base and for technical details about the database, see Opasnet Base structure. For details about downloading data, see Opasnet Base UI.

Some key parts of OBC explained

Findid
This function gets an id from a table. It has the following parameters: in: the property for which the id is needed. In MUST be unique in cond and it must contain index i. table: the table from where the id is brought. The table MUST have .j as the column index, .i as the row index, and a column named 'id'. cond: the name of the field that is compared with in. Cond must be text.
Textify
Changes a number to a text value with up to 15 significant numbers. This bypasses the number formatting problem that tends to convert e.g. 93341 to '93.34K'. If the input is null, the result is .

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
21:07, 9 February 2010 (185 KB)Jouni (talk | contribs)Data tables streamlined. A few bugs and temporary solutions corrected.
04:57, 4 February 2010 (96 KB)Jouni (talk | contribs)Formatting of the form improved. Old nodes deleted. No changes in actual computation.
12:00, 13 January 2010 (195 KB)Jouni (talk | contribs){Outdated code} from within code removed. A bug in reader part removed. Act_id index added to reader so that all actions within a series are explicitly shown.
09:30, 13 January 2010 (196 KB)Jouni (talk | contribs)Several bugs corrected. Now seems to work OK. In addition, act.series_id moved to actobj.series_id because it is object-specific.
14:39, 12 January 2010 (196 KB)Jouni (talk | contribs)The complete model was updated to reflect the updated Opasnet Base structure (with act and actobj, and without objinfo etc). Reading from the Base works fine, also uploading mostly but some untracked errors occur. The user sees little change.
12:44, 19 October 2009 (55 KB)Jouni (talk | contribs)A few bugs corrected. Tested the connection and it works. Still need to think about the usage of Object_info/Method cell, and Data_table/Obs column. Note! This is a zip file.
16:34, 17 October 2009 (55 KB)Jouni (talk | contribs)Copy-paste data table, Analytica table, and multi-variable model all work now. The model seems to be ready, but the actual connection must be tested. Note! This is actually a zip file.
04:47, 19 September 2009 (171 KB)Jouni (talk | contribs)Corrected a bug in Analytica_node. Added features for multi-variable uploads, but not ready yet (see Variable_info and Ch_var).
20:13, 28 August 2009 (169 KB)Jouni (talk | contribs)Input node for anacode added. Results are handled as numbers if possible, otherwise text.
13:35, 28 August 2009 (273 KB)Jouni (talk | contribs)Small changes with Res and Resinfo
(newest | oldest) View ( | ) (10 | 20 | 50 | 100 | 250 | 500)
  • You cannot overwrite this file.

The following 3 pages link to this file: