<?php

error_reporting(E_ALL);
require 'dbpedia.php';
Timer::start("main::Runtime");
$language = Options::getOption('language');
$pageTitles = new ArticlesSqlIterator($language);
$job = new ExtractionJob(new DatabaseWikipediaCollection($language), $pageTitles);
$destination = new NTripleDumpDestination("c:/dbpedia34/en/mappingbased_new_strict_" . $language . ".nt");
$extractor = new MappingBasedExtractor();
$extractor->setFlagForNewSchemaExport(true);
$extractor->setFlagForStrictExport(true);
$groupInfoboxes = new ExtractionGroup($destination);
$groupInfoboxes->addExtractor($extractor);
$job->addExtractionGroup($groupInfoboxes);
$manager = new ExtractionManager();
$manager->execute($job);
Timer::stop("main::Runtime");
Timer::printTime();
<?php

include 'dbpedia.php';
error_reporting(E_ALL ^ E_NOTICE);
Timer::start("main::Runtime");
$language = Options::getOption('language');
$pageTitles = new ArticlesSqlIterator($language);
$job = new ExtractionJob(new DatabaseWikipediaCollection($language), $pageTitles);
$destination = new NTripleDumpDestination("c:/dbpedia34/en/mappingbased_old_lenient_" . $language . ".nt");
$extractor = new MappingBasedExtractor();
$extractor->setFlagForNewSchemaExport(false);
$extractor->setFlagForStrictExport(false);
$groupInfoboxes = new ExtractionGroup($destination);
$groupInfoboxes->addExtractor($extractor);
$job->addExtractionGroup($groupInfoboxes);
$manager = new ExtractionManager();
$manager->execute($job);
Timer::stop("main::Runtime");
Timer::printTime();