XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace urn:skyfms:xml:1
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.
Documentation SkyFMS data import/export document is an XML file, where under base element <skyfms> you have one or more data units.

SkyFMS datu importa/eksporta dokuments ir XML fails, kas zem bāzes elementa <skyfms> satur vienu vai vairākas datu vienības.

Declared Namespaces

Prefix Namespace
Default namespace urn:skyfms:xml:1
xml http://www.w3.org/XML/1998/namespace
xsd http://www.w3.org/2001/XMLSchema
Schema Component Representation
<xsd:schema targetNamespace="urn:skyfms:xml:1" elementFormDefault="qualified">
...
</xsd:schema>
top

Global Declarations

Attribute: id

Name id
Type idType
Documentation Attribute, where you can specify importer's side unique id for various objets in data import. Can be used to later modify previously imported data.

Atribūts, kurā var norādīt importētāja puses unikālu identifikatoru dažādiem objektiem datu importā. Izmantojams, lai vēlāk varētu modificēt iepriekš importētus datus.
XML Instance Representation
id="idType"
Schema Component Representation
<xsd:attribute name="id" type="idType"/>
top

Element: skyfms

Name skyfms
Type skyfmsType
Nillable no
Abstract no
Documentation Root element.

Saknes elements.
XML Instance Representation
<skyfms>
<report_parameters> reportParametersType </report_parameters> [0..1]
<fuel_in> fuelInType </fuel_in> [0..*] ?
<object> objectType </object> [0..*] ?
<task_route> taskRouteType </task_route> [0..*] ?
<route> routeType </route> [0..*] ?
<daily> dailyType </daily> [0..*] ?
<odometer_value> odometerValueType </odometer_value> [0..*] ?
<speedings_report> speedingsReportType </speedings_report> [0..*] ?
</skyfms>
Schema Component Representation
<xsd:element name="skyfms" type="skyfmsType"/>
top

Global Definitions

Complex Type: currencySum

Super-types: xsd:decimal < currencySum (by extension)
Sub-types: None
Name currencySum
Abstract no
XML Instance Representation
<...
currency="currencyCode [0..1]">
xsd:decimal
</...>
Schema Component Representation
<xsd:complexType name="currencySum">
<xsd:simpleContent>
<xsd:extension base="xsd:decimal">
<xsd:attribute name="currency" type="currencyCode"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
top

Complex Type: customFieldType

Super-types: xsd:string < customFieldType (by extension)
Sub-types: None
Name customFieldType
Abstract no
Documentation Attribute "name" has to be a predefined custom field name in the system. Custom fields with unrecognized names will be ignored.

Atribūtam "name" jāsatur iepriekš sistēmā definētas specializētās vērtības nosaukums. Specializētās vērtības, kuru nosaukums netiks atpazīts, tiks ignorētas.
XML Instance Representation
<...
name="xsd:string [0..1]">
xsd:string
</...>
Schema Component Representation
<xsd:complexType name="customFieldType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="name" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
top

Complex Type: dailyType

Super-types: None
Sub-types: None
Name dailyType
Abstract no
Documentation The daily report (<daily> element) returns data for the chosen period, grouping the data by days. The element consists of one or several <day> sub-elements, representing the data about respective day, as well as total calculations for the selected period.

