Page 1 of 1

Importing a Topic Map FROM Wandora TO any database....

PostPosted: Thu Nov 19, 2015 8:35 pm
by athanassios
In the case there is a NoSQL database, e.g. rdf graph database, property graph database, etc....
or the user has defined his own customised schema for his SQL database, I want to achieve the following.

Import a topic map in Wandora, where the topics have IDs from the user-defined database, modify my topics there, perhaps add new as well and then
do an export of the topic map.

Now this is the tricky part, when you export your topic map, Wandora has changed all the IDs with an internal "t......." format.
Is there a way to preserve or get the mapping from the internal IDs to those that the user provided with the imported topic map.

This will be super for those users like me that want to use Wandora for an intermediate processing stage but store the result into an external database.

I am thinking of course that in the future you could develop some form of a RESTful API with JSON response.

Re: Importing a Topic Map FROM Wandora TO any database....

PostPosted: Fri Nov 20, 2015 11:25 pm
by akivela
Hello Athanassios

Yes, you are right. Wandora doesn't use id attribites of imported topic maps but creates new unique identifers for each (imported) topic. The user can't see nor alter these identifiers while using the application. Unfortunately new identifiers appear in exported topic map and original identifiers don't round trip. I have to admit that keeping the original id attributes would be a better approach. I have to think this over... I don't promise anything yet.

What do you mean by RESTful API with JSON response? Did you know that Wandora already has a server module that can output JTM topic map fragments [1].

Kind Regards,
Aki / Wandora Team

[1] http://wandora.org/wiki/JTM_topic_map_service_module

Re: Importing a Topic Map FROM Wandora TO any database....

PostPosted: Mon Nov 23, 2015 2:56 pm
by athanassios
Well, perhaps one solution will be to append IDs at the end of Subject Locator strings. I am working a new version of my NULON ontology with that in place.

Re: Importing a Topic Map FROM Wandora TO any database....

PostPosted: Sat Dec 26, 2015 12:37 am
by akivela
Hello Athanassios

I am happy to announce Wandora's XTM and LTM importers will have an option to preserve the id attributes. The feature will be part of next Wandora release. Next release has no schedule yet.

The feature is already in Wandora's Github repository but requires more testing. Basically Wandora user can choose to import identifiers too. Once imported, the identifiers are exported too and survive topic map roundtrips. The option is available in the cofiguration dialog of Wandora's topic map import.

Kind Regards,
Aki