Hello,
Just today I have been attempting to get the latest version of the DBpedia
extraction framework running on my computer (Windows Vista 32-bit). I've
done a clean (full) install of PHP 5.3.0 to "C:\Program Files\PHP" (default
directory) and the checked out the SVN repository in its entirety.
To get the framework running, the Documentation page on the wiki
(http://wiki.dbpedia.org/Documentation) recommends to execute start.php via
the command line. However, this is where I start running into problems.
Executing "php start.php" (inside cmd.exe) from the "extraction" directory
returns the following:
PHP Warning: require_once(ExtractionJob.php): failed to open stream: No
such fi
le or directory in C:\Users\Alex\Documents\DBpedia\extraction\start.php on
line
96
PHP Fatal error: require_once(): Failed opening required
'ExtractionJob.php' (i
nclude_path='.;C:\php5\pear') in
C:\Users\Alex\Documents\DBpedia\extraction\star
t.php on line 96
I proceeded by trying to run extract_test.php in the same way, but also
receive an error here:
<?
class ValidateExtractionResult {
public static function validate($result, $extractor){
$triples = $result->getTriples();
$md = $extractor->getMetadata();
$produces = $md[PRODUCES];
foreach ($triples as $triple){
$checked = false;
foreach ($produces as $rule){
if($rule['type']==STARTSWITH
&&
Rule::checkStartsWith($rule, $triple)){
$checked = true;
break;
}
}
if($checked!= true){
print_r($produces);
die("Extractor:
".get_class($ext
ractor)." has wrong settings in metadata['produces'] at
\n".$triple->toString())
;
}
}
}
private static function log($message){
Logger::logComponent('core',
"validateextraction
result", DEBUG ,$message);
}
}
PHP Fatal error: Class 'ValidateExtractionResult' not found in
C:\Users\Alex\Do
cuments\DBpedia\extraction\extractors\ExtractorContainer.php on line 32
>From my previous correspondence with Jens Lehmann, I believe a full
installation of PHP 5.x (5.3 in my case) and the entire source for the
extraction framework ought to work "out of the box". However, this is far
from the case for me, and I have been rather stumped in trying to resolve
things.
As a slight side point, I should note that I did have to make a few minor
modifications to my environment after the clean installation of PHP. I was
receiving message boxes complaining that the modules libglib-2.0-0.dll and
OCI.dll could not be found, but this was resolved by copying the bin dir of
the GTK+ bundle for Windows into the root PHP dir (for the former DLL) and
commenting out the following lines in php.ini (for the latter DLL):
;[PHP_OCI8]
;extension=php_oci8.dll
;[PHP_OCI8_11G]
;extension=php_oci8_11g.dll
;[PHP_PDO_OCI]
;extension=php_pdo_oci.dll
However, judging by the presumed resolution of these issues and the details
of the error messages I am no receiving, this likely has nothing to do with
my current issues. Simple PHP scripts run fine on my computer (at least
those served from Apache).
Any assistance in figuring out the causes and solutions of these unexpected
errors would be much appreciated.
Regards,
Alex
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion