akka.fp.Loader [FP-Akka module]
- Parses command line options for configuring MongoDBReader and MongoDBWriter actors.
- Instantiates and runs workflow comprising five Akka actors represented by the five class dependencies below.
Internally creates an instance of the nested class ScientificNameValidatorInvocation.
- Injects fp.services.COLService into the scientificNameService field of the instantiated akka.fp.NewScientificName actor.
akka.fp.NewScientificNameValidator [FP-Akka module]
- Akka actor for validating scientific name and authorship fields.
- Uses the class injected into the scientificNameService field (fp.services.COLService and its parent fp.services.SciNameServiceParent) to carry out validation tasks
- Receives individual SpecimenRecord instances from upstream MongoDBReader. For each record:
- Disassembles the specimen
- record into fields.
- Calls the validateScientificName() method on the scientificNameService (implemented by fp.services.SciNameServiceParent) passing the individual field values from the record.
- Calls getters getCurationStatus(), getCorrectedScientificName(), getCorrectedAuthor(), getLSID(), getComment(), getServiceName()
- on the scientificNameService to extract validation results.
- Builds an instance of fp.util.CurationCommentType using the results from fp.services.SciNameServiceParent.
- If the result returned by getCurationStatus() is CURATED or Filled_In, replaces the scientificName and scientificNameAuthorship fields in the input specimen record with the results from getCorrectedScientificName() and getCorrectedAuthor() respectively.
- Adds to the input specimen record
- three fields with labels scinComment, scinStatus, and scinSource
- using the results from getCurationStatus(), getComment(), and getServiceName() on the scientificNameService.
- Forwards the updated specimen record
- to downstream actors in workflow.
fp.services.COLService [FP-KurationServices module]
- Derived from fp.services.SciNameServiceParent (to which it defers most method calls).
- Overrides nameSearchAgainstServices() to look up scientific name and author in the Catalog of Life using the web service at http://www.catalogueoflife.org/col/webservice.
...