Atskaite "pa dienām" (<daily> elements) atgriež mašīnas datus par izvēlēto periodu, sagrupējot datus pa dienām. Elements sastāv no viena vai vairākiem <day> apakš-elementiem, atgriežot datus par attiecīgo dienu, kā arī kopējos aprēķinus par izvēlēto periodu.
XML Instance Representation
<...>
<car_reg_no> xsd:string </car_reg_no> [1]
<fuel_begin> xsd:nonNegativeInteger </fuel_begin> [1]
<fuel_end> xsd:nonNegativeInteger </fuel_end> [1]
<fuel_avg_consumption> xsd:decimal </fuel_avg_consumption> [1]
<distance> xsd:decimal </distance> [1]
<total_ignition_time> xsd:nonNegativeInteger </total_ignition_time> [1]
<total_drive_time> xsd:nonNegativeInteger </total_drive_time> [1]
<total_stop_time> xsd:nonNegativeInteger </total_stop_time> [1]
<engine_hours> xsd:nonNegativeInteger </engine_hours> [1]
<engine_hours_RPM> xsd:nonNegativeInteger </engine_hours_RPM> [1]
<total_hydraulics_time> xsd:nonNegativeInteger </total_hydraulics_time> [1]
<day> dayType </day> [0..*]
</...>
Schema Component Representation
<xsd:complexType name="dailyType">
<xsd:sequence>
<xsd:element name="car_reg_no" type="xsd:string"/>
<xsd:element name="fuel_begin" type="xsd:nonNegativeInteger"/>
<xsd:element name="fuel_end" type="xsd:nonNegativeInteger"/>
<xsd:element name="fuel_avg_consumption" type="xsd:decimal"/>
<xsd:element name="distance" type="xsd:decimal"/>
<xsd:element name="total_ignition_time" type="xsd:nonNegativeInteger"/>
<xsd:element name="total_drive_time" type="xsd:nonNegativeInteger"/>
<xsd:element name="total_stop_time" type="xsd:nonNegativeInteger"/>
<xsd:element name="engine_hours" type="xsd:nonNegativeInteger"/>
<xsd:element name="engine_hours_RPM" type="xsd:nonNegativeInteger"/>
<xsd:element name="total_hydraulics_time" type="xsd:nonNegativeInteger"/>
<xsd:element name="day" type="dayType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: dayType

Super-types: None
Sub-types: None
Name dayType
Abstract no
Documentation Element that includes car data gathered for one day. Each element has an "id" attribute that represents the date by year-month-day standard.

Elements, kas satur apkopotus mašīnas datus par vienu dienu. Katram elementam ir "id" atribūts, kurā norādīts datums pēc gads-mēnesis-diena standarta.
XML Instance Representation
<...>
<fuel_begin> xsd:nonNegativeInteger </fuel_begin> [1]
<fuel_end> xsd:nonNegativeInteger </fuel_end> [1]
<fuel_avg_consumption> xsd:decimal </fuel_avg_consumption> [1]
<distance> xsd:decimal </distance> [1]
<day_start_by_ignition> xsd:dateTime </day_start_by_ignition> [1]
<day_end_by_ignition> xsd:dateTime </day_end_by_ignition> [1]
<total_ignition_time> xsd:nonNegativeInteger </total_ignition_time> [1]
<day_start_by_driving> xsd:dateTime </day_start_by_driving> [1]
<day_end_by_driving> xsd:dateTime </day_end_by_driving> [1]
<total_driving_time> xsd:nonNegativeInteger </total_driving_time> [1]
<total_stop_time> xsd:nonNegativeInteger </total_stop_time> [1]
<total_engine_hours_start> xsd:nonNegativeInteger </total_engine_hours_start> [1]
<total_engine_hours_end> xsd:nonNegativeInteger </total_engine_hours_end> [1]
<engine_hours> xsd:nonNegativeInteger </engine_hours> [1]
<total_engine_hours_RPM_start> xsd:nonNegativeInteger </total_engine_hours_RPM_start> [1]
<total_engine_hours_RPM_end> xsd:nonNegativeInteger </total_engine_hours_RPM_end> [1]
<engine_hours_RPM> xsd:nonNegativeInteger </engine_hours_RPM> [1]
<hydraulics_usage_time> xsd:nonNegativeInteger </hydraulics_usage_time> [1]
<day> stopsType </day> [1]
</...>
Schema Component Representation
<xsd:complexType name="dayType">
<xsd:sequence>
<xsd:element name="fuel_begin" type="xsd:nonNegativeInteger"/>
<xsd:element name="fuel_end" type="xsd:nonNegativeInteger"/>
<xsd:element name="fuel_avg_consumption" type="xsd:decimal"/>
<xsd:element name="distance" type="xsd:decimal"/>
<xsd:element name="day_start_by_ignition" type="xsd:dateTime"/>
<xsd:element name="day_end_by_ignition" type="xsd:dateTime"/>
<xsd:element name="total_ignition_time" type="xsd:nonNegativeInteger"/>
<xsd:element name="day_start_by_driving" type="xsd:dateTime"/>
<xsd:element name="day_end_by_driving" type="xsd:dateTime"/>
<xsd:element name="total_driving_time" type="xsd:nonNegativeInteger"/>
<xsd:element name="total_stop_time" type="xsd:nonNegativeInteger"/>
<xsd:element name="total_engine_hours_start" type="xsd:nonNegativeInteger"/>
<xsd:element name="total_engine_hours_end" type="xsd:nonNegativeInteger"/>
<xsd:element name="engine_hours" type="xsd:nonNegativeInteger"/>
<xsd:element name="total_engine_hours_RPM_start" type="xsd:nonNegativeInteger"/>
<xsd:element name="total_engine_hours_RPM_end" type="xsd:nonNegativeInteger"/>
<xsd:element name="engine_hours_RPM" type="xsd:nonNegativeInteger"/>
<xsd:element name="hydraulics_usage_time" type="xsd:nonNegativeInteger"/>
<xsd:element name="day" type="stopsType"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: fuelInType

