Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Parse_RDF.pl adding Cat/Links wrong.

Quote Reply
Parse_RDF.pl adding Cat/Links wrong.
I was having problems similiar to other posts using Parse_RDF.pl and DMOZ to add Categories and Links to an existing database and finding links scattered all over the database.
The problem occurs because Parse_RDF does not get the highkey value for Categories (High ID) when it calls mysql for it. This could be a perl problem or mysql level problem (something for pugdog or Alex to look at). What it does is try to add the new Categories from DMOZ starting at Category ID 1. It fails if the table row exists but adds the Links with that Cat ID. If there is an empty row (deleted Category) it adds that ID with the Links having that ID. The end result is an unpredictalbe mess with misplaced links and orphaned categories.
The quick and easy fix is determine your highkey (high Category ID)using the admin panels or Mysqlman and set it in Parse_RDF.pl when you set your subset, prefix etc. Set the Global my $CATID to the ID of the last Category in the database. Just remember to update it each time you run Parse_RDF.pl.
Using this method I have loaded over 7000 links and their categories with several runs of Parse_RDF.pl with complete success. I hope this help those out there have problems.

Subject Author Views Date
Thread Parse_RDF.pl adding Cat/Links wrong. lparry 2821 Sep 15, 2000, 3:10 PM
Thread Re: Parse_RDF.pl adding Cat/Links wrong.
pugdog 2728 Sep 24, 2000, 2:34 PM
Thread Re: Parse_RDF.pl adding Cat/Links wrong.
lparry 2703 Sep 25, 2000, 5:23 PM
Thread Re: Parse_RDF.pl adding Cat/Links wrong.
pugdog 2699 Sep 25, 2000, 9:59 PM
Post Re: Parse_RDF.pl adding Cat/Links wrong.
lparry 2692 Sep 25, 2000, 11:42 PM