wiki-archive/twiki/static/sddcharacters.html

249 lines
12 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
<link rel="stylesheet" type="text/css" href="sdd1.css">
</head>
<body bgcolor="#ffffff">
<a name="PageTop"></a>
<p />
<h2><a name="SDD_Part_0_Introduction_and_Prim"></a> SDD Part 0: Introduction and Primer to the SDD Standard </h2>
<p />
<h3><a name="3_6_Characters"></a> 3.6 Characters </h3>
<p />
Characters and their states are fundamental elements used in SDD to describe a taxon, specimen or other entity. Characters and states (and their arrangement into a hierarchy) provide the ontology for the SDD document. Sdd employs a single flat character list containing states. The order of characters in SDD is not informative and is instead defined exclusively in the <a href="characterhierarchies.html">&lt;CharacterHierarchies&gt;</a> element. This enables different character sequences for different reporting purposes and splitting characters into multiple files or reusing characters from different terminologies.
<p />
SDD States may be defined either locally within a character or enabled by reference to ConceptStates.
<p />
SDD supports four character types, dealt with individually below.
<p />
<img alt="characters.gif" src="http://wiki.tdwg.org/twiki/static/_publish/characters.gif" />
<p />
<h3><a name="3_6_1_Categorical_characters"></a> 3.6.1 Categorical characters </h3>
<p />
Categorical characters express either naturally discontinuous states or categories defining parts of a continuous range. Examples include presence (present/absent), colour (red/blue) and shape (round/ovate).
<p />
A simple SDD code instance representing a categorical character definition has the basic structure shown below, Example 3.6.1.1 shows two categorical characters as traditionally expressed; Example 3.6.1.2 shows the same characters and states represented in SDD.
<p />
<img alt="categoricalcharacter.gif" src="http://wiki.tdwg.org/twiki/static/_publish/categoricalcharacter.gif" />
<p />
<h5><a name="Example_3_6_1_1_Traditional_repr"></a> Example 3.6.1.1 - Traditional representation of categorical characters. </h5>
<p />
<table bgcolor="#ddddff" border="0" width="100%" cellpadding="5" cellspacing="5" style="border-collapse: collapse" bordercolor="#111111">
<p />
<tr>
<td>
<p />
<pre>
Wing Number
four
two
none (wings absent)
Wing Shape
broad
narrow
</pre>
<p />
</td>
</tr>
<p />
</table>
<p />
<h5><a name="Example_3_6_1_2_SDD_representati"></a> Example 3.6.1.2 - SDD representation of the categorical characters in 3.6.1.1. </h5>
<p />
<table bgcolor="#ddddff" border="0" width="100%" cellpadding="5" cellspacing="5" style="border-collapse: collapse" bordercolor="#111111">
<p />
<tr>
<td>
<p />
<pre>
&#60;Characters&#62;
&#60;CategoricalCharacter id&#61;&#34;c1&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;Wing Number&#60;/Label&#62;
&#60;/Representation&#62;
&#60;States&#62;
&#60;StateDefinition id&#61;&#34;s1&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;four&#60;/Label&#62;
&#60;/Representation&#62;
&#60;/StateDefinition&#62;
&#60;StateDefinition id&#61;&#34;s2&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;two&#60;/Label&#62;
&#60;/Representation&#62;
&#60;/StateDefinition&#62;
&#60;StateDefinition id&#61;&#34;s3&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;Absent&#60;/Label&#62;
&#60;/Representation&#62;
&#60;/StateDefinition&#62;
&#60;/States&#62;
&#60;/CategoricalCharacter&#62;
&#60;CategoricalCharacter id&#61;&#34;c2&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;Wing Shape&#60;/Label&#62;
&#60;/Representation&#62;
&#60;States&#62;
&#60;StateDefinition id&#61;&#34;s4&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;broad&#60;/Label&#62;
&#60;/Representation&#62;
&#60;/StateDefinition&#62;
&#60;StateDefinition id&#61;&#34;s5&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;narrow&#60;/Label&#62;
&#60;/Representation&#62;
&#60;/StateDefinition&#62;
&#60;/States&#62;
&#60;/CategoricalCharacter&#62;
&#60;/Characters&#62;
</pre>
<p />
</td>
</tr>
<p />
</table>
<p />
Characters and their states are represented using a label, perhaps in a <a href="sddlanguage.html">defined language</a> and for a <a href="sddaudiences.html">defined audience</a>. States for a categorical character are listed under their appropriate character. Elsewhere in SDD documents, characters and states are referred to by their id values rather than by their labels.
<p />
Note that characters and states defined in the &lt;Characters&gt; element form a flat list. The <a href="characterhierarchies.html">&lt;CharacterHierarchies&gt;</a> element is used to arrange characters defined here into a hierarchy.
<p />
Note that a &lt;CategoricalCharacter&gt; element must have one or more state elements
<p />
&lt;Assumptions&gt; allows properties of the character (such as whether the states are ordered or unordered and whether the states are naturally discrete) to be set
<p />
<a href="sddmapping.html">&lt;Mapping&gt;</a> allows characters and states to be mapped to each other (e.g. the states narrowly ovate and broadly ovate may be mapped as substates of the state ovate)
<p />
<p />
<h3><a name="3_6_2_Quantitative_characters"></a> 3.6.2 Quantitative characters </h3>
<p />
Quantitative states record an actual measurement (e.g. number of legs = 8; leaf length = 6.8 cm), range of measurements (e.g. leaf length=4.5-10.6), or statistical parameter for a set of measurements (e.g.). Extended ranges (e.g. wing length= (5-)10-40(-50) mm, interpreted as wings usually between 10 and 40mm but occasionally down to 5mm or up to 50mm) are supported.
<p />
A simple SDD code instance representing a quantitative character definition has the basic structure shown below and in Example 3.6.2.1.
<p />
<img alt="quantitativecharacter.gif" src="http://wiki.tdwg.org/twiki/static/_publish/quantitativecharacter.gif" />
<p />
<h4><a name="Example_3_6_2_1_SDD_definition_o"></a> Example 3.6.2.1 - SDD definition of a simple quantitative character &#8220;Leaf length&#8221;. </h4>
<p />
<table bgcolor="#ddddff" border="0" width="100%" cellpadding="5" cellspacing="5" style="border-collapse: collapse" bordercolor="#111111">
<p />
<tr>
<td>
<p />
<pre>
&#60;Characters&#62;
&#60;QuantitativeCharacter id&#61;&#34;c4&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;leaf length&#60;/Label&#62;
&#60;/Representation&#62;
&#60;/QuantitativeCharacter&#62;
&#60;/Characters&#62;
</pre>
<p />
</td>
</tr>
<p />
</table>
<p />
<p />
&lt;Assumptions&gt; allows properties of the character to be set. Properties include whether the values are expected to be integers, discrete or continuous etc, and whether there is an expected plausible range). Any measure used in a description constitutes valid information. However, a list of recommended measures for sets of characters may be defined in concept nodes.
<p />
<a href="sddmapping.html">&lt;Mapping&gt;</a> allows numeric states to be mapped to categorical character states (e.g. the range 0-10 may be mapped to small, and the range 10-20 to medium).
<p />
&lt;MeasurementUnit&gt; defines a measurement unit (mm, inch, kg, <20>C, m/s, etc.) or dimensionless scaling factor (such as '%') applying to all values of this character. If a Default MeasurementUnitPrefix is defined (see below), this must be entered without a prefix (e. g., 'm' instead of 'mm').
(Measurement units apply only to values plus those statistical measures not marked as IsDimensionless='true'.).
<p />
&lt;Default&gt; provides a default value to be used for the character if no value is specifically recorded in a description.
<p />
<p />
<h3><a name="3_6_3_Text_characters"></a> 3.6.3 Text characters </h3>
<p />
Text characters record information not easily ascribed to a measurement or atomised into characters and states. Examples include place of publication (e.g. &#8220;Smith 1998. Flora of Erehwon, Z-Publ.&#8221;), derivations (e.g. &#8220;acuta- from the Latin acuo (sharpen), alluding to the sharply pointed glumes (Aristida acuta)&#8221;) or general notes (e.g. &#8220;One record for tropical Queensland but mainly recorded from subtropical coastal Queensland to northern New South Wales. Eucalyptus woodlands and forests on poor soil&#8221;).
<p />
The content of quantitative characters simply exists as plain text within a &lt;Representation&gt; element as in Example 3.6.2.1 below.
<p />
<p />
<h5><a name="3_6_3_1_Sdd_representation_of_te"></a> 3.6.3.1 Sdd representation of text characters </h5>
<p />
<table bgcolor="#ddddff" border="0" width="100%" cellpadding="5" cellspacing="5" style="border-collapse: collapse" bordercolor="#111111">
<p />
<tr>
<td>
<p />
<pre>
&#60;Characters&#62;
&#60;TextCharacter id&#61;&#34;text1&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;Original publication&#60;/Label&#62;
&#60;/Representation&#62;
&#60;/TextCharacter&#62;
&#60;/Characters&#62;
&#60;CodedDescriptions&#62;
&#60;CodedDescription id&#61;&#34;cd1&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;Perotis&#60;/Label&#62;
&#60;/Representation&#62;
&#60;Scope&#62;
&#60;TaxonName ref&#61;&#34;t1&#34;/&#62;
&#60;/Scope&#62;
&#60;SummaryData&#62;
&#60;TextChar ref&#61;&#34;text1&#34;&#62;
&#60;Content&#62;Hort. Kew. 1: 85 (1789)&#60;/Content&#62;
&#60;/TextChar&#62;
&#60;/SummaryData&#62;
&#60;/CodedDescription&#62;
&#60;/CodedDescriptions&#62;
</pre>
<p />
</td>
</tr>
<p />
</table>
<p />
<h3><a name="3_6_4_Sequence_characters"></a> 3.6.4 Sequence characters </h3>
<p />
Sequence characters record the coding of genes or proteins for use in molecular analysis. The basic structure od SDD code for sequence characters has the basic structure shown below and in example 3.6.4.1.
<p />
<img alt="sequencecharacter.gif" src="http://wiki.tdwg.org/twiki/static/_publish/sequencecharacter.gif" />
<p />
<h5><a name="3_6_3_1_Sdd_representation_of_se"></a> 3.6.3.1 Sdd representation of sequence characters </h5>
<p />
<table bgcolor="#ddddff" border="0" width="100%" cellpadding="5" cellspacing="5" style="border-collapse: collapse" bordercolor="#111111">
<p />
<tr>
<td>
<p />
<pre>
&#60;SequenceCharacter id&#61;&#34;seq1&#34;&#62;
&#60;Representation&#62;
&#60;Label&#62;test DNA sequence&#60;/Label&#62;
&#60;/Representation&#62;
&#60;SequenceType&#62; Nucleotide&#60;/SequenceType&#62;
&#60;GapSymbol&#62;-&#60;/GapSymbol&#62;
&#60;SymbolLength&#62;1&#60;/SymbolLength&#62;
&#60;EnableAmbiguitySymbols&#62;true&#60;/EnableAmbiguitySymbols&#62;
&#60;/SequenceCharacter&#62;
</pre>
<p />
</td>
</tr>
<p />
</table>
<p />
&lt;SequenceType&gt; is currently limited to 'Nucleotide' and 'Protein', but future SDD versions may expand this after appropriate discussion. The special nucleotide type RNA/DNA are currently not considered necessary. The symbols U (RNA) and T (DNA) should be considered equal for the purpose of analysis.
<p />
&lt;SymbolLength&gt; refers to the number of letters in each symbol. Nucleotides are always codes with 1-letter symbols, but proteins may use 1 or 3-letter codes (A or Ala for alanine). In NEXUS SymbolLength is implicit in the Token command.
<p />
&lt;GapSymbol&gt; is a string identifying the 'gap' symbol used in aligned sequences. The gap symbol must always be SymbolLength long. A gap is a place where no data exist, but where a position must be filled because it is assumed that sequence symbols were inserted or deleted during evolution.
<p />
&lt;EnableAmbiguitySymbols&gt; provides support for ambiguity symbols such as R, Y, S, W for nucleotides, or B,Z for proteins in the sequence string.
<p />
<p />
<p />
-- DonovanSharp - 01 Jun 2006
<p />
<p />
</body></html>