From: Kal A. <ka...@te...> - 2004-08-23 07:27:54
|
Hi George, On Sun, 2004-08-22 at 16:44, George Tryfon wrote: > Hello, > The properties file supports the format: > > tm4j.topicmap.1=c:\mydir\myfile.xtm > tm4j.topicmap.2=c:\mydir\myfile2.xtm > > and TM4J merges the topic maps from xtm(s), It shouldn't merge the files, just load them into two separate TopicMap objects. > also I suppose (I haven't done), it will merge with: > > dburl=ozone:remote://localhost:3333 > No, that wouldn't work - the properties are just for loading topicmaps from files or URLs, so tm4j.topicmap.1=http://psi.example.com/mymap.xtm should also work, but thats all. > Theoretically speaking: > How could I merge all the above with another ozone remote server? > > Is it possible to merge two topic maps from two different OZONE servers? > You would need to create two topic map providers, one to connect to the remote server, one to connect to your local server and then use the TM4J methods to copy from the remote to the local server. For a big map that could take a while. You could use a UnifiedTopicMap backend to do the merging "on-the-fly", but there are some restrictions on that (e.g. you cannot update the merged map, you can only modify the remote and local topic maps). Cheers, Kal -- Kal Ahmed <ka...@te...> techquila |