XML Schema for Event Metadata

174 Copyright © 2010 Open Geospatial Consortium, Inc. sequence element name=channel type=es:EventChannelPropertyType minOccurs=0 maxOccurs=unbounded annotation documentationA channel supported by the event service.documentation annotation element element name=event type=es:EventMetadataPropertyType minOccurs=0 maxOccurs=unbounded annotation documentationMetadata about a type of event that is published by the service.documentation annotation element element name=relationship type=es:EventChannelRelationshipPropertyType minOccurs=0 maxOccurs=unbounded annotation documentationThe relationship that explains the encoding being used to publish a given type of event on a given channel.documentation annotation element sequence extension complexContent complexType complexType name=EventingInformationPropertyType sequence minOccurs=0 element ref=es:EventingInformation sequence attributeGroup ref=gml:AssociationAttributeGroup attributeGroup ref=gml:OwnershipAttributeGroup complexType element name=AdhocEventChannel type=es:AdhocEventChannelType substitutionGroup=es:EventChannel annotation documentationRepresents an lt;igt;EventChannel lt;igt;that was created ad hoc as additional delivery target for a subscription. Other subscribers can explore existing ad hoc channels and which events they target via the filter statements and documentation and subscribe for the same events. Handling subscriptions that target the same events is thus made easier for both subscribers and the producer. Subscribers to this kind of channel should be aware that the channel may terminate any time because the underlying subscription may be terminated at any time. A given termination time is therefore only indicative.documentation annotation element complexType name=AdhocEventChannelType complexContent extension base=es:EventChannelType sequence element name=filter type=anyType minOccurs=0 maxOccurs=unbounded annotation documentationFilter statement used by the subscription that created the ad-hoc channel.documentation annotation element element name=terminationTime type=gml:TimeInstantPropertyType minOccurs=0 annotation documentationTime when the channel is set to automatically expire. This shall be the same as the termination time of the subscription that created the ad hoc channel. Note that the termination time - if given - is only indicative, as the underlying subscription may be terminated at any time.documentation annotation element sequence extension complexContent complexType complexType name=AdhocEventChannelPropertyType Copyright © 2010 Open Geospatial Consortium, Inc. 175 sequence minOccurs=0 element ref=es:AdhocEventChannel sequence attributeGroup ref=gml:AssociationAttributeGroup attributeGroup ref=gml:OwnershipAttributeGroup complexType element name=EventMetadata type=es:EventMetadataType substitutionGroup=gml:AbstractGML annotation documentationRepresents semantics of an event.documentation annotation element complexType name=EventMetadataType complexContent extension base=gml:AbstractGMLType sequence element name=definition type=anyType annotation documentationDefines the event in as much detail as possible. Any type of definition is suitable, from a pure textual to a pure ontology based definition.documentation annotation element element name=eventName type=gml:CodeType minOccurs=0 maxOccurs=unbounded annotation documentationName of the event - rather, the happening it represents - assigned by a given domain.documentation annotation element element name=publishedOn type=es:EventChannelRelationshipPropertyType maxOccurs=unbounded sequence extension complexContent complexType complexType name=EventMetadataPropertyType sequence minOccurs=0 element ref=es:EventMetadata sequence attributeGroup ref=gml:AssociationAttributeGroup attributeGroup ref=gml:OwnershipAttributeGroup complexType element name=AggregationChannel type=es:AggregationChannelType substitutionGroup=es:EventChannel annotation documentationRepresents a channel in which all events from the child channels are published as well. This makes it easier for clients to subscribe for a number of channels.documentation annotation element complexType name=AggregationChannelType complexContent extension base=es:EventChannelType sequence element name=final type=boolean annotation documentationtrue if the aggregation channels set of child channels does not change children are removed or added - false otherwisedocumentation annotation element element name=child type=es:EventChannelPropertyType minOccurs=2 maxOccurs=unbounded sequence extension complexContent complexType complexType name=AggregationChannelPropertyType sequence minOccurs=0 element ref=es:AggregationChannel sequence attributeGroup ref=gml:AssociationAttributeGroup 176 Copyright © 2010 Open Geospatial Consortium, Inc. attributeGroup ref=gml:OwnershipAttributeGroup complexType element name=EventChannel type=es:EventChannelType substitutionGroup=gml:AbstractGML annotation documentationAn EventChannel is a Resource. Multiple events may be published on the channel. In some cases it may not be possible to identify these events.documentation annotation element complexType name=EventChannelType complexContent extension base=gml:AbstractGMLType sequence element name=unknownEventsPossible type=boolean default=true annotation documentationTrue if more than the listed events may be published on this channel, otherwise false.documentation annotation element element name=publishedEvent type=es:EventChannelRelationshipPropertyType minOccurs=0 maxOccurs=unbounded sequence extension complexContent complexType complexType name=EventChannelPropertyType sequence minOccurs=0 element ref=es:EventChannel sequence attributeGroup ref=gml:AssociationAttributeGroup attributeGroup ref=gml:OwnershipAttributeGroup complexType schema

