Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

Problem with Parse_RDF.pl

Quote Reply
Problem with Parse_RDF.pl
I have installed links sql and mysql on my win98 and also win2k machine and they run great. I also downloaded and uncompressed the content file from Dmoz to my local disk. When I excute Parse_RDF.pl from within the setup folder, I got the following error message:

Execute: Duplicate entry '1' for key 1 at C:\WINDOWS\TEMP\DzTemp.pl line 311, <CONTENT_FILE> line 1771.
Can't locate object method "_pre_get_id" via package "DBI::st" at C:\WINDOWS\TEMP\DzTemp.pl line 213, <CONTENT_FILE> line 1818.

the setting for %IMPORT

my %IMPORT = (
'Top/business' => '/',
);

I would appreicate it very much if somebody could point out what's wrong or if it's possible to run it locally.

Thanks in advance.

Long

Quote Reply
Re: Problem with Parse_RDF.pl In reply to
has someone experienced the same problem?

Another question is can this be used with Linksql NG. it seems Linksql NG doesn't have it included.

Long

Quote Reply
Re: Problem with Parse_RDF.pl In reply to
I had made this script working for me. It seems to me there are two little bugs within the script.

1)
foreach my $cat (values %IMPORT) {
$cat =~ s,^/,,g; # Remove leading and trailing slash.
$cat =~ s,/$,,g;
### $cat =~ s,/$,,g; the trailing slash seems should not be removed

2)
my $id = $sth_Links->_pre_get_id();

## this line should be changed to the following line

my $id = $db->_pre_get_id();

and also this line

# $id ||= $sth_Links->_post_get_id();
$id ||= $db->_post_get_id();

After these fixes, it works for me on my computer.

Long