Super-types: None
Sub-types: None
Name fuelInType
Abstract no
Documentation For refueling data import, XML document must contain one or more <fuel_in> elements.

Degvielas uzpilžu importam importa XML dokumentā jāievieto viens vai vairāki <fuel_in> elementi.
XML Instance Representation
<...
id="[0..1]">
<car_reg_no> xsd:string </car_reg_no> [1]
<date> xsd:date </date> [1]
<fuel_amount> xsd:decimal </fuel_amount> [1]
<receipt_no> xsd:string </receipt_no> [0..1]
<sum> currencySum </sum> [0..1]
<station_owner_id> stationOwnerId </station_owner_id> [0..1]
</...>
Schema Component Representation
<xsd:complexType name="fuelInType">
<xsd:sequence>
<xsd:element name="car_reg_no" type="xsd:string"/>
<xsd:element name="date" type="xsd:date"/>
<xsd:element name="fuel_amount" type="xsd:decimal"/>
<xsd:element name="receipt_no" type="xsd:string" minOccurs="0"/>
<xsd:element name="sum" type="currencySum" minOccurs="0"/>
<xsd:element name="station_owner_id" type="stationOwnerId" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute ref="id" use="optional"/>
</xsd:complexType>
top

Complex Type: objectType

Super-types: None
Sub-types: None
Name objectType
Abstract no
Documentation For object import, XML document must contain one or more <object> elements.

Objektu importam importa XML dokumentā jāievieto viens vai vairāki <object> elementi.
XML Instance Representation
<...
id="[0..1]">
<point> pointType </point> [1]
<radius> xsd:nonNegativeInteger </radius> [0..1]
<name> xsd:string </name> [0..1]
<description> xsd:string </description> [0..1]
<custom_field> customFieldType </custom_field> [0..*]
</...>
Schema Component Representation
<xsd:complexType name="objectType">
<xsd:sequence>
<xsd:element name="point" type="pointType"/>
<xsd:element name="radius" type="xsd:nonNegativeInteger" minOccurs="0"/>
<xsd:element name="name" type="xsd:string" minOccurs="0"/>
<xsd:element name="description" type="xsd:string" minOccurs="0"/>
<xsd:element name="custom_field" type="customFieldType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute ref="id" use="optional"/>
</xsd:complexType>
top

Complex Type: odometerValueType

Super-types: None
Sub-types: None
Name odometerValueType
Abstract no
Documentation Odometer import can contain one or more <odometer_value> elements. Each <odometer_value> element must contain <car_reg_no>, <date>, <distance> and <recalculate_period> fields.

