[georss] "When" information in georss

Noyori Tatsuya nojorin at gmail.com
Thu Aug 9 10:43:43 EDT 2007


I was thinking what kind of GROUP element we need.
I think GROUP elemnt has the following types.

1. DataSet
2. TimeSeries
3. SpaceSeries
4. FeatureSet
5. RelatedDataSet

1. DataSet example
<ds>
    <dateTime>2007-08-07T00:00Z</dateTime>
    <point>45.256 -71.92</point>
    <xhtml:div>sunny</xhtml:div>
</ds>
DataSet <ds> MAY contain one When element.
DataSet <ds> MAY contain one Where element.
DataSet <ds> MAY contain more than one other namespace element.
DataSet <ds> MAY contain more than one RelatedDataSet element.

2.TimeSeries example
<ts>
    <point>45.256 -71.92</point>
    <ds>
        <dateTime>2007-08-07T00:00Z</dateTime>
        <xhtml:div>sunny</xhtml:div>
    </ds>
    <ds>
        <dateTime>2007-08-08T00:00Z</dateTime>
        <xhtml:div>sunny</xhtml:div>
    </ds>
</ts>
TimeSeries <ts> MUST contain one Where element.
TimeSeries <ts> MUST contain  more than one <ds> element.

3.SpaceSeries example
<ss>
    <dateTime>2007-08-07T00:00Z</dateTime>
    <ds>
        <point>45.256 -71.92</point>
        <xhtml:div>sunny</xhtml:div>
    </ds>
    <ds>
        <point>48.256 -73.92</point>
        <xhtml:div>sunny</xhtml:div>
    </ds>
</ss>
SpaceSeries <ss> MUST contain one When element.
SpaceSeries <ss> MUST contain  more than one <ds> element.

4. FeatureSet examples

4-1.FeatureSet example contains more than one DataSet <ds> element.
<fs>
    <ds>
        <dateTime>2007-08-07T00:00Z</dateTime>
        <point>45.256 -71.92</point>
        <xhtml:div>sunny</xhtml:div>
    </ds>
    <ds>
        <dateTime>2007-08-09T00:00Z</dateTime>
        <point>44.256 -69.92</point>
        <xhtml:div>sunny</xhtml:div>
    </ds>
<fs>

4-2.FeatureSet <fs> example contains more than one TimeSeries <ts> element.
<fs>
    <ts>
        <point>45.256 -71.92</point>
        <ds>
            <dateTime>2007-08-07T00:00Z</dateTime>
            <xhtml:div>sunny</xhtml:div>
        </ds>
        <ds>
            <dateTime>2007-08-08T00:00Z</dateTime>
            <xhtml:div>sunny</xhtml:div>
        </ds>
    </ts>
    <ts>
        <point>48.256 -68.92</point>
        <ds>
            <dateTime>2007-08-07T00:00Z</dateTime>
            <xhtml:div>cloudy</xhtml:div>
        </ds>
        <ds>
            <dateTime>2007-08-08T00:00Z</dateTime>
            <xhtml:div>cloudy</xhtml:div>
        </ds>
    </ts>
<fs>

4-3.FeatureSet <fs> example contains more than one SpaceSeries <ss> element.
<fs>
    <ss>
        <dateTime>2007-08-07T00:00Z</dateTime>
        <ds>
            <point>45.256 -71.92</point>
            <xhtml:div>sunny</xhtml:div>
        </ds>
        <ds>
            <point>48.256 -73.92</point>
            <xhtml:div>sunny</xhtml:div>
        </ds>
    </ss>
    <ss>
        <dateTime>2007-08-09T00:00Z</dateTime>
        <ds>
            <point>45.256 -71.92</point>
            <xhtml:div>sunny</xhtml:div>
        </ds>
        <ds>
            <point>48.256 -73.92</point>
            <xhtml:div>sunny</xhtml:div>
        </ds>
    </ss>
</fs>


5. RelatedDataSet <rds> examples

<ds>
    <dateTime>2007-08-07T00:00Z</dateTime>
    <point>45.256 -71.92</point>
    <rds href="#center_point">
        <xhtml:div>distance=1degree</xhtml:div>
    </rds>
</ds>
<ds id="center_point">
    <dateTime>2007-08-07T00:00Z</dateTime>
    <point>44.256 -71.92</point>
</ds>

It seems these structures are difficult, but I think structures above
is well organized.

If you do not want to use GROUP element, I think you can use only When
and Where elements.

If you have any comments, please share the comments with us.

-- 
Tatsuya


More information about the georss mailing list