NCA Device Publication

Le document de définition permet la publication des équipements et des capteurs installés.

Schéma NCADevicePublication 1.2

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="NCADevicePublication"
  elementFormDefault="qualified"
  attributeFormDefault="unqualified"
  xmlns:NCADevicePublication="https://scows.nicecotedazur.org/services/api/1.2"
  targetNamespace="https://scows.nicecotedazur.org/services/api/1.2"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:NCACommon="https://scows.nicecotedazur.org/services/api/1.2"
  version="1.2"
>
  <xs:include schemaLocation="NCACommon.xsd" />
  <xs:element name="NCADevicePublication" type="NCADevicePublication:NCADevicePublication" />
  <xs:complexType name="NCADevicePublication">
    <xs:annotation>
      <xs:documentation>Device Information Publication.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="publicationTime" type="NCACommon:DateTime" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Point in time at which this data has been published. YYYY-MM-DDTHH:MM:SS.SSSZ</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="publicationCreator" type="NCACommon:InternationalIdentifier" minOccurs="1" maxOccurs="1" />
      <xs:element name="elaboratedData" type="NCADevicePublication:ElaboratedData" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="credentials" type="NCACommon:Credentials" minOccurs="0" maxOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  
  <xs:complexType name="BasicDataValue">
    <xs:annotation>
      <xs:documentation>Generic data values of either measured.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="canalID" type="xs:ID" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>ID of the canal which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="canalName" type="NCACommon:String" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Name of the canal which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="canalType" type="NCACommon:String" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Type of the canal which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="canalBrand" type="NCACommon:String" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Brand of the canal which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="canalModel" type="NCACommon:String" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Model of the canal which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="canalVersion" type="NCACommon:String" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Version of the canal which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="canalSerialNumber" type="NCACommon:String" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Serial Number of the canal which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="canalState" type="NCACommon:String" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>State of the canal which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="canalInstallationDate" type="NCACommon:DateTime" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Installation Date of the canal which has produced the information relating to this version of the information. YYYY-MM-DDTHH:MM:SS.SSSZ</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="canalMeasurementTimeInterval" type="NCACommon:TimeDataValue" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Duration in seconds beetwwen two measurements of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="canalTransmissionTimeInterval" type="NCACommon:TimeDataValue" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Duration in seconds beetwwen two transmissions.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ElaboratedData">
    <xs:annotation>
      <xs:documentation>Data information publication.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="deviceID" type="NCACommon:Deviceid" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>ID of the equipment which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="deviceName" type="NCACommon:String" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Name of the equipment which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="deviceType" type="NCACommon:String" minOccurs="1" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Type of the equipment which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="deviceBrand" type="NCACommon:String" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Brand of the equipment which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="deviceModel" type="NCACommon:String" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Model of the equipment which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="deviceVersion" type="NCACommon:String" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Version of the equipment which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="deviceSerialNumber" type="NCACommon:String" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Serial Number of the equipment which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="deviceFirmware" type="NCACommon:String" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Firmware version of the equipment which has produced the information relating to this version of the information.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="deviceInstallationDate" type="NCACommon:DateTime" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Point in time at which this data has been installed. YYYY-MM-DDTHH:MM:SS.SSSZ</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="sourceInformation" type="NCACommon:SourceInformation" minOccurs="0" maxOccurs="1" />
      <xs:element name="document" type="NCACommon:Document" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="parameter" type="NCACommon:Parameter" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="basicDataValue" type="NCADevicePublication:BasicDataValue" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>