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.

eZ debug

Timing: Jan 18 2025 19:06:52
Script start
Timing: Jan 18 2025 19:06:52
Module start 'layout'
Timing: Jan 18 2025 19:06:52
Module start 'content'
Timing: Jan 18 2025 19:06:53
Module end 'content'
Timing: Jan 18 2025 19:06:53
Script end

Main resources:

Total runtime0.7548 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.0234152.6094
Module start 'layout' 0.00700.0030 741.632839.4141
Module start 'content' 0.01000.7435 781.0469589.6953
Module end 'content' 0.75350.0013 1,370.742212.1875
Script end 0.7548  1,382.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4568160.0002
Check MTime0.00140.1822160.0001
Mysql Total
Database connection0.00190.251810.0019
Mysqli_queries0.699092.6087620.0113
Looping result0.00060.0762600.0000
Template Total0.715694.820.3578
Template load0.00190.258320.0010
Template processing0.713794.549820.3568
Template load and register function0.00020.032410.0002
states
state_id_array0.00170.223110.0017
state_identifier_array0.00160.213720.0008
Override
Cache load0.00180.2323320.0001
Sytem overhead
Fetch class attribute can translate value0.00090.116930.0003
Fetch class attribute name0.00160.218460.0003
XML
Image XML parsing0.00310.415130.0010
class_abstraction
Instantiating content class attribute0.00000.002360.0000
General
dbfile0.00260.3380220.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs