How to save and load project

From WandoraWiki
(Difference between revisions)
Jump to: navigation, search
(Internal structure of Wandora project file)
(Internal structure of Wandora project file)
Line 3: Line 3:
 
==Internal structure of Wandora project file==
 
==Internal structure of Wandora project file==
  
Wandora project file is a zip archive containing configuration file '''options.xml''' and layer folders '''layer0''', '''layer1''', '''layer2''', etc. one folder for each layer. Layer folder contains a topic map file in XTM format or alternatively XML configuration file. Memory based topic maps generate a topic map file '''topicmap.xtm''' while database topic maps generate only a configuration file '''dboptions.xml''' used to establish the database connection.
+
Wandora project file is a zip archive containing configuration file '''options.xml''' and layer folders '''layer0''', '''layer1''', '''layer2''', etc. one folder for each layer. Layer folder contains a topic map file in XTM format or alternatively XML configuration file. Memory based topic maps generate a topic map file '''topicmap.xtm''' while database topic maps generate only a configuration file '''dboptions.xml''' used to establish the database connection. Sharing the project file shares also database settings such as database username and password. Changing the file extension, Wandora project file can be opened with common zip tools as shown below.
 
+
NOTE: Project file with a database layer contains database user and password used to establish the database connection. Sharing the project file shares also the database settings!!!
+
  
  

Revision as of 18:52, 14 July 2008

Wandora project is a collection of layers (i.e. topic maps) and general Wandora settings. Project is saved with File > Save project top menu bar option. Project is loaded to Wandora with File > Open project option found also in top menu bar. Opening project deletes current project in Wandora. Consider using File > Merge project to merge projects in Wandora. File extension of Wandora project file is wpr.

Internal structure of Wandora project file

Wandora project file is a zip archive containing configuration file options.xml and layer folders layer0, layer1, layer2, etc. one folder for each layer. Layer folder contains a topic map file in XTM format or alternatively XML configuration file. Memory based topic maps generate a topic map file topicmap.xtm while database topic maps generate only a configuration file dboptions.xml used to establish the database connection. Sharing the project file shares also database settings such as database username and password. Changing the file extension, Wandora project file can be opened with common zip tools as shown below.


Project in zip.gif


Here is an example of project's options.xml. Project contains two layers both containing memory topic maps. Second layer is read-only.

<?xml version="1.0" encoding="UTF-8"?>
<options>
  <layer0>
     <visiblity>true</visiblity>
     <readonly>false</readonly>
     <name>base.xtm</name>
     <selected>true</selected>
     <type>org.wandora.topicmap.memory.TopicMapImpl</type>
  </layer0>
  <layer1>
     <visiblity>true</visiblity>
     <readonly>true</readonly>
     <name>out.ltm</name>
     <type>org.wandora.topicmap.memory.TopicMapImpl</type>
  </layer1>
</options>
Personal tools