CSW_GetDomain: Get Domain values of the CSW server

Description Usage Arguments Value See Also Examples

View source: R/get_cat_data.R

Description

With the GetDomain operation the CSW server can return information about ParameterNames or PropertyNames (fields).

We can inquire after the parameters of an operation by specifying the ParameterName argument. This argument consists of one or more operation.parameter pairs as in example exp1. The output is a list (or alternatively an xml_document) with the values that can be used for the parameters. In each pair the part before the point should be an operation; the part after the point a parameter. CSW_GetDomainParameterNames gives the same information for all possible combinations (at the cost of some extra run-time).

We can also use the CSW_GetDomain function to inquire which values a certain field can take in a catalog. We do this by specifying the fieldname in the PropertyName argument. This argument consists of one or more fieldnames as e.g. in example exp2. The output is (just as in the ParameterName case) a list (or alternatively an xml_document) with the values that can be taken by the field. CSW_GetQueryables will show which fieldnames (PropertyNames) are recognized.

Usage

1
2
3
CSW_GetDomain(ParameterName = "", PropertyName = "",
  output = c("list", "xml"), version = CSW_get_version(),
  baseurl = CSW_get_url(), verbose = c("N", "F", "Y"))

Arguments

ParameterName

Character vector with one or more CSW parameters. See CSW_GetDomainParameterNames for possible values. When ParameterName and PropertyName are both used in the same call ParameterName will be ignored.

PropertyName

Character vector with one or more CSW parameters. See CSW_GetQueryables for possible values. When ParameterName and PropertyName are both used in the same call ParameterName will be ignored.

output

Character vector with one of list and xml. With the default list the xml output is converted to a list.

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 or list with the values permitted (for ParameterName) or to be used (for PropertyName)

See Also

CSW_GetDomainParameterNames, CSW_GetQueryables

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
exp1 = CSW_GetDomain(
   ParameterName = "GetRecords.outputFormat,GetRecords.ElementSetName",
   verbose = "Y")
exp2 = CSW_GetDomain(
   PropertyName = "Language,GeographicDescriptionCode",
   verbose = "Y")

## End(Not run)

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