Skip to main content

Catalogue Service for the Web 2.0.2 (CSW service)

wetransform provides a catalogue service for the web (CSW) 2.0.2 for users who want to harvest metadata published on the hale»connect platform. The CSW contains both dataset and service metadata.

The hale»connect CSW GetCapabilities URL is: https://haleconnect.com/csw?service=CSW&request=GetCapabilities

Organisation CSW endpoint

wetransform can provide organisations with an organisation specific CSW endpoint upon request. A parameter was added to the CSW that enables users to retrieve all resources belonging to an organisation by providing their organisation ID. Depending on user requirements, suborganisation metadata may be or not be included in the endpoint.

Organisation administrators can enter values for supported languages, default language, date, gemet keywords, service conformity, and temporal extent on the organisation profile page. Default values are entered automatically in the CSW GetCapabilities document if no values are entered in the fields.

Note: New suborganisations and changes to the CSW GetCapabilities document may take up to 24 h to be included in the endpoint.

The CSW GetCapabilities response document lists the supported request operations in the OperationsMetadata element, which include:

  • DescribeRecord

    The DescribeRecord request allows users to retrieve type definition(s) used by metadata of one or more registered resource types [OGC 07-006r1].

    https://haleconnect.com/csw?service=CSW&version=2.0.2&request=DescribeRecord

    The request returns a type definition document containing definition(s) of type(s) used by the metadata of one or more registered resource types. This type definition shall include the structure (schema), queryables, element sets, and formats of the metadata used for one or more registered resource types. The contents of the result of this operation depend on the types of metadata that can currently be used by registered resources [OGC 07-006r1].

  • GetDomain

    The GetDomain request retrieves information about the valid values of one or more named metadata properties.

    https://haleconnect.com/csw?service=CSW&version=2.0.2&request=GetDomain&propertyname=gmd:contactInfo

    The request returns descriptions of domains of one or more requested metadata properties or request parameters.

    The GetDomain operation is a “best-effort” operation that tries to generate useful information about the specified request parameter or property. It is possible that a catalogue may not be able to determine anything about the values of a property or request parameter beyond the basic type; in this case only a type reference or a type description will be returned. [OGC 07-006r1]

  • GetRecords

    The GetRecords operation enables users to build queries based on spatial predicates and attribute filters.

    Use the startPosition and maxRecords parameters to customize the number of results returned Use the outputSchema parameter to customize the output format Use the ElementSetName parameter (brief, summary, full) to adjust the length and detail of metadata record responses

    All records example

    https://haleconnect.com/csw?service=CSW&version=2.0.2&request=GetRecords&resultType=results&outputSchema=http://www.isotc211.org/2005/gmd&NAMESPACE=xmlns(gmd=http://www.isotc211.org/2005/gmd)&typeNames=gmd:MD_Metadata&elementSetName=full&startPosition=1&maxRecords=10

    Full text search example

    The CSW can be queried to obtain the datasets which belong to an organisation. The following example demonstrates how to retrieve 10 records for the organisation named Test Org. The constraint parameter contains an ogc:Filter which filters on organisation name.

    https://haleconnect.com/csw?service=CSW&version=2.0.2&request=GetRecords&resultType=results&outputSchema=http://www.isotc211.org/2005/gmd&NAMESPACE=xmlns(gmd=http://www.isotc211.org/2005/gmd)&typeNames=gmd:MD_Metadata&CONSTRAINTLANGUAGE=FILTER&elementSetName=full&startPosition=1&maxRecords=10&CONSTRAINT=<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gmd="http://www.isotc211.org/2005/gmd"><ogc:PropertyIsLike wildCard="%" singleChar="\_" escapeChar="!"><ogc:PropertyName>csw:AnyText</ogc:PropertyName><ogc:Literal>%Test Org%</ogc:Literal></ogc:PropertyIsLike></ogc:Filter>

    Use the startPosition parameter to issue iterative requests to the CSW to obtain all results for an organisation. Currently, the CSW returns a maximum of 10 records per request.

  • GetRecordById

    The GetRecordsById request enables users to query the service for individual metadata records through the use of identifiers. A CSW advertises which schemas it can use to represent a record in response to a GetRecordById request in the Capabilities document.

    https://haleconnect.com/csw?service=CSW&version=2.0.2&request=GetRecordById&id=07901729-84a2-4008-89c5-17403cd014ba&elementsetname=full&outputSchema=http://www.isotc211.org/2005/gmd

  • Filtering by attributes

    To filter the CSW response for the keyword “INSPIRE”, you can use the apiso:Subject property. For more information on how to create attribute-based filters, visit the pycsw codebase on GitHub.

    The CSW can be queried, for example, to obtain the metadata records that contain the keyword “INSPIRE”:

    https://haleconnect.com/csw/org/223?service=CSW&version=2.0.2&request=GetRecords&resultType=results&outputSchema=http://www.isotc211.org/2005/gmd&NAMESPACE=xmlns(gmd=http://www.isotc211.org/2005/gmd)&typeNames=gmd:MD_Metadata&CONSTRAINTLANGUAGE=FILTER&elementSetName=full&startPosition=1&maxRecords=10&CONSTRAINT=<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0" xmlns:gmd="http://www.isotc211.org/2005/gmd"><ogc:PropertyIsLike wildCard="%" singleChar="\_" escapeChar="!"><ogc:PropertyName>apiso:Subject</ogc:PropertyName><ogc:Literal>%INSPIRE%</ogc:Literal></ogc:PropertyIsLike></ogc:Filter>

Each of the request types supports a range of parameters which can be used to query and filter the returns. Requests to the CSW can be made using HTTP GET, HTTP POST (including SOAP encodings of operation requests) and XML encoded POST requests.

The hale»connect CSW also includes an ExtendedCapabilites element which contains additional metadata required for INSPIRE compliancy.

You can explore the hale»connect CSW easily in the QGIS MetaSearch Catalogue Client plug-in. In QGIS 2.0 and higher, the plug-in is installed by default. Navigate to the Web menu in the top row of resource tabs in QGIS, and select MetaSearch from the dropdown menu.

In the MetaSearch dialog, click the Services tab and click New to create a connection to the hale»connect CSW. Give the connection a name, and enter the GetCapabilities URL to the CSW. Click OK.

Next, click the Search tab in the MetaSearch dialog and enter a search term in the Keywords field to explore the available metadata records.

For more information, visit the MetaSearch documentation on the QGIS website.