Odometra imports drīkst saturēt vienu vai vairākus <odometer_value> elementus. Katram <odometer_value> elementam obligati ir jāsatur <car_reg_no>, <date>, <distance> un <recalculate_period> laukus.
XML Instance Representation
<...>
<car_reg_no> xsd:string </car_reg_no> [1]
<date> xsd:dateTime </date> [1]
<distance> xsd:nonNegativeInteger </distance> [1]
<recalculate_period> recalculatePeriodType </recalculate_period> [1]
</...>
Schema Component Representation
<xsd:complexType name="odometerValueType">
<xsd:sequence>
<xsd:element name="car_reg_no" type="xsd:string"/>
<xsd:element name="date" type="xsd:dateTime"/>
<xsd:element name="distance" type="xsd:nonNegativeInteger"/>
<xsd:element name="recalculate_period" type="recalculatePeriodType"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: pointType

Super-types: xsd:string < pointType (by extension)
Sub-types: None
Name pointType
Abstract no
XML Instance Representation
<...
format="pointFormatType [0..1]">
xsd:string
</...>
Schema Component Representation
<xsd:complexType name="pointType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="format" type="pointFormatType"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
top

Complex Type: reportParametersType

Super-types: None
Sub-types: None
Name reportParametersType
Abstract no
XML Instance Representation
<...>
<start_time> xsd:dateTime </start_time> [0..1]
<end_time> xsd:dateTime </end_time> [0..1]
<modified_after> xsd:dateTime </modified_after> [0..1]
</...>
Schema Component Representation
<xsd:complexType name="reportParametersType">
<xsd:sequence>
<xsd:element name="start_time" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="end_time" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="modified_after" type="xsd:dateTime" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: routeDatalossType

Super-types: timePeriodType < routeDatalossType (by extension)
Sub-types: None
Name routeDatalossType
Abstract no
XML Instance Representation
<...>
<begin_time> xsd:dateTime </begin_time> [1]
<end_time> xsd:dateTime </end_time> [1]
<notenoughdata> xsd:boolean </notenoughdata> [0..1]
<modified_time> xsd:dateTime </modified_time> [1]
<begin_point> pointType </begin_point> [1]
<end_point> pointType </end_point> [1]
<distance> xsd:decimal </distance> [1]
<odometer_begin> xsd:nonNegativeInteger </odometer_begin> [1]
<odometer_end> xsd:nonNegativeInteger </odometer_end> [1]
</...>
Schema Component Representation
<xsd:complexType name="routeDatalossType">
<xsd:complexContent>
<xsd:extension base="timePeriodType">
<xsd:sequence>
<xsd:element name="begin_point" type="pointType"/>
<xsd:element name="end_point" type="pointType"/>
<xsd:element name="distance" type="xsd:decimal"/>
<xsd:element name="odometer_begin" type="xsd:nonNegativeInteger"/>
<xsd:element name="odometer_end" type="xsd:nonNegativeInteger"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
top

Complex Type: routeDrivingType

Super-types: timePeriodType < routeDrivingType (by extension)
Sub-types: None
Name routeDrivingType
Abstract no
XML Instance Representation
<...>
<begin_time> xsd:dateTime </begin_time> [1]
<end_time> xsd:dateTime </end_time> [1]
<notenoughdata> xsd:boolean </notenoughdata> [0..1]
<modified_time> xsd:dateTime </modified_time> [1]
<avg_speed> xsd:decimal </avg_speed> [1]
<max_speed> xsd:decimal </max_speed> [1]
<distance> xsd:decimal </distance> [1]
<odometer_begin> xsd:nonNegativeInteger </odometer_begin> [1]
<odometer_end> xsd:nonNegativeInteger </odometer_end> [1]
</...>
Schema Component Representation
<xsd:complexType name="routeDrivingType">
<xsd:complexContent>
<xsd:extension base="timePeriodType">
<xsd:sequence>
<xsd:element name="avg_speed" type="xsd:decimal"/>
<xsd:element name="max_speed" type="xsd:decimal"/>
<xsd:element name="distance" type="xsd:decimal"/>
<xsd:element name="odometer_begin" type="xsd:nonNegativeInteger"/>
<xsd:element name="odometer_end" type="xsd:nonNegativeInteger"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
top

Complex Type: routeStoppingType

