[NeXML]
Rich phyloinformatic dataThe future data exchange standard is here!
NeXML is an exchange standard for representing phyloinformatic data — inspired by the commonly used NEXUS format, but more robust and easier to process.
Schema module documentation
Description
This module defines the abstract super-classes for the components that go into character matrices. In nexml instance documents, the <characters> element structure forms the concrete instance of the complex types defined here. The concrete structure consists of one <format> structure that define allowed states, their symbols and ambiguity mappings, and the matrix columns they apply to. This is then followed by a <matrix> element that contains rows that either consist of granular cells with individual states, or of compact sequences.
Other views (open in new window):
Complex types
AbstractBlock [abstract]
Description
The AbstractBlock is the superclass for blocks that contain an element structure of type AbstractFormat.
Inheritance
AbstractBlock extends TaxaLinked. In turn, this type is inherited from by AbstractCells, AbstractSeqs,
Substructures
- an element called "format", instance of AbstractFormat (0..1).
Definition source
<xs:complexType abstract="true" name="AbstractBlock" sawsdl:modelReference="http://evolutionaryontology-dev.nescent.org/cdao.owl#CharacterStateDataMatrix"> <xs:complexContent mixed="false"> <xs:extension base="TaxaLinked"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="1" minOccurs="0" name="format" type="AbstractFormat"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractCells [abstract]
Description
The AbstractSeqBlock type is the superclass for character blocks that consist of granular character state observations.
Inheritance
AbstractCells extends AbstractBlock. In turn, this type is inherited from by ContinuousCells, DnaCells, ProteinCells, RestrictionCells, RnaCells, StandardCells,
Substructures
- an element called "matrix", instance of AbstractObsMatrix (1..1).
Definition source
<xs:complexType abstract="true" name="AbstractCells"> <xs:complexContent mixed="false"> <xs:extension base="AbstractBlock"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="1" minOccurs="1" name="matrix" type="AbstractObsMatrix"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractChar [abstract]
Description
The AbstractChar type is the superclass for a column definition, which may have a "states" attribute that refers to an AbstractStates element, a codon attribute of type CodonPosition and an id attribute that may be an actual id (e.g. for categorical matrices where observations explicitly refer to a column definition) or an integer for sequence matrices.
Inheritance
AbstractChar extends IDTagged. In turn, this type is inherited from by AAChar, ContinuousChar, DNAChar, RNAChar, RestrictionChar, StandardChar,
Attributes
Name | Type | Usage |
tokens | MSTokenLength | optional |
states | xs:IDREF | optional |
codon | CodonPosition | optional |
Definition source
<xs:complexType abstract="true" name="AbstractChar" sawsdl:modelReference="http://evolutionaryontology-dev.nescent.org/cdao.owl#Character"> <xs:complexContent mixed="false"> <xs:extension base="IDTagged"> <xs:sequence maxOccurs="1" minOccurs="1"/> <xs:attribute name="tokens" type="MSTokenLength" use="optional"/> <xs:attribute name="states" type="xs:IDREF" use="optional"/> <xs:attribute name="codon" type="CodonPosition" use="optional"/> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractFormat [abstract]
Description
The AbstractFormat type is the superclass for the element that defines the allowed characters and states in a matrix, and their ambiguity mapping. It may enclose AbstractStates elements that define states and their mappings, and AbstractChar elements that specify which AbstractStates apply to which matrix columns.
Inheritance
AbstractFormat extends Annotated. In turn, this type is inherited from by AAFormat, ContinuousFormat, DNAFormat, RNAFormat, RestrictionFormat, StandardFormat,
Substructures
- an element called "states", instance of AbstractStates (0..unbounded).
- an element called "char", instance of AbstractChar (0..unbounded).
- an element called "set", instance of CharSet (0..unbounded).
Definition source
<xs:complexType abstract="true" mixed="false" name="AbstractFormat"> <xs:complexContent mixed="false"> <xs:extension base="Annotated"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="unbounded" minOccurs="0" name="states" type="AbstractStates"/> <xs:element maxOccurs="unbounded" minOccurs="0" name="char" type="AbstractChar"/> <xs:element maxOccurs="unbounded" minOccurs="0" name="set" type="CharSet"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractMapping [abstract]
Description
The AbstractMapping type is the superclass for an ambiguity mapping. In an instance
document, a subclass of this type will look like
Inheritance
AbstractMapping extends Base. In turn, this type is inherited from by AAMapping, DNAMapping, RNAMapping, StandardMapping,
Attributes
Name | Type | Usage |
state | xs:IDREF | required |
Definition source
<xs:complexType abstract="true" name="AbstractMapping"> <xs:complexContent> <xs:extension base="Base"> <xs:attribute name="state" type="xs:IDREF" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractObs [abstract]
Description
The AbstractObs type is the superclass for single observations, i.e. cells in a matrix. A concrete instance of AbstractObs has a "char" attribute that refers to an explicitly defined character (e.g. in categorical matrices), and a "state" attribute that either holds a reference to an explicitly defined state, or a raw state value (a continuous value).
Inheritance
AbstractObs extends Labelled. In turn, this type is inherited from by AAObs, ContinuousObs, DNAObs, RNAObs, RestrictionObs, StandardObs,
Attributes
Name | Type | Usage |
char | xs:anySimpleType | required |
state | xs:anySimpleType | required |
Definition source
<xs:complexType abstract="true" name="AbstractObs"> <xs:complexContent> <xs:extension base="Labelled"> <xs:attribute name="char" type="xs:anySimpleType" use="required"/> <xs:attribute name="state" type="xs:anySimpleType" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractObsMatrix [abstract]
Description
The AbstractObsMatrix super class is the abstract type for a
Inheritance
AbstractObsMatrix extends Annotated. In turn, this type is inherited from by AAObsMatrix, ContinuousObsMatrix, DNAObsMatrix, RNAObsMatrix, RestrictionObsMatrix, StandardObsMatrix,
Substructures
- an element called "row", instance of AbstractObsRow (1..unbounded).
- an element called "set", instance of RowSet (0..unbounded).
Definition source
<xs:complexType abstract="true" mixed="false" name="AbstractObsMatrix"> <xs:complexContent mixed="false"> <xs:extension base="Annotated"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="unbounded" minOccurs="1" name="row" type="AbstractObsRow"/> <xs:element maxOccurs="unbounded" minOccurs="0" name="set" type="RowSet"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractObsRow [abstract]
Description
The AbstractObsRow represents a single row in a matrix. The row must refer to a previously declared otu element by its id attribute (and must have an id itself, may have a label, and may have meta attachments). The row contains multiple cell elements.
Inheritance
AbstractObsRow extends TaxonLinked. In turn, this type is inherited from by AAMatrixObsRow, ContinuousMatrixObsRow, DNAMatrixObsRow, RNAMatrixObsRow, RestrictionMatrixObsRow, StandardMatrixObsRow,
Substructures
- an element called "cell", instance of AbstractObs (1..unbounded).
- an element called "set", instance of CellSet (0..unbounded).
Definition source
<xs:complexType abstract="true" mixed="false" name="AbstractObsRow"> <xs:complexContent mixed="false"> <xs:extension base="TaxonLinked"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="unbounded" minOccurs="1" name="cell" type="AbstractObs"/> <xs:element maxOccurs="unbounded" minOccurs="0" name="set" type="CellSet"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractPolymorphicStateSet [abstract]
Description
The AbstractPolymorphicStateSet type is the super-class for a polymorphic state set definition. The element has a required AbstractSymbol attribute that in restricted concrete subclasses must be of a sensible type such as a single IUPAC character. It may enclose zero or more AbstractMapping elements to resolve ambiguities.
Inheritance
AbstractPolymorphicStateSet extends AbstractUncertainStateSet. In turn, this type is inherited from by AAPolymorphicStateSet, DNAPolymorphicStateSet, RNAPolymorphicStateSet, StandardPolymorphicStateSet,
Substructures
- an element called "uncertain_state_set", instance of AbstractUncertainStateSet (0..unbounded).
Definition source
<xs:complexType abstract="true" mixed="false" name="AbstractPolymorphicStateSet"> <xs:complexContent mixed="false"> <xs:extension base="AbstractUncertainStateSet"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="unbounded" minOccurs="0" name="uncertain_state_set" type="AbstractUncertainStateSet"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractSeqMatrix [abstract]
Description
The AbstractSeqMatrix super class is the abstract type for a
Inheritance
AbstractSeqMatrix extends Annotated. In turn, this type is inherited from by AASeqMatrix, ContinuousSeqMatrix, DNASeqMatrix, RNASeqMatrix, RestrictionSeqMatrix, StandardSeqMatrix,
Substructures
- an element called "row", instance of AbstractSeqRow (1..unbounded).
- an element called "set", instance of RowSet (0..unbounded).
Definition source
<xs:complexType abstract="true" mixed="false" name="AbstractSeqMatrix"> <xs:complexContent mixed="false"> <xs:extension base="Annotated"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="unbounded" minOccurs="1" name="row" type="AbstractSeqRow"/> <xs:element maxOccurs="unbounded" minOccurs="0" name="set" type="RowSet"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractSeqRow [abstract]
Description
The AbstractSeqRow represents a single row in a matrix. The row must refer to a previously declared otu element by its id attribute (and must have an id itself, may have a label, and may have meta attachments). The row contains a single seq element with raw character data.
Inheritance
AbstractSeqRow extends TaxonLinked. In turn, this type is inherited from by AAMatrixSeqRow, ContinuousMatrixSeqRow, DNAMatrixSeqRow, RNAMatrixSeqRow, RestrictionMatrixSeqRow, StandardMatrixSeqRow,
Substructures
- an element called "seq", instance of xs:anySimpleType (1..1).
Definition source
<xs:complexType abstract="true" name="AbstractSeqRow"> <xs:complexContent mixed="false"> <xs:extension base="TaxonLinked"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="1" minOccurs="1" name="seq" type="xs:anySimpleType"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractSeqs [abstract]
Description
The AbstractSeqBlock type is the superclass for character blocks that consist of raw character sequences.
Inheritance
AbstractSeqs extends AbstractBlock. In turn, this type is inherited from by ContinuousSeqs, DnaSeqs, ProteinSeqs, RestrictionSeqs, RnaSeqs, StandardSeqs,
Substructures
- an element called "matrix", instance of AbstractSeqMatrix (1..1).
Definition source
<xs:complexType abstract="true" mixed="false" name="AbstractSeqs"> <xs:complexContent mixed="false"> <xs:extension base="AbstractBlock"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="1" minOccurs="1" name="matrix" type="AbstractSeqMatrix"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractState [abstract]
Description
The AbstractState type is the super-class for a state definition. The element has a required symbol attribute that in restricted concrete subclasses must be of a sensible type such as a single IUPAC character. It may enclose zero or more AbstractMapping elements to resolve ambiguities.
Inheritance
AbstractState extends IDTagged. In turn, this type is inherited from by AAState, AbstractUncertainStateSet, DNAState, RNAState, RestrictionState, StandardState,
Attributes
Name | Type | Usage |
symbol | xs:anySimpleType | required |
Definition source
<xs:complexType abstract="true" name="AbstractState"> <xs:complexContent mixed="false"> <xs:extension base="IDTagged"> <xs:sequence maxOccurs="1" minOccurs="1"> </xs:sequence> <xs:attribute name="symbol" type="xs:anySimpleType" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractStates [abstract]
Description
A container for a set of AbstractState elements.
Inheritance
AbstractStates extends IDTagged. In turn, this type is inherited from by AAStates, DNAStates, RNAStates, RestrictionStates, StandardStates,
Substructures
- an element called "state", instance of AbstractState (0..unbounded).
- an element called "polymorphic_state_set", instance of AbstractPolymorphicStateSet (0..unbounded).
- an element called "uncertain_state_set", instance of AbstractUncertainStateSet (0..unbounded).
- an element called "set", instance of StateSet (0..unbounded).
Definition source
<xs:complexType abstract="true" name="AbstractStates"> <xs:complexContent mixed="false"> <xs:extension base="IDTagged"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="unbounded" minOccurs="0" name="state" type="AbstractState"/> <xs:element maxOccurs="unbounded" minOccurs="0" name="polymorphic_state_set" type="AbstractPolymorphicStateSet"/> <xs:element maxOccurs="unbounded" minOccurs="0" name="uncertain_state_set" type="AbstractUncertainStateSet"/> <xs:element maxOccurs="unbounded" minOccurs="0" name="set" type="StateSet"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
AbstractUncertainStateSet [abstract]
Description
The AbstractUncertainStateSet type is the super-class for an uncertain state set definition. The element has a required AbstractSymbol attribute that in restricted concrete subclasses must be of a sensible type such as a single IUPAC character. It may enclose zero or more AbstractMapping elements to resolve ambiguities.
Inheritance
AbstractUncertainStateSet extends AbstractState. In turn, this type is inherited from by AAUncertainStateSet, AbstractPolymorphicStateSet, DNAUncertainStateSet, RNAUncertainStateSet, StandardUncertainStateSet,
Substructures
- an element called "member", instance of AbstractMapping (0..unbounded).
Definition source
<xs:complexType abstract="true" mixed="false" name="AbstractUncertainStateSet"> <xs:complexContent mixed="false"> <xs:extension base="AbstractState"> <xs:sequence maxOccurs="1" minOccurs="1"> <xs:element maxOccurs="unbounded" minOccurs="0" name="member" type="AbstractMapping"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
[ Back to top ]
Simple types
AbstractSeq
Description
AbstractSeq is a simple type based on xs:string. Concrete subclasses must restrict this type to something more sensible, such as a regular expression for IUPAC single character symbols, or whitespace separated integers or doubles.
Inheritance
AbstractSeq restricts xs:string. In turn, this type is inherited from by AASeq, DNASeq, RNASeq,
Definition source
<xs:simpleType name="AbstractSeq"> <xs:restriction base="xs:string"/> </xs:simpleType>
[ Back to top ]
AbstractSymbol
Description
AbstractSymbol is a simple type, i.e. a string token. Concrete subclasses of character blocks will restrict AbstractSymbol to something sensible such as a regular expression of IUPAC symbols, a range of integer values, and so on.
Inheritance
AbstractSymbol restricts xs:string. In turn, this type is inherited from by AAToken, DNAToken, RNAToken,
Facets
Type | Value |
whiteSpace | preserve |
Definition source
<xs:simpleType name="AbstractSymbol"> <xs:restriction base="xs:string"> <xs:whiteSpace value="preserve"/> </xs:restriction> </xs:simpleType>
[ Back to top ]
AbstractTokenList
Description
AbstractTokenList is a simple type superclass for a compact character data representations that consist of space-separated lists of tokens. Examples of this are continuous character data (where the compact representation is a list of space-separated floating point numbers) and standard categorical data (which is represented as integers, which can be > 9, and hence need to be space-separated).
Inheritance
AbstractTokenList defines a new type by making a list of xs:string type items.
In turn, this type is inherited from by ContinuousSeq, StandardSeq,Definition source
<xs:simpleType name="AbstractTokenList"> <xs:list itemType="xs:string"/> </xs:simpleType>
[ Back to top ]
CodonPosition
Description
The CodonPosition type is an integer with value 1, 2 or 3, used in DNA and RNA.
Inheritance
CodonPosition restricts xs:nonNegativeInteger.
Facets
Type | Value |
minInclusive | 1 |
maxInclusive | 3 |
Definition source
<xs:simpleType name="CodonPosition"> <xs:restriction base="xs:nonNegativeInteger"> <xs:minInclusive value="1"/> <xs:maxInclusive value="3"/> </xs:restriction> </xs:simpleType>
[ Back to top ]
MSTokenLength
Description
The MSTokenLength simple type is used to specify, per column, how many tokens may occur in a multistate single observation matrix. For example, in a matrix where every cell holds a vector of two continuous values (say, mean and standard deviation of a measurement), the column definition provides a hint to this effect, by setting the attribute tokens="2"
Inheritance
MSTokenLength restricts xs:positiveInteger.
Definition source
<xs:simpleType name="MSTokenLength"> <xs:restriction base="xs:positiveInteger"/> </xs:simpleType>
[ Back to top ]
See also
~/nexml/xsd/characters/abstractcharacters.xsd includes the following other files:
~/nexml/xsd/characters/abstractcharacters.xsd is included in:
This page summarizes the contents of schema file "~/nexml/xsd/characters/abstractcharacters.xsd". Generated on Tue Sep 23 12:49:33 2014.