Difference between revisions of "MOD-CO normative XSD representation"

From Meta-Omics Data of Collection Objects
Jump to: navigation, search
(MOD-CO normative XSD representation)
Line 10: Line 10:
 
[[File:DatasetType1.gif|frameless]]
 
[[File:DatasetType1.gif|frameless]]
 
[[File:DatasetType2.gif|frameless]]
 
[[File:DatasetType2.gif|frameless]]
[[File:DatasetType3.gif|frameless]]
 
  
 
The "DatasetType" includes the first mandatory element "DatasetIdentity" with the "Title" and optional "Details" (see left screenshot above). The "DatasetIdentity" follows the concepts of the five main schema hierary level collections ([[modco:Schema_hierarchy.Level_0_-_General |Level 0]] to [[modco:Schema_hierarchy.Level_4_-_Object_-_specific | Level 4]]). Their sequence is determined by the concept's data field "Display order".  
 
The "DatasetType" includes the first mandatory element "DatasetIdentity" with the "Title" and optional "Details" (see left screenshot above). The "DatasetIdentity" follows the concepts of the five main schema hierary level collections ([[modco:Schema_hierarchy.Level_0_-_General |Level 0]] to [[modco:Schema_hierarchy.Level_4_-_Object_-_specific | Level 4]]). Their sequence is determined by the concept's data field "Display order".  
Line 25: Line 24:
 
Depending on the expected data two cases are possible:
 
Depending on the expected data two cases are possible:
 
#The element "Text" contains the text value and the optional element "Notes" holds additional text.
 
#The element "Text" contains the text value and the optional element "Notes" holds additional text.
#The element "Sequence" contains the nucleotide resp. protein sequence text and the optional element "Notes" holds additional text.
+
#The element "Sequence" contains the nucleotide resp. protein sequence text and the optional element "Notes" holds additional text. In the corresponding concepts an item "Sequence type" is included.
 
=====Data type "enumerated"=====
 
=====Data type "enumerated"=====
Depending on the expected data two cases are possible:
+
The element "Entity" contains one the text values specified in the referenced enumeration type (see below). The optional element "EntityValue" contains the string value characterizing the "Entity" field and the optional element "Notes" holds an additional text. In general an "EntityValue" is expected, if the corresponding concept name is marked with suffix "<category> <string>".
#The element "Enumeration" contains the text values specified in the referenced enumeration type (see below) and the optional element "Notes" holds additional text.
+
 
#The element "Entity" contains one the text values specified in the referenced enumeration type (see below), the element "EntityValue" contains the string value characterizing the "Entity" field and the optional element "Notes" holds an additional text.
+
For all of the specified cases examples may be found in the screenshot above, e.g. '''UnitDomainElementaryCategory''', '''UnitIdentifierString''', '''UnitDigitalNucleotideString''' and '''UnitDigitalSequenceLengthValue'''.
For all of the specified cases examples may be found in the screenshot above, e.g. UnitDomainElementaryCategory, UnitIdentifierString, UnitDigitalNucleotideString, UnitDigitalSequenceLengthValue and UnitPhysicalTransactionRepositoryLocationNameIdentifierCategoryStringEnum.
+
  
 
====Enumeration types====
 
====Enumeration types====
The enumeration types include the allowed string literals of the "Enumerated" and "Entity" elements. Their names consist of the ambient XML element and the suffix "Enum".
+
The enumeration types include the allowed string literals of the "Enumerated" and "Entity" elements. Their names consist of the ambient XML element and the suffix "Enum". See below as an example the type '''UnitPhysicalTransactionRepositoryLocationNameIdentifierCategoryStringEnum'''.
 
[[File:DatasetType4.gif]]
 
[[File:DatasetType4.gif]]

Revision as of 10:55, 5 November 2018

MOD-CO normative XSD representation

For exchanging data, the format XML is commonly used. The structure of the XML document is defined by an XML schema document (XSD). By using dedicated tools (e.g. XML Validator), a specific XML document may be checked for compilance with the normative XML schema representation cited in the XML header.

The MOD-CO normative XML schema representation (http://schema.mod-co.net/MOD-CO_1.0.xsd; soon available) has been generated using the MOD-CO schema representation in DiversityDescriptions applying the following method:

  • Top level element "Datasets"

Datasets.gif

The "Datasets" element includes at least one element "Dataset" of the dedicated DatasetType

  • Dataset type

DatasetType1.gif DatasetType2.gif

The "DatasetType" includes the first mandatory element "DatasetIdentity" with the "Title" and optional "Details" (see left screenshot above). The "DatasetIdentity" follows the concepts of the five main schema hierary level collections (Level 0 to Level 4). Their sequence is determined by the concept's data field "Display order".

The XML element's name is derived from the concept's name:

  1. Prefix "modco:" omitted
  2. Rest converted into "CamelCase", i.e. the character following a blank resp. underline is capitalized and the blank resp. underline is removed
Example: modco:unit_domain_elementary_category becomes UnitDomainElementaryCategory (see left screenshot above)

Depending on the concept's "Data type", the following XML elements are included:

Data type "float"

The element "Numeric" contains the numeric value and the optional element "Notes" holds additional text.

Data type "text"

Depending on the expected data two cases are possible:

  1. The element "Text" contains the text value and the optional element "Notes" holds additional text.
  2. The element "Sequence" contains the nucleotide resp. protein sequence text and the optional element "Notes" holds additional text. In the corresponding concepts an item "Sequence type" is included.
Data type "enumerated"

The element "Entity" contains one the text values specified in the referenced enumeration type (see below). The optional element "EntityValue" contains the string value characterizing the "Entity" field and the optional element "Notes" holds an additional text. In general an "EntityValue" is expected, if the corresponding concept name is marked with suffix "<category> <string>".

For all of the specified cases examples may be found in the screenshot above, e.g. UnitDomainElementaryCategory, UnitIdentifierString, UnitDigitalNucleotideString and UnitDigitalSequenceLengthValue.

Enumeration types

The enumeration types include the allowed string literals of the "Enumerated" and "Entity" elements. Their names consist of the ambient XML element and the suffix "Enum". See below as an example the type UnitPhysicalTransactionRepositoryLocationNameIdentifierCategoryStringEnum.

Error creating thumbnail: Unable to save thumbnail to destination