Super-types: timePeriodType < routeStoppingType (by extension)
Sub-types: None
Name routeStoppingType
Abstract no
XML Instance Representation
<...>
<begin_time> xsd:dateTime </begin_time> [1]
<end_time> xsd:dateTime </end_time> [1]
<notenoughdata> xsd:boolean </notenoughdata> [0..1]
<modified_time> xsd:dateTime </modified_time> [1]
<point> pointType </point> [1]
</...>
Schema Component Representation
<xsd:complexType name="routeStoppingType">
<xsd:complexContent>
<xsd:extension base="timePeriodType">
<xsd:element name="point" type="pointType"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
top

Complex Type: routeType

Super-types: None
Sub-types: None
Name routeType
Abstract no
Documentation When exporting routes from SkyFMS system, one can get information about stopping points of car and driven routes between those points. When exporting data about specified time period, one <route> element is returned for each car. This element contains one or more <route_stopping> (describes stop point), <route_driving> (describes driving) and <route_dataloss> (describes data loss) sub-elements.

Eksportējot ceļazīmes informāciju no SkyFMS sistēmas, tiek atgriezta informācija par transportlīdzekļu stāvēšanas punktiem un brauktajiem maršrutiem starp šiem punktiem. Eksportējot datus par norādīto laika periodu, katram transportlīdzeklim tiek atgriezts viens <route> elements, kurš satur vienu vai vairākus <route_stopping> (apraksta stāvēšanu), <route_driving> (apraksta braukšanu) un <route_dataloss> (apraksta datu zudumus) apakšelementus.
XML Instance Representation
<...>
<car_reg_no> xsd:string </car_reg_no> [1]
<fuel_begin> xsd:nonNegativeInteger </fuel_begin> [1]
<fuel_end> xsd:nonNegativeInteger </fuel_end> [1]
<fuel_avg_consumption> xsd:decimal </fuel_avg_consumption> [1]
<route_stopping> routeStoppingType </route_stopping> [0..*]
<route_driving> routeDrivingType </route_driving> [0..*]
<route_dataloss> routeDatalossType </route_dataloss> [0..*]
</...>
Schema Component Representation
<xsd:complexType name="routeType">
<xsd:sequence>
<xsd:element name="car_reg_no" type="xsd:string"/>
<xsd:element name="fuel_begin" type="xsd:nonNegativeInteger"/>
<xsd:element name="fuel_end" type="xsd:nonNegativeInteger"/>
<xsd:element name="fuel_avg_consumption" type="xsd:decimal"/>
<xsd:element name="route_stopping" type="routeStoppingType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="route_driving" type="routeDrivingType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="route_dataloss" type="routeDatalossType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: skyfmsType

Super-types: None
Sub-types: None
Name skyfmsType
Abstract no
Documentation SkyFMS data import/export document contains <skyfms> root element, followed by one or more refuelings (<fuel_in>), objects (<object>), routes (<route>), task routes (<task_route>) odometer values (<odometer_value>) and/or speedings reports(<speedings_report>).

SkyFMS datu importa/eksporta dokuments satur <skyfms> saknes elementu, kam seko viena vai vairākas degvielas uzpildes (<fuel_in>), objekti (<object>), ceļazīmes (<route>), darba uzdevumi (<task_route>) odometra vērtības (<odometer_value>) un/vai ātruma pārkāpumu atskaites(<speedings_report>).
XML Instance Representation
<...>
<report_parameters> reportParametersType </report_parameters> [0..1]
<fuel_in> fuelInType </fuel_in> [0..*] ?
<object> objectType </object> [0..*] ?
<task_route> taskRouteType </task_route> [0..*] ?
<route> routeType </route> [0..*] ?
<daily> dailyType </daily> [0..*] ?
<odometer_value> odometerValueType </odometer_value> [0..*] ?
<speedings_report> speedingsReportType </speedings_report> [0..*] ?
</...>
Schema Component Representation
<xsd:complexType name="skyfmsType">
<xsd:sequence>
<xsd:element name="report_parameters" type="reportParametersType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="fuel_in" type="fuelInType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="object" type="objectType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="task_route" type="taskRouteType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="route" type="routeType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="daily" type="dailyType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="odometer_value" type="odometerValueType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="speedings_report" type="speedingsReportType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: speedingType

