Dear Marc-Andre,
i will answer in the gate list.
regards
borislav
Morin, Marc-André wrote:
>
>> -----Original Message-----
>> From: Morin, Marc-André
>> Sent: Friday, December 01, 2006 1:21 PM
>> To: [EMAIL PROTECTED]
>> Subject: HashGazetteer - New lists are loaded twice
>>
>> Hi,
>>
>> The HasGazetteer's Init() method seems to load Gazetteer lists twice:
>> In fact, for one new list, GazetteerList.load() is called twice.
>>
>> Here is the reason why:
>>
>> 1- LinearDefinition.load() is called at first;
>> That method calls LinearDefinition.add(node) method, containing
>> those two lines:
>> GazetteerList gl = loadSingleList(list);
>> gazListsByNode.put(o,gl);
>>
>> LinearDefinition.loadSingleList() method includes a call to the
>> GazetteerList.load() method.
>>
>> 2- LinearDefinition.loadLists() is called just after,
>> GazetteerList list = new GazetteerList();
>> URL lurl = new URL(url,node.getList());
>> list.setURL(lurl);
>> list.setFileName(node.getList());
>> list.setEncoding(encoding);
>> list.load();
>> GazetteerList.load() is called again!
>>
>> Regards,
>>
>> Marc-André
>>
>
> _______________________________________________
> NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of
> this mailing list.
>
> KIM-discussion mailing list
> [email protected]
> http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
>
>
>
>
_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this
mailing list.
KIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com