Help:Csv data uploadFrom SwissExperimentCsv data upload (Redirected from Help:Csvdataupload)
Importing manually sampled data from Excel to the SwissEx wiki using MacrosThese guidelines describe how to upload manually sampled data into the SwissEx wiki site. The process involves formatting the data in Excel so that it can be read and queried in SwissEx, creating semantic properties and a template for the data on the SwissEx end, and actually uploading the data using an Excel macro. See http://semantic-mediawiki.org/wiki/Help:Inline_queries for information on how to query this data in SwissEx after it has been uploaded.
Dim fieldsite As String
fieldsite = Worksheets("Sheet1").Cells(1, 3).value
Example template code with explanations
<accesscontrol>Stillberg</accesscontrol> ## limits access control to the group Stillberg</span>
<noinclude>
This is the "Stillberg FACE tree height" template.
It should be called in the following format:
{{Stillberg FACE tree height
|1= ## column number in Excel file
|2=
|3=
|4=
|5=
|6=
|7=
|8=
|9=
}}
Edit the page to see the template text.
</noinclude><includeonly>
{|
! Fieldsite ## title for table (label in bold)
| [[Deployment Name::Stillberg]] ## property name called by template followed by the
|- corresponding field number (column) in the Excel file
! Measured Variables
| {{#arraymap:Tree Height|,|x|[[Database parameter name::x]]|\n\n}}
|}
----
{| class="wikitable" cellpadding="10" cellspacing="0" border="1"
! Stillberg Plot.Tree:
|[[Stillberg TreeNumber::{{{2|}}}]]
|-
! FACE Plot Number:
| [[FACE Plot::{{{3|}}}]]
|-
! FACE Plot ID:
| [[Station name::{{{4|}}}]]
|-
! CO<sub>2</sub> Treatment:
| [[CO2 Treatment::{{{6|}}}]]
|-
! Tree Species:
| [[Tree Species::{{{5|}}}]]
|-
! Temperature Treatment:
| [[Temperature Treatment::{{{7|}}}]]
|-
! Year:
| [[Timestamp::{{{8|}}}]]
|-
! Tree Height:
| [[Tree Height::{{{9|}}} cm]]
|}
<!--ADD EXPERIMENTAL METHOD-->
{| class="wikitable collapsible" style="width: 98%; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.3em; text-align:left;"
|-valign=top
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>Experimental method</big>
|-valign="top" ## setup for table displaying data
|[[Special:AddData/Experimental/{{NAMESPACE}}:{{#uid:}}|'''Click here to register an experimental method''']].
|-valign="top"
| {{#ask:[[Category:Experimental Method]][[Database table name::{{{DBaseTableName|{{{DBaseName|}}}}}}]][[Database parameter name::{{{DBaseParameterName|{{{Parameter|}}}}}}]]
|?Action
|?Start date
|?End date
|format=table
|default=There are no experimental methods registered}}
|}
<!--ADD NOTES-->
{| class="wikitable collapsible" style="width: 98%; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.3em; text-align:left;"
|-valign=top
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>Deployment Notes</big>
|-valign="top"
| {{{Notes|No notes added.}}}
|{{#if:{{{Image|}}}|[[Image:{{{Image}}}|320px|thumb|right|{{{SerialNo|}}} deployed at {{{Location}}}]]| }}
|}
[[Category:manually sampled data]] ## category as defined in template
</includeonly>
|
