Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[hyades-dev] Statistica data schema - First Draft





Here is the first draft of a schema definition for statistical data
destined for the statistical model.  Included is a schema file, HTML
documentation, and a sample instance that conforms to the schema.   I am
looking forward to some feedback.   I will schedual a meeting for Monday
with the previously identified participants to push this forward.


(See attached file: statistical.html)(See attached file: statistical.xml)
(See attached file: statistical.xsd)

Richard K. Duggan
Problem Determination Enablement
IBM Toronto Laboratory
External: 905-413-2396
Internal: 969-2396
Title: XML Schema Documentation
Schema statistical.xsd

Schema Location C:/Documents and Settings/Administrator/My Documents/IBM/wsappdev51/workspace/Statistical/statistical.xsd
Target Namespacehttp://www.eclipse.org/hyades
Documentation

This document describes the format for representation of statistical data that is destined for the Hyades statistical model. Any data that complies to this format will be able to be consumed by Hyades and made available within the tooling. ********************************************************************* Change History: 22 Oct 2003 - Richard K Duggan initial implementation ********************************************************************* Copyright 2003 Eclipse.org http://www.eclipse.org/legal/cpl-v10.html

Elements
ContiguousObservation
CounterDesriptor
DescreteObservation
Descriptor
GuageRepresentation
RangeRepresentation
SampleDescriptor
TextObservation
Complex Types
ContiguousObservationType
CounterDescriptorType
DescreteObservationType
DescriptorMember
DescriptorType
GuageRepresentationType
ObservationType
RangeRepresentationType
RepresentationType
SampleDescriptorType
TextObservationType

complex type DescriptorType

Documentation

This is the base type for all descriptors. DescriptorType's do not have associated counters but rather provide containment structure so that descriptors have a hierarchy.

Namespacehttp://www.eclipse.org/hyades
Attributes
NameTypeUseDefaultFixedForm
namexsd:stringrequired
idxsd:IDrequired
parentxsd:IDREF
Content
sequence
description{0,1}
Source
<xsd:complexType name="DescriptorType">
<xsd:sequence>
<xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="id" type="xsd:ID" use="required"/>
<xsd:attribute name="parent" type="xsd:IDREF"/>
</xsd:complexType>

element DescriptorType/description

Namespace
Typexsd:string
Source
<xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1"/>

element Descriptor

Namespacehttp://www.eclipse.org/hyades
Typehyades:DescriptorType
Source
<xsd:element name="Descriptor" type="hyades:DescriptorType"/>

complex type DescriptorMember

Documentation

A DescriptorMember is a descriptor that has a counter associated with it. DescriptorMembers are refered to be Observations. DescriptorMember's contain representation information for the observation information they describe.

Namespacehttp://www.eclipse.org/hyades
Typeextension of hyades:DescriptorType
Content
sequence
Representation{0,1}
Attributes
NameTypeUseDefaultFixedForm
representationType
Source
<xsd:complexType name="DescriptorMember">
<xsd:complexContent>
<xsd:extension base="hyades:DescriptorType">
<xsd:sequence>
<xsd:element name="Representation" type="hyades:RepresentationType" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="representationType">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="text"/>
<xsd:enumeration value="descrete"/>
<xsd:enumeration value="contiguous"/>
<xsd:enumeration value="range"/>
<xsd:enumeration value="guage"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

element DescriptorMember/Representation

Namespace
Typehyades:RepresentationType
Source
<xsd:element name="Representation" type="hyades:RepresentationType" minOccurs="0" maxOccurs="1"/>

complex type CounterDescriptorType

Documentation

This is a concrete type of MemberDesciptors that is to be used for descriptors which will have associated observations that are counters. Counters are interpretted as the current value is considered valid at the time the observation was taken.

Namespacehttp://www.eclipse.org/hyades
Typeextension of hyades:DescriptorMember
Source
<xsd:complexType name="CounterDescriptorType">
<xsd:complexContent>
<xsd:extension base="hyades:DescriptorMember">
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

element CounterDesriptor

Namespacehttp://www.eclipse.org/hyades
Typehyades:CounterDescriptorType
Source
<xsd:element name="CounterDesriptor" type="hyades:CounterDescriptorType"/>

complex type SampleDescriptorType

Documentation

This is a concrete type of MemberDesciptors that is to be used for descriptors which will have associated observations that are samples. Samples are interpretted as the current value is considered updated only on certain intervals.

Namespacehttp://www.eclipse.org/hyades
Typeextension of hyades:DescriptorMember
Attributes
NameTypeUseDefaultFixedForm
updateFrequencyxsd:decimalrequired
Source
<xsd:complexType name="SampleDescriptorType">
<xsd:complexContent>
<xsd:extension base="hyades:DescriptorMember">
<xsd:attribute name="updateFrequency" type="xsd:decimal" use="required"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

