Run tests for level 1.2 compliance.
The response to a GetCapabilities request (HTTP/GET request where KVPs must be
defined as follows: service = "CSW", request = "GetCapabilities") must satisfy
the applicable assertion:
1. it contains the XML representation of a capabilities document, which can be
validated against the XML schema defined for CSW 2.0.2 (see
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd)
2. must include a Filter_Capabilities section in the service metadata to describe
which elements of the predicate language are supported
3. The value "http://www.isotc211.org/2005/gmd" must be listed for the global
"IsoProfiles" constraint in the capabilities document
(ows:OperationsMetadata/ows:Constraint/@name="IsoProfiles").
<ows:OperationsMetadata>
. . .
<ows:Constraint name="IsoProfiles">
<ows:Value>http://www.isotc211.org/2005/gmd</ows:Value>
</ows:Constraint>
</ows:OperationsMetadata>
Pass if the assertions hold.
GET
CSW
GetCapabilities
csw/2.0.2/CSW-discovery.xsd
FAILURE: the second assertion failed
FAILURE: the third assertion failed
The response to a GetRecords request (sent via HTTP/SOAP/POST/XML) must satisfy
the applicable assertions:
the XML representation is valid structured concerning the CSW 2.0.2 AP ISO 1.0
schemas. This response can be validated in two steps:
1. validate each MD_Metadata entry in the Namespace
"http://www.isotc211.org/2005/gmd" separate with
http://schemas.opengis.net/csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd
2. validate the CSW 2.0.2 response frame (the GetRecordsResponse element within
the "http://www.opengis.net/cat/csw/2.0.2" namespace) with
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd
Pass if the response of the GetRecords request (sent via
HTTP/SOAP/POST/XML) holds the relevant assertions.
POST
summary
Testing gmd:MD_Metadata elements.
csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd
csw/2.0.2/CSW-discovery.xsd
The GetRecords request with a filter statement must satisfy the applicable
assertions:
1. the filter request is understood by the server and no exception concerning the
request is thrown
2. the response includes at minimum one metadata entry
Pass if the response of the GetRecords request (sent via
HTTP/SOAP/POST/XML) holds the relevant assertions.
POST
full
iso:title
*water*
iso:type
dataset
iso:RevisionDate
2006-06-09
iso:BoundingBox
14.05 46.46
17.24 48.42
iso:type
application
FAILURE: the first assertion failed
FAILURE: the second assertion failed
The response to a GetRecordById request (sent via HTTP/SOAP/POST/XML) must
satisfy the applicable assertions:
the XML representation is valid structured concerning the CSW 2.0.2 AP ISO 1.0
schemas. This response can be validated in two steps:
1. validate the MD_Metadata entry in the Namespace
"http://www.isotc211.org/2005/gmd" separate with
http://schemas.opengis.net/csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd
2. validate the CSW 2.0.2 response frame (the GetRecordByIdResponse element
within the "http://www.opengis.net/cat/csw/2.0.2" namespace) with
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd
Pass if the response of the GetRecordById request (sent via
HTTP/SOAP/POST/XML) holds the relevant assertions.
Validating record with ID
POST
csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd
csw/2.0.2/CSW-discovery.xsd
The response to a DescribeRecord request must satisfy the applicable assertions:
1. the XML record can be validated against the CSW 2.0.2 AP ISO 1.0 schemas (see
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd)
2. the XML record must include at a minimum one "SchemaComponent" element:
1. The first element contains the schema for the ISO19115/19139 data
identification definition (Namespace: http://www.isotc211.org/2005/gmd):
<csw:SchemaComponent parentSchema="gmd.xsd"
schemaLanguage="http://www.w3.org/XML/Schema"
targetNamespace="http://www.isotc211.org/2005/gmd">
<xs:schema elementFormDefault="qualified"
targetNamespace="http://www.isotc211.org/2005/gmd"
version="0.1" xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:mgd="http://www.mis.hessen.de/2007/extendedISO"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
...
Pass if the response of the DescribeRecord request (sent via
HTTP/SOAP/POST/XML) holds the relevant assertions:
POST
csw/2.0.2/CSW-discovery.xsd
FAILURE: assertion 2.1. does not hold