16.2 Event Metadata for Aviation Service

– XML Example The following listing contains an example of an Aviation service’s event metadata contained as extension in a WS-Notification TopicSet. Such a TopicSet provides rudimentary information about the event channels supported by a service. Listing 13: Example of Extended TopicSet with Aviation Service Event Metadata wstop:TopicSet xmlns:wstop=http:docs.oasis-open.orgwsnt-1 xmlns:xsi=http:www.w3.org2001XMLSchema-instance xsi:schemaLocation=http:docs.oasis-open.orgwsnt-1 http:docs.oasis- open.orgwsnt-1.xsd xmlns:es=http:www.opengis.netes0.1 xmlns:gml=http:www.opengis.netgml3.2 xmlns:xlink=http:www.w3.org1999xlink xmlns:aimtns=http:www.opengis.netows7aimchannels aimtns:Notams wstop:topic=true aimtns:Weather wstop:topic=true -- the eventing information -- es:EventingInformation gml:id=aimEventingInformation xsi:schemaLocation=http:www.opengis.netes0.1 ..es.xsd es:channel es:EventChannel gml:id=notamsChannel gml:name codeSpace=http:www.opengis.netows7aimchannelsNotamsgml:name es:unknownEventsPossiblefalsees:unknownEventsPossible es:publishedEvent xlink:href=notamsRel1 es:EventChannel es:channel es:channel Copyright © 2010 Open Geospatial Consortium, Inc. 177 es:EventChannel gml:id=weatherChannel gml:name codeSpace=http:www.opengis.netows7aimchannelsWeathergml:name es:unknownEventsPossiblefalsees:unknownEventsPossible es:publishedEvent xlink:href=weatherRel1 es:publishedEvent xlink:href=weatherRel2 es:EventChannel es:channel es:event es:EventMetadata gml:id=notam gml:name codeSpace=http:www.opengis.netows7aimeventsNotamgml:name es:definitionA new NOTAM NOtice To AirMen is available.es:definition es:publishedOn xlink:href=notamsRel1 es:EventMetadata es:event es:event es:EventMetadata gml:id=weatherForecast gml:name codeSpace=hhttp:www.opengis.netows7aimeventsForecastgml:name es:definitionA new weather forecast is available.es:definition es:publishedOn xlink:href=weatherRel1 es:EventMetadata es:event es:event es:EventMetadata gml:id=weatherObservation gml:name codeSpace=http:www.opengis.netows7aimeventsObservationgml:name es:definitionA new weather observation is available.es:definition es:publishedOn xlink:href=weatherRel2 es:EventMetadata es:event es:relationship es:EventChannelRelationship gml:id=notamsRel1 es:eventEncoding codeSpace=http:www.aixm.aeroschema5.1dnotamEventes:eventEncoding es:targetEvent xlink:href=notam es:targetChannel xlink:href=notamChannel es:EventChannelRelationship es:relationship es:relationship es:EventChannelRelationship gml:id=weatherRel1 es:eventEncoding codeSpace=http:www.eurocontrol.intwx1.1Forecastes:eventEncoding es:targetEvent xlink:href=weatherForecast es:targetChannel xlink:href=weatherChannel es:EventChannelRelationship es:relationship es:relationship es:EventChannelRelationship gml:id=weatherRel2 es:eventEncoding codeSpace=http:www.eurocontrol.intwx1.1Observationes:eventEncoding es:targetEvent xlink:href=weatherObservation es:targetChannel xlink:href=weatherChannel es:EventChannelRelationship es:relationship es:EventingInformation wstop:TopicSet