Exporting WWW site

From WandoraWiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
Although topic map is very efficient data and knowledge storage format, it isn't very suitable for human eyes. Stylesheets and templates offer two slightly different methods to publish your topic map in more useful format.
+
Although topic map is very efficient data and knowledge storage format, it isn't very suitable for human eyes. To access topic maps you need Wandora type application or you need to transform topic map into a more accessible format. Stylesheets and templates offer two slightly different methods to publish your topic map in more useful format.
  
 
Wandora supports template based topic map export. Export starts selecting '''File > Export > Export site'''. Before any file is exported Wandora inquires target directory and template files. Target directory is a local folder where all export files are stored. Export templates are [http://jakarta.apache.org/velocity/index.html Apache Velocity] files used to generate HTML documents out of topics. You can also check the Wandora to download subject locator files and resize subject locator image files.
 
Wandora supports template based topic map export. Export starts selecting '''File > Export > Export site'''. Before any file is exported Wandora inquires target directory and template files. Target directory is a local folder where all export files are stored. Export templates are [http://jakarta.apache.org/velocity/index.html Apache Velocity] files used to generate HTML documents out of topics. You can also check the Wandora to download subject locator files and resize subject locator image files.

Revision as of 17:38, 16 October 2006

Although topic map is very efficient data and knowledge storage format, it isn't very suitable for human eyes. To access topic maps you need Wandora type application or you need to transform topic map into a more accessible format. Stylesheets and templates offer two slightly different methods to publish your topic map in more useful format.

Wandora supports template based topic map export. Export starts selecting File > Export > Export site. Before any file is exported Wandora inquires target directory and template files. Target directory is a local folder where all export files are stored. Export templates are Apache Velocity files used to generate HTML documents out of topics. You can also check the Wandora to download subject locator files and resize subject locator image files.


Export site.gif


After successful export the target folder contains a set of html files and a log file export.log and possibly files folder with all downloaded subject locator files. Each topic generates one html file. Number of HTML files matches the number of topics. All topic files are named topic<n>.html where <n> is a topic number. There exists two special html files: index.html and starthere.html. Index.html contains a link list of all topics. Starthere.html contains the topic that was currently open in topic panel. Below is a view to the export folder after base topic map export. As the topic map is very small the number of files also remains small.


Export site example.gif


To gain the power of template export, you probably want to edit template files. By default Wandora offers you two templates classes/gui/export/sitepage.vhtml and classes/gui/export/siteindex.vhtml. Templates are Velocity documents. Velocity is a template engine where target file is generated with simple yet powerful scripting language Velocity Template Language (VTL). Velocity is a subproject of Apache Jakarta. Learn more about the Velocity here.

Personal tools