element SampleDescriptor

Namespacehttp://www.eclipse.org/hyades
Typehyades:SampleDescriptorType
Source
<xsd:element name="SampleDescriptor" type="hyades:SampleDescriptorType"/>

complex type ObservationType

Documentation

This is the base type of all observations. Observations have an associated MemberDescriptor and a time at which the observation was taken.

Namespacehttp://www.eclipse.org/hyades
Attributes
NameTypeUseDefaultFixedForm
descriptorxsd:IDREFrequired
timexsd:decimalrequired
Source
<xsd:complexType name="ObservationType">
<xsd:attribute name="descriptor" type="xsd:IDREF" use="required"/>
<xsd:attribute name="time" type="xsd:decimal" use="required"/>
</xsd:complexType>

complex type TextObservationType

Documentation

A concrete observation that contain a textual value.

Namespacehttp://www.eclipse.org/hyades
Typeextension of hyades:ObservationType
Attributes
NameTypeUseDefaultFixedForm
valuexsd:string
Source
<xsd:complexType name="TextObservationType">
<xsd:complexContent>
<xsd:extension base="hyades:ObservationType">
<xsd:attribute name="value" type="xsd:string"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

element TextObservation

Namespacehttp://www.eclipse.org/hyades
Typehyades:TextObservationType
Source
<xsd:element name="TextObservation" type="hyades:TextObservationType"/>

complex type DescreteObservationType

Documentation

A concrete observation that contains a integer value.

Namespacehttp://www.eclipse.org/hyades
Typeextension of hyades:ObservationType
Attributes
NameTypeUseDefaultFixedForm
valuexsd:int
Source
<xsd:complexType name="DescreteObservationType">
<xsd:complexContent>
<xsd:extension base="hyades:ObservationType">
<xsd:attribute name="value" type="xsd:int"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

element DescreteObservation

Namespacehttp://www.eclipse.org/hyades
Typehyades:DescreteObservationType
Source
<xsd:element name="DescreteObservation" type="hyades:DescreteObservationType"/>

complex type ContiguousObservationType

Documentation

A observation that contains a floating point value.

Namespacehttp://www.eclipse.org/hyades
Typeextension of hyades:ObservationType
Attributes
NameTypeUseDefaultFixedForm
valuexsd:decimal
Source
<xsd:complexType name="ContiguousObservationType">
<xsd:complexContent>
<xsd:extension base="hyades:ObservationType">
<xsd:attribute name="value" type="xsd:decimal"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

element ContiguousObservation

Namespacehttp://www.eclipse.org/hyades
Typehyades:ContiguousObservationType
Source
<xsd:element name="ContiguousObservation" type="hyades:ContiguousObservationType"/>

complex type RepresentationType

Documentation

The base of all representations.

Namespacehttp://www.eclipse.org/hyades
Source
<xsd:complexType name="RepresentationType">
</xsd:complexType>

complex type RangeRepresentationType

Documentation

A representation that has a minimun and a maximum value. That is, the observations will reside between these two values.

Namespacehttp://www.eclipse.org/hyades
Typeextension of hyades:RepresentationType
Attributes
NameTypeUseDefaultFixedForm
minxsd:intrequired
maxxsd:intrequired
Source
<xsd:complexType name="RangeRepresentationType">
<xsd:complexContent>
<xsd:extension base="hyades:RepresentationType">
<xsd:attribute name="min" type="xsd:int" use="required"/>
<xsd:attribute name="max" type="xsd:int" use="required"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

element RangeRepresentation

Namespacehttp://www.eclipse.org/hyades
Typehyades:RangeRepresentationType
Source
<xsd:element name="RangeRepresentation" type="hyades:RangeRepresentationType"/>

complex type GuageRepresentationType

Documentation

Extends the range representation by adding a minumun and maximum threashold for the observations. The idea here is that you could store these thresholds in the model and then have logic that informs you when an observation is outside of these threshold values.

Namespacehttp://www.eclipse.org/hyades
Typeextension of hyades:RangeRepresentationType
Attributes
NameTypeUseDefaultFixedForm
minThresholdxsd:intrequired
maxThresholdxsd:intrequired
Source
<xsd:complexType name="GuageRepresentationType">
<xsd:complexContent>
<xsd:extension base="hyades:RangeRepresentationType">
<xsd:attribute name="minThreshold" type="xsd:int" use="required"/>
<xsd:attribute name="maxThreshold" type="xsd:int" use="required"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

element GuageRepresentation

Namespacehttp://www.eclipse.org/hyades
Typehyades:GuageRepresentationType
Source
<xsd:element name="GuageRepresentation" type="hyades:GuageRepresentationType"/>

Attachment: statistical.xml
Description: Binary data

Attachment: statistical.xsd
Description: Binary data


Back to the top