From: Victor V. <vic...@sw...> - 2001-09-02 16:56:24
|
Hi, I have a question concerning the creation of resourceIds. Currently the resource id always starts with "http://topicmap.techquila.com/default" Only if the topic map contains a <?xml:base declaration, that url is used. My code looks like this: =================================================== location="file:data/simple-xtm.xml"; props.put("TOPIC_MAP0", location); mgr.registerProvider("com.techquila.topicmap.memory.TopicMapProviderFactoryImpl", props); TopicMap simpleTM = mgr.getTopicMap(location); Iterator topics = simpleTM.getTopics().iterator(); Topic aTopic; while ( topics.hasNext() ) { aTopic = (Topic)topics.next(); System.out.println( aTopic.getResourceID() ); } =================================================== I would expect that the resourceId would start with "file:data/simple-xtm.xml", which is the location where the topic map has been loaded from. Is this a bug? A misinterpretation? On the same line of thought: Why are there Ids AND resourceId. Both are unique. Both are always created. Bye Victor |