Schema Central > NIEM 3.2 > temporal.xsd > gml:TimePeriod
Advanced search
Need NIEM Help?

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

gml:TimePeriod

gml:TimePeriod acts as a one-dimensional geometric primitive that represents an identifiable extent in time.
The location in of a gml:TimePeriod is described by the temporal positions of the instants at which it begins and ends. The length of the period is equal to the temporal distance between the two bounding temporal positions. 
Both beginning and end may be described in terms of their direct position using gml:TimePositionType which is an XML Schema simple content type, or by reference to an indentifiable time instant using gml:TimeInstantPropertyType.
Alternatively a limit of a gml:TimePeriod may use the conventional GML property model to make a reference to a time instant described elsewhere, or a limit may be indicated as a direct position.

Element information

Type: gml:TimePeriodType

Properties: Global, Qualified

Content

Attributes

NameOccTypeDescriptionNotes
gml:id [1..1]xsd:IDThe attribute gml:id supports provision of a handle for the XML element representing a GML Object. Its use is mandatory for all GML objects. It is of XML type ID, so is constrained to be unique in the XML document within which it occurs.from type gml:AbstractGMLType
frame [0..1]xsd:anyURIDefault value is "#ISO-8601". from type gml:AbstractTimeGeometricPrimitiveType

Used in

Substitution hierarchy

Sample instance

<gml:TimePeriod gml:id="ID">
   <gml:metaDataProperty>
      <gml:GenericMetaData>Any text, intermingled with:
         <!--any element-->
      </gml:GenericMetaData>
   </gml:metaDataProperty>
   <gml:description>string</gml:description>
   <gml:descriptionReference/>
   <gml:identifier codeSpace="http://www.example.com/">string</gml:identifier>
   <gml:name>string</gml:name>
   <gml:relatedTime>
      <gml:TimeInstant gml:id="ID">
         <gml:metaDataProperty>...
         </gml:metaDataProperty>
         <gml:description>string</gml:description>
         <gml:descriptionReference/>
         <gml:identifier codeSpace="http://www.example.com/">string</gml:identifier>
         <gml:name>string</gml:name>
         <gml:relatedTime>...
         </gml:relatedTime>
         <gml:timePosition>12:00:00</gml:timePosition>
      </gml:TimeInstant>
   </gml:relatedTime>
   <gml:beginPosition>12:00:00</gml:beginPosition>
   <gml:endPosition>12:00:00</gml:endPosition>
   <gml:duration>P1Y2M3DT10H</gml:duration>
</gml:TimePeriod>