import dmoz.org links

Author Message

michail klodnerov

Tuesday 24 August 2004 4:45:56 am

Hi could somebody please point me the direction how in ezPublish do an import of XML data, some examples or so

I would like to import come categories from Open Directory Project
http://rdf.dmoz.org/rdf/structure.example.txt
http://rdf.dmoz.org/rdf/content.example.txt

it should work like this:
1. download dmoz files
2. clear current contents (we'll only display links, edit them on dmoz..)
3. import specified categories into ez folders
4. import the links to this categories as some ez objects

i checked ezSoap but dont think it can do that, does ez have some tools for this, like i would only write some xslt and go?

thanks for any help

orx

Björn Dieding@xrow.de

Wednesday 25 August 2004 3:28:31 pm

ezsoap has nothing to do with that

you will need to build RDF importer with the help of ezxml ( http://pubsvn.ez.no/doxygen/classeZXML.html )

Such thing currently does not exists in the world of eZ.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

michail klodnerov

Friday 03 September 2004 1:49:26 pm

I think it would crash on 55MB file, what i look for is SAX engine

searched the ez site gave me this:

No results were found when searching for "sax"

anyway thanks

orx

Michael Zeidler

Sunday 05 September 2004 5:20:27 am

I would not do that by using a tree based parser like SAX. The parser has to build an object tree in the memory at runtime. So with big xml files this approach can cause an heavy usage of the servers memory resources. The second disadvantage, on the countrary to event based parsers, is the processing time of a xml document caused of its xml element to object mappings. This way the object relations also has to be handled.
On the other hand by using a event based parser like expat u have to define very tricky algorithms to process rdf files, because rdf files enables node relationships between nodes spreaded withing the xml document (see: rdfs:subClassOf). And this by filling stacks with recursive functions is not so funny, I guess;).

Cheers,
mike

-------------------------------------------------------------------------------------------
join #ezpublish on irc.freenode.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.