From: Lars H. <he...@se...> - 2009-03-09 14:25:18
|
Hi all, The CTMTopicMapWriter has been improved and generates better structured and therefor more readable topic maps. The topics are now grouped by their type and it is possible to define prefixes. So, if you know that your topic map uses a lot of IRIs which start for example with "http://psi.example.org/", you can create a prefix: Example output without prefixes: <http://www.example.org/Country> - "Country". <http://www.example.org/Person> - "Person". <http://www.example.org/Surname> - "Surname". Now with prefixes: CTMTopicMapWriter writer = ...; writer.addPrefix("ex", "http://psi.example.org/"); writer.write(tm); %prefix ex <http://psi.example.org/> ex:Country - "Country". ex:Person - "Person". ex:Surname - "Surname". This works for all IRIs (item identifiers and subject locators, too). A big ToDo is the usage of templates in the output, but I am not sure if I find the time soon. I think the writer is good enough to be included into the next .mio release. Any feedback is welcome. Best regards, Lars -- Semagia <http://www.semagia.com> |