Creating Ingestion class - conrad-blucher-institute/semaphore GitHub Wiki
These instructions are to help someone create a new Ingestion class for Semaphore.
- Create a python class the name file name of which is the same and no more than 10 alphanumeric characters in length, as this has to adhere to the DB constraints for source cods (varchar_10).
- The class should be a child of the interface IDataIngestion. It should implement the method
ingest_series
. Its up to your ingestion class to extract all the information from the request and return the series from this method. - Data should be downloaded, loaded into a series object, inserted into the db, and returned.
- Place the new class in
src/DataIngestion/DataIngestion
- Finally load the reference tables with your new source code and any new series names.
You should now be able to ingest series from your new data source.