General model message mapping Common request parameters

Table 55 — KVP encoding for constraints Keyword b Description Data type and value Optionality CONSTRAINT_LANGUAGE Identifies the predicate language used for the value of the Constraint Code List with allowed values: CQL_TEXT, used to indicate CQL. FILTER, used to indicate OGC Filter. Zero or one Optional a Must be specified with the Constraint CONSTRAINT_LANGUAGE_VERSION Identifies the version of the predicate language used. Character String Zero or one There is no default as the parameter is specified if required to indicate which version of a specification the value of the constraint parameter conforms to. Constraint Text of query constraint in the predicate language identified by the CONSTRAINT ‌_ LANGUAGE Character String Zero or one Optional Must be specified with the CONSTRAINT ‌_LANG UAGE a The CONSTRAINT_LANGUAGE parameter contains the same information as the contents of the Constraint element in XML encoding. b Parameter keywords, for KVP encoding, are case insensitive. The following XML schema fragments define how the predicate language may be XML encoded in CSW operations that allow constraints to be defined Query, Update and Delete: xsd:complexType name=QueryConstraintType id=QueryConstraintType xsd:choice xsd:element ref=ogc:Filter xsd:element name=CqlText type=xsd:string xsd:choice xsd:attribute name=version type=xsd:string use=required xsd:attribute xsd:complexType The version parameter may be used to specify a version number indicating which version of a specification the constraint conforms to. For example, in the XML encoding, if the ogc:Filter element is being used, the version parameter could be set to “1.1.0” indicating that the filter conforms to version 1.1.0 of the Filter Encoding Implementation Specification [OGC 04-095].

10.3.5 General model message mapping

Table 56 maps the general model operations, defined in Clause 7, to the Catalogue Service for the Web CSW operations. This table does not list the general model operations that are not mapped to CSW operations. Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved. 127 Table 56 — General model to CSW mapping General Model Operation CSW Operation OGC_Service.getCapabilities OGC_Service.GetCapabilities Discovery.query CSW-Discovery.GetRecords Discovery.present CSW-Discovery.GetRecordById Discovery.describeRecordType CSW-Discovery.DescribeRecord Discovery.getDomain CSW-Discovery.GetDomain Manager.transaction CSW-Publication.Transaction Manager.hervestRecords CSW-Publication.Harvest

10.3.6 Common request parameters

All CSW operation requests except for GetCapabilities shall include the three parameters specified in Table 20 of [05-008c1]. Only one of these parameters is included in the general catalogue model, the others are specific to the HTTP protocol binding. In KVP encoding, these common parameters in CSW operation requests are encoded as shown in Table 57. Note that the parameter names in all KVP encodings shall be handled in a case insensitive manner while parameter values shall be handled in a case sensitive manner. Table 57 — KVP encoding of common operation request parameters Keyword Datatype and value Optionality Parameter in general model REQUEST Character String type Value is operation name e.g., “DescribeRecord” One Mandatory none service Character String type Fixed values of “CSW” One Mandatory serviceId version Character String type Fixed value of “2.0.2” One Mandatory none In XML encoding, all operation request elements, except for GetCapabilities, are extended from the following XML Schema fragment: xsd:complexType name=RequestBaseType xsd:attribute name=service type=xsd:string use=required fixed=CSW xsd:attribute name=version type=ows:ServiceType use=required fixed=2.0.2 xsd:complexType The “service” parameter is used to indicate that the request is a CSW request. This parameter shall be specified for all CSW requests. The “version” parameter is used to indicate that the associated CSW request conforms to this specification. This is indicated by setting the value of the version parameter to 2.0.2. This XML Schema fragment does 128 Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved. not include a “request” attribute, since the name of the operation requested is always the name of the XML element encoding the request.

10.3.7 Exception reporting