Data administration

SOLR

The following processes are used to interact with the SOLR database.

class pavics_datacatalog.wps_processes.PavicsCrawler[source]

pavicrawler PAVICS Crawler (v0.1)

Crawl thredds server and write metadata to SOLR database.

Parameters:
  • target_files (string, optional) – Only those file names will be crawled.
  • target_thredds (string, optional) – Thredds server to scan.
Returns:

crawler_result – Crawler result as a json.

Return type:

application/json

class pavics_datacatalog.wps_processes.PavicsUpdate[source]

pavicsupdate PAVICS Catalogue Update (v0.1)

Update database entries using key:value pairs and identified by their ids.

Parameters:
  • id (string) – id field of the dataset or file.
  • type (string, optional) – The File type will update a single file, the Dataset type will update all documents sharing its dataset_id
  • updates (string) – Format is key1:value1,key2:value2,…
Returns:

update_result – Update result as a json.

Return type:

application/json

class pavics_datacatalog.wps_processes.PavicsValidate[source]

pavicsvalidate PAVICS Catalogue Validation (v0.1)

Query database entries for missing required facets.

Parameters:
  • facets (string) – Facets that are required to be present in each database entry.
  • paths (string, optional) – Limit validation to certain paths relative to thredds main directory.
  • files (string, optional) – Limit validation according to file names.
Returns:

validation_result – Validation result as a json.

Return type:

application/json