Super-types: None
Sub-types: None
Name speedingType
Abstract no
XML Instance Representation
<...>
<begin_time> xsd:dateTime </begin_time> [1]
<end_time> xsd:dateTime </end_time> [1]
<speeding_duration> xsd:decimal </speeding_duration> [1] ?
<speeding_distance> xsd:decimal </speeding_distance> [1]
<avg_speed> xsd:decimal </avg_speed> [1]
<max_speed> xsd:decimal </max_speed> [1]
</...>
Schema Component Representation
<xsd:complexType name="speedingType">
<xsd:sequence>
<xsd:element name="begin_time" type="xsd:dateTime"/>
<xsd:element name="end_time" type="xsd:dateTime"/>
<xsd:element name="speeding_duration" type="xsd:decimal"/>
<xsd:element name="speeding_distance" type="xsd:decimal"/>
<xsd:element name="avg_speed" type="xsd:decimal"/>
<xsd:element name="max_speed" type="xsd:decimal"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: speedingsReportType

Super-types: None
Sub-types: None
Name speedingsReportType
Abstract no
XML Instance Representation
<...>
<car_reg_no> xsd:string </car_reg_no> [1]
<distance> xsd:nonNegativeInteger </distance> [1]
<speeding> speedingType </speeding> [0..*]
</...>
Schema Component Representation
<xsd:complexType name="speedingsReportType">
<xsd:sequence>
<xsd:element name="car_reg_no" type="xsd:string"/>
<xsd:element name="distance" type="xsd:nonNegativeInteger"/>
<xsd:element name="speeding" type="speedingType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: stopsType

Super-types: None
Sub-types: None
Name stopsType
Abstract no
XML Instance Representation
<...>
<point> pointType </point> [1..*]
</...>
Schema Component Representation
<xsd:complexType name="stopsType">
<xsd:sequence>
<xsd:element name="point" type="pointType" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: taskRouteType

Super-types: None
Sub-types: None
Name taskRouteType
Abstract no
Documentation For task route import, XML document must contain one or more <task_route> elements with one or more <task_target> sub-elements. When exporting task route information from SkyFMS system, one can get information about previously imported or manually created task routes. In exported task routes, <task_target> elements will contain the same id value as specified in import.

Darba uzdevumu importam XML dokumentā jāievieto viens vai vairāki <task_route> elementi, kas satur vienu vai vairākus <task_target> apakšelementus. Eksportējot darba uzdevumu informāciju no SkyFMS sistēmas, tiek atgriezta informācija par iepriekš importētajiem vai sistēmā manuāli ievadītiem darba uzdevumiem. Atgriežot informāciju par importētajiem darba uzdevumiem, <task_target> elementiem tiek norādīta tāda pati id atribūta vērtība, kāda ir bijusi importā.
XML Instance Representation
<...
id="[0..1]">
<car_reg_no> xsd:string </car_reg_no> [1]
<name> xsd:string </name> [0..1]
<task_target> taskTargetType </task_target> [1..*]
</...>
Schema Component Representation
<xsd:complexType name="taskRouteType">
<xsd:sequence>
<xsd:element name="car_reg_no" type="xsd:string"/>
<xsd:element name="name" type="xsd:string" minOccurs="0"/>
<xsd:element name="task_target" type="taskTargetType" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute ref="id" use="optional"/>
</xsd:complexType>
top

Complex Type: taskTargetType

