ontopia / ontopia

The open source tools for building, maintaining and deploying Topic Maps-based applications.
https://ontopia.net
Apache License 2.0
53 stars 12 forks source link

Need TopicMapSourceIF implementation that loads through the classloader #109

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In order to make it possible to deploy web applications in a portable 
manner we should make a TopicMapSourceIF implementation that is able to 
load topic map documents (XTM, CTM etc.) through the class loader. The 
goal is to avoid having to reference absolute and/or relative paths that 
may vary depending on the local system.

Original issue reported on code.google.com by indiapaleale@gmail.com on 7 Aug 2009 at 9:08

GoogleCodeExporter commented 9 years ago
This one should be easy to implement, by simply looking at the existing 
sources, so 
tagging it with Newbie.

Original comment by lar...@gmail.com on 7 Aug 2009 at 9:36

GoogleCodeExporter commented 9 years ago
I added such a TopicMapSourceIF implementation in r744, please take a look if 
it fits
your needs.

We should also include something like a TMReferenceUtils class, that creates a 
valid
TopicMapReferenceIF instance based on the syntax type, because there are several
places in the code where something like this is done, but is out of sync with 
the
codebase (e.g. does not support all available syntax types).

Original comment by thomas.n...@spaceapplications.com on 15 Dec 2009 at 2:47

GoogleCodeExporter commented 9 years ago
I've done a similar thing for a project last week, but then even for RDBMS 
topicmaps.
The trick I used was to load the tm-sources.xml through the classloader using 
the
StreamUtils. Within the tm-sources.xml was a classpath: reference to the 
property
file. Doesn't this also work for XTM/LTM/... ?

Original comment by qsieb...@gmail.com on 16 Dec 2009 at 9:00

GoogleCodeExporter commented 9 years ago
This would be great.

Original comment by idar.borlaug@gmail.com on 2 Mar 2010 at 8:04

GoogleCodeExporter commented 9 years ago
Issue resolved by ResourceTopicMapSource [1]

[1] 
https://code.google.com/p/ontopia/source/browse/trunk/ontopia-engine/src/main/ja
va/net/ontopia/topicmaps/entry/ResourceTopicMapSource.java

Original comment by qsieb...@gmail.com on 13 Mar 2014 at 3:46