GNOpenAPIManager
GNOpenAPIManager
Format
R6Class object.
Value
Object of R6Class with methods for communication with
the REST API of a GeoNetwork instance using the legacy API.
Super class
geonapi::GNAbstractManager -> GNOpenAPIManager
Methods
Method new()
This method is used to instantiate a GNOpenAPIManager with the url of the
   GeoNetwork and credentials to authenticate (user/pwd).
The keyring_backend can be set to use a different backend for storing
   the Geonetwork password/token with keyring (Default value is 'env').
The logger can be either NULL, "INFO" (with minimum logs), or "DEBUG" (for complete curl http calls logs)
Usage
GNOpenAPIManager$new(
  url,
  user = NULL,
  pwd = NULL,
  version,
  logger = NULL,
  keyring_backend = "env"
)Method login()
This methods attempts a connection to GeoNetwork REST API. User internally
   during initialization of GNLegacyAPIManager.
Method downloadMetadataByUUID()
Download a metadata by UUID.
Method getMetadataByUUID()
Get a metadata by UUID.
Usage
GNOpenAPIManager$getMetadataByUUID(
  uuid,
  addSchemaLocation = TRUE,
  increasePopularity = TRUE,
  approved = TRUE
)Method insertRecord()
Inserts a record by file, XML object or geometa object of class ISOMetadata or ISOFeatureCatalogue.
   Extra parameters related to geometa objects: geometa_validate (TRUE by default) and geometa_inspire
   (FALSE by default) can be used to perform ISO and INSPIRE validation respectively. In that case on object of class
   geometa::INSPIREMetadataValidator, with a proper user API key, should be specified as geometa_inspireValidator
   argument.
Usage
GNOpenAPIManager$insertRecord(
  xml = NULL,
  file = NULL,
  geometa = NULL,
  metadataType = "METADATA",
  uuidProcessing = "NOTHING",
  group,
  category = NULL,
  rejectIfInvalid = FALSE,
  publishToAll = TRUE,
  transformWith = "_none_",
  schema = NULL,
  extra = NULL,
  geometa_validate = TRUE,
  geometa_inspire = FALSE,
  geometa_inspireValidator = NULL
)Arguments
- xml
- object of class XMLInternalNode-class 
- file
- file 
- geometa
- geometa object of class ISOMetadata or ISOFeatureCatalogue 
- metadataType
- metadata type. By default - METADATA
- uuidProcessing
- UUID processing. By default - NOTHING. Other possible value:- OVERWRITE
- group
- group 
- category
- category 
- rejectIfInvalid
- reject if invalid. Default - FALSE
- publishToAll
- publish to all. Default - TRUE
- transformWith
- transform with. Default is - _none_
- schema
- schema 
- extra
- extra 
- geometa_validate
- validate geometa object 
- geometa_inspire
- validate geometa object vs. INSPIRE 
- geometa_inspireValidator
- geometa INSPIRE validator to use 
Method insertMetadata()
Inserts a metadata by file, XML object or geometa object of class ISOMetadata or ISOFeatureCatalogue.
   Extra parameters related to geometa objects: geometa_validate (TRUE by default) and geometa_inspire
   (FALSE by default) can be used to perform ISO and INSPIRE validation respectively. In that case on object of class
   geometa::INSPIREMetadataValidator, with a proper user API key, should be specified as
   geometa_inspireValidator argument.
Usage
GNOpenAPIManager$insertMetadata(
  xml = NULL,
  file = NULL,
  geometa = NULL,
  metadataType = "METADATA",
  uuidProcessing = "NOTHING",
  group,
  category = NULL,
  rejectIfInvalid = FALSE,
  publishToAll = TRUE,
  transformWith = "_none_",
  schema = NULL,
  extra = NULL,
  geometa_validate = TRUE,
  geometa_inspire = FALSE,
  geometa_inspireValidator = NULL
)Arguments
- xml
- object of class XMLInternalNode-class 
- file
- file 
- geometa
- geometa object of class ISOMetadata or ISOFeatureCatalogue 
- metadataType
- metadata type. By default - METADATA
- uuidProcessing
- UUID processing. By default - NOTHING. Other possible value:- OVERWRITE
- group
- group 
- category
- category 
- rejectIfInvalid
- reject if invalid. Default - FALSE
- publishToAll
- publish to all. Default - TRUE
- transformWith
- transform with. Default is - _none_
- schema
- schema 
- extra
- extra 
- geometa_validate
- validate geometa object 
- geometa_inspire
- validate geometa object vs. INSPIRE 
- geometa_inspireValidator
- geometa INSPIRE validator to use 
Method updateMetadata()
Inserts a metadata by file, XML object or geometa object of class ISOMetadata or ISOFeatureCatalogue.
   Extra parameters related to geometa objects: geometa_validate (TRUE by default) and geometa_inspire
   (FALSE by default) can be used to perform ISO and INSPIRE validation respectively. In that case on object of class
   geometa::INSPIREMetadataValidator, with a proper user API key, should be specified as
   geometa_inspireValidator argument.
Usage
GNOpenAPIManager$updateMetadata(
  xml = NULL,
  file = NULL,
  geometa = NULL,
  metadataType = "METADATA",
  group,
  category = NULL,
  rejectIfInvalid = FALSE,
  publishToAll = TRUE,
  transformWith = "_none_",
  schema = NULL,
  extra = NULL,
  geometa_validate = TRUE,
  geometa_inspire = FALSE,
  geometa_inspireValidator = NULL
)Arguments
- xml
- object of class XMLInternalNode-class 
- file
- file 
- geometa
- geometa object of class ISOMetadata or ISOFeatureCatalogue 
- metadataType
- metadata type. By default - METADATA
- group
- group 
- category
- category 
- rejectIfInvalid
- reject if invalid. Default - FALSE
- publishToAll
- publish to all. Default - TRUE
- transformWith
- transform with. Default is - _none_
- schema
- schema 
- extra
- extra 
- geometa_validate
- validate geometa object 
- geometa_inspire
- validate geometa object vs. INSPIRE 
- geometa_inspireValidator
- geometa INSPIRE validator to use 
Method uploadAttachment()
Uploads attachment
Method deleteDOI()
Remove a DOI (this is not recommended, DOI are supposed to be persistent once created. This is mainly here for testing).