private function loadConfigDirs() { $context = new ExtractionContext(); $destination = new StringQuadDestination(); $destinations = new SingletonQuadDestinations($destination); $context->setDestinations($destinations); // TODO: load redirects $redirects = new Redirect(); $context->setRedirects($redirects); $ontology = $this->loadOntology(); $extractor = $this->loadMappings($ontology, $context); $configHolder = new ConfigHolder($ontology, $extractor, $destinations); return $configHolder; }
private function __construct(Ontology $ontology, ExtractionContext $context) { $this->ontology = $ontology; $this->destination = $context->getDestinations()->getDestination(self::DESTINATION_ID); $this->logger = \dbpedia\core\DBpediaLogger::getLogger(__CLASS__); }