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

Forum is for miscellaneous user help requests.

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

Postby athanassios » Thu Nov 19, 2015 8:35 pm

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.
athanassios
 
Posts: 47
Joined: Wed Sep 07, 2011 12:16 pm
Location: Greece

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

Postby akivela » Fri Nov 20, 2015 11:25 pm

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
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

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

Postby athanassios » Mon Nov 23, 2015 2:56 pm

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.
athanassios
 
Posts: 47
Joined: Wed Sep 07, 2011 12:16 pm
Location: Greece

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

Postby akivela » Sat Dec 26, 2015 12:37 am

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
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland


Return to How to... and problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron