Skip to content

Implement extractors for retrieving dataset information #116

Description

@ricardogsilva

Extracting information about datasets shall be done via dedicated extractors. An extractor needs to be able to retrieve the relevant details in order to allow creation of new DB items. This means being able to instantiate new objects of types:

  • schemas.surveyrelatedrecords.RecordAssetCreate
  • schemas.surveyrelatedrecords.SurveyRelatedRecordCreate
  • schemas.surveymissions.SurveyMissionCreate

These will then be used to feed into the DB functions for creating new items, such as:

  • db.commands.surveymissions.create_survey_mission()
  • etc.

Extractors need to be configured in a somewhat dynamic way that takes into account the properties of the related records, which are mostly:

  • DatasetCategory
  • DomainType
  • WorkflowStage
Image

These are bootstrapped in

cliapp.bootstrapdata

The extractor needs to know about media types too. The below diagram depicts this combination:

Image

This setup of extractors shall be configurable by means of an external file, for example a JSON array, as can be seen in the image above

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions