CSW_GetCapabilities: Get Capabilities of the CSW server

Description Usage Arguments Value Examples

View source: R/get_cat_data.R

Description

The CSW_GetCapabilities function gives information about the capabilities that are available to query the catalog. By calling this function without arguments we receive an xml document with this information. We can view the contents of this document (e.g. with the utility function CSW_display_node) and study its structure. We see among other things the operations that are available and the parameters with which these operations can be called. Apart of viewing the document we can also select parts of it with functions of the xml2 package by using XPATH expressions. The vignette shows how one can see which operations are provided by the CSW interface and which parameters are available for the GetRecords operation (i.e. the CSW_GetRecords function).

Usage

1
2
3
4
5
CSW_GetCapabilities(sections = c("OperationsMetadata",
  "ServiceIdentification", "ServiceProvider", "Filter_Capabilities"),
  typeNames = c("csw:Record", "gmd:MD_Metadata",
  "gfc:FC_FeatureCatalogue", "dcat"), version = CSW_get_version(),
  baseurl = CSW_get_url(), verbose = c("N", "F", "Y"))

Arguments

sections

Character vector to restrict the output to one of the OperationsMetadata, ServiceIdentification, ServiceProvider and Filter_Capabilities sections. When the argument is not specified all information is provided. NB whatever section is requested, the Filter_Capabilities section is always included.

typeNames

Character vector with one of csw:Record, gmd:MD_Metadata, gfc:FC_FeatureCatalogue and dcat. Default csw:Record.

version

Character vector with CSW version. Default is 2.0.2 but this can be changed for the remainder of the session with CSW_set_version .

baseurl

Character vector with base url of the CSW server. Default is http://nationaalgeoregister.nl/geonetwork/srv/dut/csw? but this can be changed for the remainder of the session with CSW_set_url .

verbose

Character N, F or Y. When F the full generated and encoded url will be displayed, when Y the variable part of the url (without baseurl, service indication CSW and version) will be displayed in decoded form and when N (default) nothing of the generated url will be displayed.

Value

An xml document with the indicated server capabilities.

Examples

1
2
3
4
5
6
7
8
## Not run: 
exp1  = CSW_GetCapabilities(sections = 'OperationsMetadata',
         typeNames = 'csw:Record')
# CSW_display_node(exp1)
exp2  = CSW_GetCapabilities(sections = 'OperationsMetadata',
         typeNames = 'gmd:MD_Metadata')

## End(Not run)

HanOostdijk/CSW documentation built on May 29, 2019, 1:39 p.m.