Super-types: None
Sub-types: None
Name taskTargetType
Abstract no
XML Instance Representation
<...>
<point> pointType </point> [0..1]
<starts> xsd:dateTime </starts> [0..1]
<expires> xsd:dateTime </expires> [0..1]
<radius> xsd:nonNegativeInteger </radius> [0..1]
<name> xsd:string </name> [0..1]
<description> xsd:string </description> [0..1]
<logical_start> xsd:dateTime </logical_start> [0..1]
<logical_end> xsd:dateTime </logical_end> [0..1]
<complete_time_from> completeTimeFromType </complete_time_from> [0..1]
<min_time_at_target> xsd:nonNegativeInteger </min_time_at_target> [0..1]
<min_hydraulics_time> xsd:nonNegativeInteger </min_hydraulics_time> [0..1]
<total_ignition_time> xsd:nonNegativeInteger </total_ignition_time> [0..1]
<total_hydraulics_time> xsd:nonNegativeInteger </total_hydraulics_time> [0..1]
<completed> xsd:boolean </completed> [0..1]
<completed_time> xsd:dateTime </completed_time> [0..1]
</...>
Schema Component Representation
<xsd:complexType name="taskTargetType">
<xsd:sequence>
<xsd:element name="point" type="pointType" minOccurs="0"/>
<xsd:element name="starts" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="expires" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="radius" type="xsd:nonNegativeInteger" minOccurs="0"/>
<xsd:element name="name" type="xsd:string" minOccurs="0"/>
<xsd:element name="description" type="xsd:string" minOccurs="0"/>
<xsd:element name="logical_start" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="logical_end" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="complete_time_from" type="completeTimeFromType" minOccurs="0"/>
<xsd:element name="min_time_at_target" type="xsd:nonNegativeInteger" minOccurs="0"/>
<xsd:element name="min_hydraulics_time" type="xsd:nonNegativeInteger" minOccurs="0"/>
<xsd:element name="total_ignition_time" type="xsd:nonNegativeInteger" minOccurs="0"/>
<xsd:element name="total_hydraulics_time" type="xsd:nonNegativeInteger" minOccurs="0"/>
<xsd:element name="completed" type="xsd:boolean" minOccurs="0"/>
<xsd:element name="completed_time" type="xsd:dateTime" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: timePeriodType

Super-types: None
Sub-types:
Name timePeriodType
Abstract no
XML Instance Representation
<...>
<begin_time> xsd:dateTime </begin_time> [1]
<end_time> xsd:dateTime </end_time> [1]
<notenoughdata> xsd:boolean </notenoughdata> [0..1]
<modified_time> xsd:dateTime </modified_time> [1]
</...>
Schema Component Representation
<xsd:complexType name="timePeriodType">
<xsd:sequence>
<xsd:element name="begin_time" type="xsd:dateTime"/>
<xsd:element name="end_time" type="xsd:dateTime"/>
<xsd:element name="notenoughdata" type="xsd:boolean" minOccurs="0"/>
<xsd:element name="modified_time" type="xsd:dateTime"/>
</xsd:sequence>
</xsd:complexType>
top

Simple Type: completeTimeFromType

Super-types: xsd:string < completeTimeFromType (by restriction)
Sub-types: None
Name completeTimeFromType
Content
  • Base XSD Type: string
  • value comes from list: {'entered_time'|'left_time'}
Schema Component Representation
<xsd:simpleType name="completeTimeFromType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="entered_time"/>
<xsd:enumeration value="left_time"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: currencyCode

Super-types: xsd:string < currencyCode (by restriction)
Sub-types: None
Name currencyCode
Content
  • Base XSD Type: string
  • value comes from list: {'EUR'}
Schema Component Representation
<xsd:simpleType name="currencyCode">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="EUR"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: idType

Super-types: xsd:string < idType (by restriction)
Sub-types: None
Name idType
Content
  • Base XSD Type: string
  • length >= 1
Schema Component Representation
<xsd:simpleType name="idType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="64"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: pointFormatType

Super-types: xsd:string < pointFormatType (by restriction)
Sub-types: None
Name pointFormatType
Content
  • Base XSD Type: string
  • value comes from list: {'wgs84'|'degrees'|'lks92'|'object_ref'|'address'}
Documentation Specifies format for point element. Possible values: * wgs84 - Semicolon separated longitude and latitude in WGS84/NMEA format. Example: "5601.0318,N;01211.3503,E". * degrees - Semicolon separated longitude and latitude in degrees. Example: "56.01755;12.19302". * lks92 - Semicolon separated X and Y coordinates in LKS-92 (1992. gada Latvijas ģeodēziskā koordināšu sistēma) format. Example: "433500;357011". * object_ref - Reference to a previously imported object. Not possible in object import. Example: "OBJECT_1". * address - Address, specifying street and number (or house name) and then, after comma, a region (for example, town, village). Example: "Rūpniecības iela 52, Rīga".

