179
<xs:element name="Sent" type="_Timestamp" />
<xs:element name="ValidTill" type="_Timestamp" />
</xs:sequence>
<xs:attribute name="CommunicationID"
type="xs:string"
use="required" />
<xs:attribute name="MessageRepeated"
type="xs:int"/>
<xs:attribute name="ConfirmationRequired"
type="xs:boolean" />
</xs:complexType>
</xs:element>
<xs:element name="Body" minOccurs="1"
maxOccurs="1">
<xs:complexType>
<xs:choice minOccurs="1" maxOccurs="1">
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="Answer" minOccurs="0"
maxOccurs="255">
<xs:complexType>
<xs:choice>
<xs:element ref="Information" />
<xs:element ref="Intention" />
<xs:element ref="Permission" />
</xs:choice>
<xs:attribute name="Source">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Automatic" />
<xs:enumeration value="Human" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
[…]
</xs:schema>
Figure 5. Fragment of the ontology written in XML Schema.
Figure 5 shows the fragment of the more detailed
ontology for maritime transport communication
written in XML Schema. It is the technical form of
message structure description for automatic commu-
nication that is shown in Figure 3. Its application in
the real system allows to generate and validate mes-
sages.
A note is required about some XML Schema de-
mands. All time stamps (type=”_Timestamp”) con-
sist of combined date, time and time zone descrip-
tion. However, the time format is strictly required by
XML Schema definitions. It requires storing time
value in form of hh:mm:ss.ff (hh-hours, mm-minutes,
ss-seconds, ff –hundredths of a second).
We assume that some sentences can be ful-
ly-automatically exchanged between the sender and
the receiver. Therefore, for each sentence additional
information should be provided to indicate if a hu-
man or machine is the source of information. It is
important when the communication is not only be-
tween system operators (humans) but is semi- or ful-
ly-automatic (between machines).
One of the results of the maritime transport on-
tology development is the message structure – a uni-
versal envelope that allows exchanging information
among objects of the communication process (ships
and all other types of watercraft, aircraft, coast sta-
tions, land vehicles). Although in the example men-
tioned in the next section the communication be-
tween two ships is described, more general
communication can be processed (Fig. 6: note <Ves-
sel> tags in both sender and receiver related lines in
message headers).
5 APPLICATION
Let the dialog between two ships: Alpha and Beta,
presented in the paper by Pietrzykowski at al. 2006,
be an example – a case study – showing the commu-
nication described by XML messages generated ac-
cording to the ontology described by XML Schema.
A situation. Both ships - Alpha and Beta - (Fig.
2) are in a situation that COLREGs qualify as “ships
are on opposite courses or nearly opposite courses”
– see Rymarz 1995. In this case, both ships are
obliged to alter course to starboard (pass each other
port-to-port) in order to safely pass each other.
However, in certain conditions the regulations allow
ships to alter their courses to port side, so that they
pass each other on starboard sides.
Verbal communication. In our case, the ship Al-
pha suggested to the ship Beta that both ships pass
on their starboard sides, as passing to port might
have caused a dangerous situation due to the pres-
ence of another ship. In response, the Alpha received
information that the Beta is about to alter course to
starboard (because she approaches her waypoint),
which will result in passing ahead of Alpha at a safe
distance and the encounter situation will be solved.
The Alpha accepts this solution.
Messages used in automated communication.
The above dialog can be described in the form of
XML messages built according to the ontology
structure described in XML Schema (Figure 6).
The record also illustrates the membership of in-
formation kinds which are related to a given attrib-
ute. For example, attributes “Expectation”, “Re-
quest” and “Demand” may be related to the same
kind of information.
<?xml version=”1.0” encoding=”utf-8”?>
<Message
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-
instance” (View source…)>
<Header CommunicationID=”AB02”
MessageRepeated=”0” ConfirmationRequired=”0”>