Data Formats Working Group: Difference between revisions
From canSAS
(added working draft of XML Schema) |
|||
Line 9: | Line 9: | ||
=Current Definition= | =Current Definition= | ||
==XML template== | ==XML template== | ||
<pre> | <pre> | ||
Line 39: | Line 36: | ||
</SASentry> | </SASentry> | ||
</SASroot> | </SASroot> | ||
</pre> | |||
==XML Schema== | |||
<pre> | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<schema xmlns="http://www.w3.org/2001/XMLSchema" | |||
targetNamespace="http://www.smallangles.net/cansas1d" | |||
xmlns:tns="http://www.smallangles.net/cansas1d" | |||
elementFormDefault="qualified"> | |||
<complexType name="SASrootType"> | |||
<sequence> | |||
<element name="SASentry" minOccurs="1" maxOccurs="unbounded" | |||
type="tns:SASentryType"> | |||
</element> | |||
</sequence> | |||
<attribute name="version" type="string" /> | |||
</complexType> | |||
<complexType name="SASentryType"> | |||
<sequence> | |||
<element name="Title" minOccurs="0" maxOccurs="1" | |||
type="string"> | |||
</element> | |||
<element name="Run" minOccurs="0" maxOccurs="1" | |||
type="string"> | |||
</element> | |||
<element name="SASdata" type="tns:SASdataType"></element> | |||
<element name="SASsample" /> | |||
<element name="SASinstrument" /> | |||
<element name="SASprocess" /> | |||
<element name="SASnote" /> | |||
</sequence> | |||
<attribute name="name" type="string" /> | |||
</complexType> | |||
<complexType name="SASdataType"> | |||
<sequence> | |||
<element name="Idata" minOccurs="1" maxOccurs="unbounded" | |||
type="tns:IdataType" /> | |||
</sequence> | |||
<attribute name="name" type="string" /> | |||
</complexType> | |||
<complexType name="IdataType"> | |||
<sequence> | |||
<element name="Q" minOccurs="1" maxOccurs="1" | |||
type="float"> | |||
</element> | |||
<element name="I" minOccurs="1" maxOccurs="1" | |||
type="float"> | |||
</element> | |||
<element name="Qdev" minOccurs="0" maxOccurs="1" | |||
type="float"> | |||
</element> | |||
<element name="Idev" minOccurs="0" maxOccurs="1" | |||
type="float"> | |||
</element> | |||
<element name="Qfwhm" minOccurs="0" maxOccurs="1" | |||
type="float"> | |||
</element> | |||
<element name="Qmean" minOccurs="0" maxOccurs="1" | |||
type="float"> | |||
</element> | |||
<element name="ShadowFactor" minOccurs="0" maxOccurs="1" | |||
type="float"> | |||
</element> | |||
</sequence> | |||
</complexType> | |||
<element name="SASroot" type="tns:SASrootType" /> | |||
</schema> | |||
</pre> | </pre> | ||
Revision as of 23:28, 17 December 2007
Timeline
- 2007-12-31 agree on v1.0 format
- 2008-01-01 start implementing v1 at facilities
- 2008-06 representative sampling of data available for inter-facility comparison
- 2008-10 presentation of results at NOBUGS2008 meeting (date TBA)
Current Definition
XML template
<SASroot version="0.1a"> <SASentry> <Title></Title> <Run></Run> <SASdata> <Idata> <Q units="1/A"></Q> <I units="1/cm"></I> <Qdev units="1/A"></Qdev> <Idev units="1/cm"></Idev> <Qfwhm units="1/A"><!-- Qfwhm is optional --></Qfwhm> <Qmean units="1/A"><!-- Qmean is optional --></Qmean> <ShadowFactor units="1/A"><!-- ShadowFactor is optional --></ShadowFactor> </Idata> </SASdata> <SASsample></SASsample> <SASinstrument> <SASsource></SASsource> <SAScollimation></SAScollimation> <SASdetector></SASdetector> </SASinstrument> <SASprocess></SASprocess> <SASnote></SASnote> </SASentry> </SASroot>
XML Schema
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.smallangles.net/cansas1d" xmlns:tns="http://www.smallangles.net/cansas1d" elementFormDefault="qualified"> <complexType name="SASrootType"> <sequence> <element name="SASentry" minOccurs="1" maxOccurs="unbounded" type="tns:SASentryType"> </element> </sequence> <attribute name="version" type="string" /> </complexType> <complexType name="SASentryType"> <sequence> <element name="Title" minOccurs="0" maxOccurs="1" type="string"> </element> <element name="Run" minOccurs="0" maxOccurs="1" type="string"> </element> <element name="SASdata" type="tns:SASdataType"></element> <element name="SASsample" /> <element name="SASinstrument" /> <element name="SASprocess" /> <element name="SASnote" /> </sequence> <attribute name="name" type="string" /> </complexType> <complexType name="SASdataType"> <sequence> <element name="Idata" minOccurs="1" maxOccurs="unbounded" type="tns:IdataType" /> </sequence> <attribute name="name" type="string" /> </complexType> <complexType name="IdataType"> <sequence> <element name="Q" minOccurs="1" maxOccurs="1" type="float"> </element> <element name="I" minOccurs="1" maxOccurs="1" type="float"> </element> <element name="Qdev" minOccurs="0" maxOccurs="1" type="float"> </element> <element name="Idev" minOccurs="0" maxOccurs="1" type="float"> </element> <element name="Qfwhm" minOccurs="0" maxOccurs="1" type="float"> </element> <element name="Qmean" minOccurs="0" maxOccurs="1" type="float"> </element> <element name="ShadowFactor" minOccurs="0" maxOccurs="1" type="float"> </element> </sequence> </complexType> <element name="SASroot" type="tns:SASrootType" /> </schema>
XML example
to be defined
Members
- Andrew Jackson (NIST)
- Pete Jemian (APS)
- Steve King (ISIS)
- Ken Littrell (ORNL)
- Andy Nelson (ANSTO)
- Ron Ghosh (ILL)
- Jan Ilavsky (APS)
News/Status
--Jemian 12:00, 14 December 2007 (EST)draft status updated