Additional Sample Queries for Event Service Discovery
Copyright © 2010 Open Geospatial Consortium, Inc.
167
Listing 8: Query 1 - Find SFE event services which offer an event channel for DetectedChanges
?xml version=1.0 encoding=UTF-8? GetRecords xmlns=http:www.opengis.netcatcsw2.0.2
xmlns:rim=urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0 xmlns:ogc=http:www.opengis.netogc
xmlns:wrs=http:www.opengis.netcatwrs1.0 outputFormat=applicationxml; charset=UTF-8
service=CSW version=2.0.2 startPosition=1 maxRecords=10
resultType=results --
Find SFE event services which offer an event channel for DetectedChanges.
This query exploits the HasChannel association and the fact that the channel-type
is a fixed string held in the Name property of the EventChannel registry-object.
-- Query typeNames=Service Classification Association ExtrinsicObject
ElementSetName typeNames=ServicefullElementSetName Constraint version=1.1.0
ogc:Filter ogc:And
ogc:PropertyIsEqualTo ogc:PropertyNameServiceidogc:PropertyName
ogc:PropertyNameClassificationclassifiedObjectogc:PropertyName ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo ogc:PropertyNameClassificationclassificationNodeogc:PropertyName
ogc:Literalurn:ogc:serviceType:SensorEventService:0.3ogc:Literal ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo ogc:PropertyNameServiceidogc:PropertyName
ogc:PropertyNameAssociationsourceObjectogc:PropertyName ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo ogc:PropertyNameAssociationassociationTypeogc:PropertyName
ogc:Literalurn:oasis:names:tc:ebxml- regrep:AssociationType:HasChannelogc:Literal
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNameExtrinsicObjectidogc:PropertyName ogc:PropertyNameAssociationtargetObjectogc:PropertyName
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNameExtrinsicObjectobjectTypeogc:PropertyName ogc:Literalurn:ogc:def:rim-object-
type:ows7:EventChannelogc:Literal ogc:PropertyIsEqualTo
168
Copyright © 2010 Open Geospatial Consortium, Inc. ogc:PropertyIsEqualTo
ogc:PropertyNameExtrinsicObjectNameLocalizedStringvalueogc:Prope rtyName
ogc:LiteralDetectedChangesogc:Literal ogc:PropertyIsEqualTo
ogc:And ogc:Filter
Constraint Query
GetRecords
Listing 9: Query 2 - Find SFE event services which support the spatial operator BBOX
?xml version=1.0 encoding=UTF-8? GetRecords xmlns=http:www.opengis.netcatcsw2.0.2
xmlns:rim=urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0 xmlns:ogc=http:www.opengis.netogc
xmlns:wrs=http:www.opengis.netcatwrs1.0 outputFormat=applicationxml; charset=UTF-8
service=CSW version=2.0.2 startPosition=1 maxRecords=10
resultType=results --
Find SFE event services which support the spatial operator BBOX. --
Query typeNames=Service Classification_c1_c2 ElementSetName typeNames=ServicefullElementSetName
Constraint version=1.1.0 ogc:Filter
ogc:And ogc:PropertyIsEqualTo
ogc:PropertyNameServiceidogc:PropertyName ogc:PropertyNamec1classifiedObjectogc:PropertyName
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNamec1classificationNodeogc:PropertyName ogc:Literalurn:ogc:serviceType:SensorEventService:0.3ogc:Literal
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNameServiceidogc:PropertyName ogc:PropertyNamec2classifiedObjectogc:PropertyName
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNamec2classificationNodeogc:PropertyName ogc:Literalurn:x-ogc:def:rim-scheme:fes-2.0-
ops:spatial:bboxogc:Literal ogc:PropertyIsEqualTo
ogc:And ogc:Filter
Constraint Query
GetRecords
Copyright © 2010 Open Geospatial Consortium, Inc.
169
Listing 10: Query 3 - Find AIM event services which offer an event channel for Notams
?xml version=1.0 encoding=UTF-8? GetRecords xmlns=http:www.opengis.netcatcsw2.0.2
xmlns:rim=urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0 xmlns:ogc=http:www.opengis.netogc
xmlns:wrs=http:www.opengis.netcatwrs1.0 outputFormat=applicationxml; charset=UTF-8
service=CSW version=2.0.2 startPosition=1 maxRecords=10
resultType=results --
Find AIM event services which offer an event channel for Notams. This query exploits the HasChannel association and the fact that
the channel-type is a fixed string held in the Name property of the EventChannel
registry-object. --
Query typeNames=Service Classification Association ExtrinsicObject ElementSetName typeNames=ServicefullElementSetName
Constraint version=1.1.0 ogc:Filter
ogc:And ogc:PropertyIsEqualTo
ogc:PropertyNameServiceidogc:PropertyName ogc:PropertyNameClassificationclassifiedObjectogc:PropertyName
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNameClassificationclassificationNodeogc:PropertyName ogc:Literalurn:ogc:serviceType:AimEventService:0.1ogc:Literal
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNameServiceidogc:PropertyName ogc:PropertyNameAssociationsourceObjectogc:PropertyName
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNameAssociationassociationTypeogc:PropertyName ogc:Literalurn:oasis:names:tc:ebxml-
regrep:AssociationType:HasChannelogc:Literal ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo ogc:PropertyNameExtrinsicObjectidogc:PropertyName
ogc:PropertyNameAssociationtargetObjectogc:PropertyName ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo ogc:PropertyNameExtrinsicObjectobjectTypeogc:PropertyName
ogc:Literalurn:ogc:def:rim-object- type:ows7:EventChannelogc:Literal
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
170
Copyright © 2010 Open Geospatial Consortium, Inc. ogc:PropertyNameExtrinsicObjectNameLocalizedStringvalueogc:Prope
rtyName ogc:LiteralNotamsogc:Literal
ogc:PropertyIsEqualTo ogc:And
ogc:Filter Constraint
Query GetRecords
Listing 11: Query 4 - Find AIM event services which support the temporal operators at least one
?xml version=1.0 encoding=UTF-8? GetRecords xmlns=http:www.opengis.netcatcsw2.0.2
xmlns:rim=urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0 xmlns:ogc=http:www.opengis.netogc
xmlns:wrs=http:www.opengis.netcatwrs1.0 outputFormat=applicationxml; charset=UTF-8
service=CSW version=2.0.2 startPosition=1 maxRecords=10
resultType=results --
Find AIM event services which support the temporal operators at least one.
-- Query typeNames=Service Classification_c1_c2
ElementSetName typeNames=ServicefullElementSetName Constraint version=1.1.0
ogc:Filter ogc:And
ogc:PropertyIsEqualTo ogc:PropertyNameServiceidogc:PropertyName
ogc:PropertyNamec1classifiedObjectogc:PropertyName ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo ogc:PropertyNamec1classificationNodeogc:PropertyName
ogc:Literalurn:ogc:serviceType:AimEventService:0.1ogc:Literal ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo ogc:PropertyNameServiceidogc:PropertyName
ogc:PropertyNamec2classifiedObjectogc:PropertyName ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo ogc:PropertyNamec2classificationNodeogc:PropertyName
ogc:Literalurn:x-ogc:def:rim-scheme:fes-2.0- ops:temporalogc:Literal
ogc:PropertyIsEqualTo ogc:And
ogc:Filter Constraint
Query GetRecords
Copyright © 2010 Open Geospatial Consortium, Inc.
171
Listing 12: Query 5 - Find AIM event services with Weather channel and support for GML Point operands for spatial operators
?xml version=1.0 encoding=UTF-8? GetRecords xmlns=http:www.opengis.netcatcsw2.0.2
xmlns:rim=urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0 xmlns:ogc=http:www.opengis.netogc
xmlns:wrs=http:www.opengis.netcatwrs1.0 outputFormat=applicationxml; charset=UTF-8
service=CSW version=2.0.2 startPosition=1 maxRecords=10
resultType=results --
Find AIM event services which offers a channel for Weather and supports GML Point operands for spatial operators.
-- Query typeNames=Service Classification_c1_c2 Association
ExtrinsicObject ElementSetName typeNames=ServicefullElementSetName
Constraint version=1.1.0 ogc:Filter
ogc:And ogc:PropertyIsEqualTo
ogc:PropertyNameServiceidogc:PropertyName ogc:PropertyNamec1classifiedObjectogc:PropertyName
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNamec1classificationNodeogc:PropertyName ogc:Literalurn:ogc:serviceType:AimEventService:0.1ogc:Literal
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNameServiceidogc:PropertyName ogc:PropertyNamec2classifiedObjectogc:PropertyName
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNamec2classificationNodeogc:PropertyName ogc:Literalurn:x-ogc:def:rim-scheme:fes-2.0-ops:geometry-
operands:gml-pointogc:Literal ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo ogc:PropertyNameServiceidogc:PropertyName
ogc:PropertyNameAssociationsourceObjectogc:PropertyName ogc:PropertyIsEqualTo
ogc:PropertyIsEqualTo ogc:PropertyNameAssociationassociationTypeogc:PropertyName
ogc:Literalurn:oasis:names:tc:ebxml- regrep:AssociationType:HasChannelogc:Literal
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNameExtrinsicObjectidogc:PropertyName ogc:PropertyNameAssociationtargetObjectogc:PropertyName
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
172
Copyright © 2010 Open Geospatial Consortium, Inc. ogc:PropertyNameExtrinsicObjectobjectTypeogc:PropertyName
ogc:Literalurn:ogc:def:rim-object- type:ows7:EventChannelogc:Literal
ogc:PropertyIsEqualTo ogc:PropertyIsEqualTo
ogc:PropertyNameExtrinsicObjectNameLocalizedStringvalueogc:Prope rtyName
ogc:LiteralWeatherogc:Literal ogc:PropertyIsEqualTo
ogc:And ogc:Filter
Constraint Query
GetRecords
Copyright © 2010 Open Geospatial Consortium, Inc.
173
16 Annex D
– Event Metadata XML Implementation