Nosaka formātu <point> elementam. Iespējamās vērtības: * wgs84 - Ar semikolu atdalīts garums un platums WGS84/NMEA formātā. * degrees - Ar semikolu atdalīti garuma un platuma grādi. * lks92 - Ar semikolu atdalītas X un Y koordinātes 1992. gada Latvijas ģeodēziskajā koordināšu sistēmā (LKS-92). * object_ref - Norāde uz sistēmā jau esošu objektu. Nav iespējams objektu importā. * address - Adrese, vispirms norādot ielu un numuru (vai mājas nosaukumu), un pēc komata - reģionu (pilsētu, pagastu, ciemu vai novadu).
Schema Component Representation
<xsd:simpleType name="pointFormatType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="wgs84"/>
<xsd:enumeration value="degrees"/>
<xsd:enumeration value="lks92"/>
<xsd:enumeration value="object_ref"/>
<xsd:enumeration value="address"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: recalculatePeriodType

Super-types: xsd:string < recalculatePeriodType (by restriction)
Sub-types: None
Name recalculatePeriodType
Content
  • Base XSD Type: string
  • value comes from list: {'day'|'month'|'max'}
Schema Component Representation
<xsd:simpleType name="recalculatePeriodType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="day"/>
<xsd:enumeration value="month"/>
<xsd:enumeration value="max"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: stationOwnerId

Super-types: xsd:nonNegativeInteger < stationOwnerId (by restriction)
Sub-types: None
Name stationOwnerId
Content
  • Base XSD Type: nonNegativeInteger
Documentation Value must be an identificator of fuel station owner defined in system. In case value is absent, or non-existent id is provided, fuel station owner will be indicated as "Cits". The defined identificators can be found at "http://www.skyfms.com/client_www/index.php?tool=Public&subtool=station_owners&action=list"

Vērtībai jāsatur sistēmā definētas DUS identifikators. Vērtības neesamības vai sistēmā neeksistējošas vērtības gadījumā DUS tiks norādīts kā "Cits". Definētie identifikatori atrodami "http://www.skyfms.com/client_www/index.php?tool=Public&subtool=station_owners&action=list"
Schema Component Representation
<xsd:simpleType name="stationOwnerId">
<xsd:restriction base="xsd:nonNegativeInteger"/>
</xsd:simpleType>
top

Legend

Complex Type:

Schema Component Type

AusAddress

Schema Component Name
Super-types: Address < AusAddress (by extension)
Sub-types:
  • QLDAddress (by restriction)
If this schema component is a type definition, its type hierarchy is shown in a gray-bordered box.
Name AusAddress
Abstract no
The table above displays the properties of this schema component.
XML Instance Representation
<... country="Australia">
<unitNo> string </unitNo> [0..1]
<houseNo> string </houseNo> [1]
<street> string </street> [1]
Start Choice[1]
<city> string </city> [1]
<town> string </town> [1]
End Choice
<state> AusStates </state> [1]
<postcode> string <<pattern = [1-9][0-9]{3}>> </postcode> [1]?
</...>

The XML Instance Representation table above shows the schema component's content as an XML instance.

Schema Component Representation
<complexTypename="AusAddress">
<complexContent>
<extensionbase="Address">
<sequence>
<elementname="state" type="AusStates"/>
<elementname="postcode">
<simpleType>
<restrictionbase="string">
<patternvalue="[1-9][0-9]{3}"/>
</restriction>
</simpleType>
</element>
</sequence>
<attributename="country" type="string" fixed="Australia"/>
</extension>
</complexContent>
</complexType>
The Schema Component Representation table above displays the underlying XML representation of the schema component. (Annotations are not shown.)
top

Glossary

Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.

All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.

Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.

Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.

Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.

Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.

Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.

Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.

Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.

Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.

Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.

Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).

Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.

Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.

Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.

Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.

Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

top