<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wandora.org/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wandora.org/w/index.php?action=history&amp;feed=atom&amp;title=SQL_Dump_Export</id>
		<title>SQL Dump Export - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wandora.org/w/index.php?action=history&amp;feed=atom&amp;title=SQL_Dump_Export"/>
		<link rel="alternate" type="text/html" href="http://wandora.org/w/index.php?title=SQL_Dump_Export&amp;action=history"/>
		<updated>2026-04-18T10:06:02Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>http://wandora.org/w/index.php?title=SQL_Dump_Export&amp;diff=5889&amp;oldid=prev</id>
		<title>Akivela at 12:00, 25 October 2008</title>
		<link rel="alternate" type="text/html" href="http://wandora.org/w/index.php?title=SQL_Dump_Export&amp;diff=5889&amp;oldid=prev"/>
				<updated>2008-10-25T12:00:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:00, 25 October 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Exporting topic map ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Exporting topic map ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To start the tool, select ''Export&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/&lt;/del&gt;SQL Dump Export'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;' in ''File&lt;/del&gt;'' menu. This will export whole layer stack. You can also right click a single layer and select the tool in the context menu to export only that layer. Select the file where you want to write the SQL statements. The tool will create some temporary files during export in the default temp directory of your operating system.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To start the tool, select ''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'File &amp;gt; &lt;/ins&gt;Export &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;gt; &lt;/ins&gt;SQL Dump Export''' menu &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;option&lt;/ins&gt;. This will export whole layer stack. You can also right click a single layer and select the tool in the context menu to export only that layer. Select the file where you want to write the SQL statements. The tool will create some temporary files during export in the default temp directory of your operating system.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Importing statements ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Importing statements ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Akivela</name></author>	</entry>

	<entry>
		<id>http://wandora.org/w/index.php?title=SQL_Dump_Export&amp;diff=5832&amp;oldid=prev</id>
		<title>Akivela at 11:35, 24 October 2008</title>
		<link rel="alternate" type="text/html" href="http://wandora.org/w/index.php?title=SQL_Dump_Export&amp;diff=5832&amp;oldid=prev"/>
				<updated>2008-10-24T11:35:56Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 11:35, 24 October 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;'''Note, this feature is not yet present in the current Wandora distribution version.'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SQL Dump Export tool is used to export topic map as SQL insert statements that can be imported to a relational database.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SQL Dump Export tool is used to export topic map as SQL insert statements that can be imported to a relational database.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Akivela</name></author>	</entry>

	<entry>
		<id>http://wandora.org/w/index.php?title=SQL_Dump_Export&amp;diff=5734&amp;oldid=prev</id>
		<title>Olli: /* Importing statements */</title>
		<link rel="alternate" type="text/html" href="http://wandora.org/w/index.php?title=SQL_Dump_Export&amp;diff=5734&amp;oldid=prev"/>
				<updated>2008-09-25T07:43:07Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Importing statements&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 07:43, 25 September 2008&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To import the statements, you need to first create the SQL database and tables as described in [[Database topic map]]. However, you can greatly increase import speed if you create indexes only after you have imported all statements. The default database scripts contain ''create index'' statements at the end of the script. You should make a copy of the script and remove these statements. Then run the statements after you have imported the SQL dump file. Depending on your database configuration, you may be able to speed up the import in some other ways too. Refer to your database documentation.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To import the statements, you need to first create the SQL database and tables as described in [[Database topic map]]. However, you can greatly increase import speed if you create indexes only after you have imported all statements. The default database scripts contain ''create index'' statements at the end of the script. You should make a copy of the script and remove these statements. Then run the statements after you have imported the SQL dump file. Depending on your database configuration, you may be able to speed up the import in some other ways too. Refer to your database documentation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Note that you should import the statements in an empty database or otherwise take care that the resulting database contents describe a valid topic map. Specifically if the database is not empty, the imported statements could contain topics that merge with existing topics. Such a database would result in erratic behavior if it is used as a database topic map in Wandora.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Running from command line ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Running from command line ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Olli</name></author>	</entry>

	<entry>
		<id>http://wandora.org/w/index.php?title=SQL_Dump_Export&amp;diff=5732&amp;oldid=prev</id>
		<title>Olli at 07:36, 25 September 2008</title>
		<link rel="alternate" type="text/html" href="http://wandora.org/w/index.php?title=SQL_Dump_Export&amp;diff=5732&amp;oldid=prev"/>
				<updated>2008-09-25T07:36:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Note, this feature is not yet present in the current Wandora distribution version.'''&lt;br /&gt;
&lt;br /&gt;
SQL Dump Export tool is used to export topic map as SQL insert statements that can be imported to a relational database.&lt;br /&gt;
&lt;br /&gt;
== Exporting topic map ==&lt;br /&gt;
&lt;br /&gt;
To start the tool, select ''Export/SQL Dump Export'' in ''File'' menu. This will export whole layer stack. You can also right click a single layer and select the tool in the context menu to export only that layer. Select the file where you want to write the SQL statements. The tool will create some temporary files during export in the default temp directory of your operating system.&lt;br /&gt;
&lt;br /&gt;
== Importing statements ==&lt;br /&gt;
&lt;br /&gt;
To import the statements, you need to first create the SQL database and tables as described in [[Database topic map]]. However, you can greatly increase import speed if you create indexes only after you have imported all statements. The default database scripts contain ''create index'' statements at the end of the script. You should make a copy of the script and remove these statements. Then run the statements after you have imported the SQL dump file. Depending on your database configuration, you may be able to speed up the import in some other ways too. Refer to your database documentation.&lt;br /&gt;
&lt;br /&gt;
== Running from command line ==&lt;br /&gt;
&lt;br /&gt;
You can also run the tool from command line. The command line version will convert a topic map in XTM 2.0 format to sql statements. Note that the topic map must be in version 2.0 of XTM. The tool is also somewhat picky about what kind of constructs it understands. Specifically it will skip constructs that are not supported by the [[Reduced Topic Maps]] used in Wandora. The tool does not read the entire topic map in memory so you should be able to convert topic maps that are too big to fit in memory in Wandora application. This is the main advantage of using the command line version.&lt;br /&gt;
&lt;br /&gt;
The tool will read XTM from standard input and write results to standard output, this means that you most likely want to redirect these to and from some files. The tool will print information about the process in standard error stream. The class to run is ''org.wandora.application.tools.exporters.SQLDumpExport''. For example, to read ''input.xtm'' and write to ''out.sql'' you would run&lt;br /&gt;
&lt;br /&gt;
 java org.wandora.application.tools.exporters.SQLDumpExport &amp;lt; input.xtm &amp;gt; out.sql&lt;/div&gt;</summary>
		<author><name>Olli</name></author>	</entry>

	</feed>