Gossamer Forum
Home : Products : Gossamer Links : Discussions :

RDF Parsing Q..

Quote Reply
RDF Parsing Q..
Quick question.. I have set up my database and added some custom fields. Now I'd like to parse the DMOZ RDF file to add some additional links. Will parsing the RDF file corrupt my database, or will the import file make allowances for the additional fields? If so, is there any special command I need to use when I run the import script?

Thanks for your help! :)
Katina

Quote Reply
Re: RDF Parsing Q.. In reply to
This is an example to use with nph-import.cgi.....

perl /PATH/TO/nph-import.cgi --import RDF --source="/PATH/TO/content.rdf.u8.gz" --with-gzip="/usr/bin/gzip" --rdf-category="Top/Regional" --rdf-user="admin" --rdf-add-date="2001-01-05" --destination="/PATH/TO/defs"

...you shouldn't have any problems importing into a customized database, as long as the original tables exist.

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: RDF Parsing Q.. In reply to
Paul,

Great! Thanks for such a quick response.. I appreciate your help! :))

Katina

Quote Reply
Re: RDF Parsing Q.. In reply to
No problem. Smile

Paul Wilson.
http://www.wiredon.net/gt/
http://www.perlmad.com/
Quote Reply
Re: RDF Parsing Q.. In reply to
I imported demoz to my server. When I run the command in this post I receive
"Wrong argument passed to this subroutine"....

I am trying to import the Society category. Could you give me the command again, I seem to be missing something???

Quote Reply
Re: RDF Parsing Q.. In reply to
I imported demoz to my server. When I run the command in this post I receive
"Wrong argument passed to this subroutine"....

I am trying to import the Society category. Could you give me the command again, I seem to be missing something???

Last edited by:

jgkiefer: Sep 11, 2001, 6:26 AM
Quote Reply
Re: [PaulWilson] RDF Parsing Q.. In reply to
The code snippet I send out to people:

Code:
./nph-import.cgi --import RDF --source="./Content.rdf.txt.gz" \
--destination="/path/to/your/cgi-bin/LinkSQL/admin/defs" \
--create-missing-categories \
--rdf-category="Top/Society/Or/Cat/To/Import" \
--rdf-destination="Pet Photography" \
--with-gzip="/usr/local/bin/gzip" \
--rdf-user="admin" \
--rdf-add-date="2001-01-01"

You need to of course change the paths and file names, but these are
the basic options you need to have importing for the first time.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.