public function createBatchCreatorSoftwareAgent() { if (!\MongoDB\SoftwareAgent::find('batchcreator')) { $softwareAgent = new \MongoDB\SoftwareAgent(); $softwareAgent->_id = "batchcreator"; $softwareAgent->label = "This component is used for creating batches with units etc."; $softwareAgent->save(); } }
public function createOpenimagesVideoDescriptionExtractorSoftwareAgent() { if (!\MongoDB\SoftwareAgent::find('videodescriptiongetter')) { $softwareAgent = new \MongoDB\SoftwareAgent(); $softwareAgent->_id = "videodescriptiongetter"; $softwareAgent->label = "This component is used for getting the videos description from openimages.nl and storing them as documents within MongoDB"; $softwareAgent->save(); } }