1
- Dictionary of XDI Metadata
2
- ==========================
1
+ Dictionary of XAS Data Interchange Metadata
2
+ ===========================================
3
3
4
4
XDI Working Group
5
5
-----------------
@@ -21,7 +21,7 @@ includes:
21
21
1 . The name representing the datum
22
22
1 . The meaning of the datum
23
23
1 . Thw units of the datum
24
- 1 . The format of representing its value
24
+ 1 . The format for representing its value
25
25
26
26
Words used to signify the requirements in the specification ** shall**
27
27
follow the practice of
@@ -49,13 +49,13 @@ multi-spectral datasets.
49
49
## The XDI syntax
50
50
51
51
This dictionary has been developed along with the
52
- [ XDI specification] ( spec.md ) . Any examples given in this dictionary
53
- use the ** recommended ** XDI syntax. The metadata name consists of the
54
- capitalized namespace, followed by a dot, followed by a tag. Here
55
- is an example: ` Element.symbol ` . When appearing in an XDI file to
56
- convey a metadata value, the line begins with a comment token and end
57
- with an end-of-line token. A colon is the delimiting token between
58
- the metadata name and its value. Here is an example:
52
+ [ XDI specification] ( spec.md ) . All examples given in this dictionary
53
+ use all recommendations of the XDI syntax. The metadata name consists
54
+ of the capitalized namespace, followed by a dot, followed by a tag.
55
+ Here is an example: ` Element.symbol ` . When appearing in an XDI file
56
+ to convey a metadata value, the line begins with a comment token and
57
+ end with an end-of-line token. A colon is the delimiting token
58
+ between the metadata name and its value. Here is an example:
59
59
60
60
# Element.symbol: Cu
61
61
@@ -74,7 +74,7 @@ their definitions.
74
74
75
75
* _ free-format string_ : This is a string which can contain any
76
76
character (save end-of-line characters) in any encoding system. A
77
- free-sormat string need not be ASCII and need not be English.
77
+ free-format string need not be ASCII and need not be English.
78
78
Because applications using XDI may not be capable of handling some
79
79
encoding systems, it is ** recommended** that free-format strings be
80
80
ASCII.
@@ -83,31 +83,34 @@ their definitions.
83
83
white space, followed by a string denoting the units of the previous
84
84
string. As an example, a value for ` Column.1 ` might be ` energy eV ` ,
85
85
which identifies the contents of the first column in the data table
86
- as containing energy values expressed in electron volt units.
86
+ as containing energy values expressed in electron volt units. The
87
+ selection of possible units for a tag is given in the definition of
88
+ the tag.
87
89
88
90
* _ float_ : A float is a string which is interpretable as a
89
91
floating-point number in the C programming language. An integer is
90
92
permissable. Values of ` NaN ` , ` sNAN ` , ` qNAN ` , ` inf ` , ` +inf ` , and
91
- ` -inf ` are not allowed in XDI. That is, a float in XDI must be
92
- finite number. See [ IEEE 754-2008] ( http://grouper.ieee.org/groups/754/ ) .
93
+ ` -inf ` are not allowed in XDI. That is, a float in XDI ** must** be
94
+ a finite number. See
95
+ [ IEEE 754-2008] ( http://grouper.ieee.org/groups/754/ ) .
93
96
94
97
* _ float + units_ : This is a float as defined above, followed by white
95
98
space, followed by a string identifying the units of the number.
96
99
For example, a value for ` Sample.temperature ` , which identifies the
97
- tamperature at which an XAS measurement is made, might be ` 500 K ` ,
98
- which identifies the temperature of the measurements in Kelvin
100
+ temperature at which an XAS measurement is made, might be ` 500 K ` ,
101
+ identifying the temperature of the measurements in Kelvin
99
102
temperature units. The selection of possible units for a tag is
100
103
given in the definition of the tag.
101
104
102
105
* _ chemical formulas_ : ` Sample.stoichiometry ` is intended to represent
103
- the elemental composition of the sample. To make these formulas
104
- interpretable by computer, this and extension fields which represent
105
- chemical information ** must** use the
106
- [ IUCr definition of a chemical formula] ( http://www.iucr.org/__data/iucr/cifdic_html/1/cif_core.dic/Cchemical_formula.html ) .
106
+ the elemental composition of the sample. To allow interpretation of
107
+ chemical formulas by computer, this field and extension fields which
108
+ represent chemical information ** must** use the
109
+ [ IUCr definition of a chemical formula] ( http://www.iucr.org/__data/iucr/cifdic_html/1/cif_core.dic/Cchemical_formula.html ) .
107
110
108
111
* _ time_ : Because of the wide variability of cultural standards in the
109
112
representation of time, XDI defines a strict standard for time
110
- stamps in XDI files. ` Scan.start_time ` , ` Scan_end_time ` , and any
113
+ stamps in XDI files. ` Scan.start_time ` , ` Scan.end_time ` , and any
111
114
extension fields dealing in time ** must** use the
112
115
[ ISO 8601 specification for combined dates and times] ( http://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations )
113
116
@@ -126,6 +129,10 @@ their definitions.
126
129
127
130
Some additional comments:
128
131
132
+ * Locale is ** not** respected when interpreting floating point numbers.
133
+ The decimal mark ** must** be a dot (` . ` , ASCII 46). The decimal mark
134
+ ** must not** be a comma (` , ` , ASCII 44).
135
+
129
136
* A tag which is in a defined family but which is not defined in this
130
137
dictionary ** must** be interpreted as have a free-format string as its
131
138
value.
@@ -352,7 +359,7 @@ the signal chain behind the detector.
352
359
* ** Namespace:** ` Sample ` -- ** Tag:** ` stoichiometry `
353
360
* _ Description_ : The stoichiometric formula of the measured sample
354
361
* _ Units_ : none
355
- * _ Format_ : see [ the CIF definition of chemical_formula] ( http://www.iucr.org/__data/iucr/cifdic_html/1/cif_core.dic/Cchemical_formula.html )
362
+ * _ Format_ : see [ the IUCr definition of chemical_formula] ( http://www.iucr.org/__data/iucr/cifdic_html/1/cif_core.dic/Cchemical_formula.html )
356
363
357
364
* ** Namespace:** ` Sample ` -- ** Tag:** ` prep `
358
365
* _ Description_ : A string summarizing the method of sample preparation
@@ -394,7 +401,7 @@ as defined fields in future versions of the XDI specification.
394
401
* ` Sample.opacity `
395
402
* ` Sample.electrochemical_potential `
396
403
397
- Almost all of these examples ** should** take a float+units as its value .
404
+ Almost all of these examples ** should** take a float+units as values .
398
405
399
406
400
407
@@ -586,4 +593,4 @@ data acquisition, data analysis, and data archiving software.
586
593
587
594
If an extension tag is not understood due its lack of defined
588
595
semantics, the ** recommended** behavior for software touching
589
- the data be to silently preserve the metadata.
596
+ the data is to silently preserve the metadata.
0 commit comments