Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Set the start place for a DMOZ dump?

Quote Reply
Set the start place for a DMOZ dump?
Ok, this could get confusing, but I'll try and explain as well as I can Smile

Right, when you do an Import, for example Top/Computers the data is put in as follows;

Root/Internet
Root/Software
Root/Hardware
...etc

Is there a way to set the 'start' category? I.e so it creates it in;

Root/Computers/Internet
Root/Computers/Software
Root/Computers/Hardware
... etc

or

Root/Category_Wanted/Internet
Root/Category_Wanted/Software
Root/Category_Wanted/Hardware
... etc

Do you understand what I am asking? Please let me know if there is a hack for this. I had a look around, but couldn't see one, and it doesn't appear that by default nph-import.cgi has this feature.

Thanks

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Set the start place for a DMOZ dump? In reply to
If you are referring to a destination category you want the import to be placed, you use the "rdf-destination" parameter. I use the following line:

perl ../nph-import.cgi --import RDF --destination=/path/to/defs --source="computers.rdf.gz" --rdf-category="Top/Computers" --rdf-add-date="2002-02-16" --rdf-destination="Computers" --with-gzip="/bin/gzip"

That will create a category off of the root called "Computers":

Root/Computers/Internet
Root/Computers/Software
Root/Computers/Hardware
... etc

or whatever you want to call it...

Hope that helps,
Sean

Last edited by:

SeanP: Feb 16, 2002, 9:18 PM
Quote Reply
Re: [SeanP] Set the start place for a DMOZ dump? In reply to
Thank you Smile I didn't see that in the --help option with nph-import.cgi. Is it there?

Thanks again.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] Set the start place for a DMOZ dump? In reply to
I think it's in there somewhere...
Sean