Dear KIM Team,
Dear All.

We are working in the API and we have detected a possible bug, so that we would like to know your opinion about it.

In order to demonstrate the bug behavior, we implemented a sample program (BugTest.java).

It was implemented a simple application for some tasks:
1 - To create a document (the same document in KIM web page - examples).
2 - To annotate this document.
3 - To store and index the document.
4 - Finally, to search it through a very simple semantic query.
5 - To show the content and semantic annotation that is found.

This application receives as an input a class name, for example, Organization, Person, Country and so on.
It seems to work fine when searching for entities like Planet, Country, Continent and Organization. However it is not able to find entities related to Person or Location.

Interestingly, these entities appear as annotated on the document when it is searched for the first ones (Planet, Coutry, etc).

It is important to emphasize that this "problem" also occurs using the KIM Document and Store Population Tool (used to annotate) and Web UI (used to search for it).

Please, find attached the program source code (BugTest.java) and its output (log.txt).


Finally, we have some questions:

Is it the expected behavior?
Why some entities are found while others are not?
If these entities are shown as annotated why they cannot be found?

Kind Regards,

Leandro and Rui.



--

Leandro Loss, M. Eng.
UFSC - Universidade Federal de Santa Catarina
DAS - Departamento de Automação e Sistemas
GSIGMA - Grupo de Sistemas Inteligentes de Manufatura
Cx. Postal 476 - Florianópolis - SC       CEP 88040-900
Tel.: (++48) 3331 9742
E-mail: [EMAIL PROTECTED]
Homepage: http://www.gsigma.ufsc.br/~loss
      

Attachment: BugTest.java
Description: Binary data

KIM Server connected.
Number of documents in store: 0
LastPersistenceID=9
New document created: "Blair and Bush ? are they doing the right thing for 
Iraq, America, Europe, the Earth... for civilization... or just guided by their 
blinded eyes are in favor of the big coporations:enter here new unrecognized 
corporations with a clue suffix:MicroZoftRR Inc."
Number of documents in store: 1

Type a class name: Organization
Semantic query for documents containing: 
http://proton.semanticweb.org/2005/04/protont#Organization
Number of resulting documents: 1

[ DOCUMENT CONTENT BEGIN ]
Blair and Bush ? are they doing the right thing for Iraq, America, Europe, the 
Earth... for civilization... or just guided by their blinded eyes are in favor 
of the big coporations:enter here new unrecognized corporations with a clue 
suffix:MicroZoftRR Inc.
[ DOCUMENT CONTENT END ]

[ Document's Annotations (begin) ]
KIMAnnotationImpl: id=146; type=Organization; features={orgType=null, 
inst=http://www.ontotext.com/kim/2005/04/wkb#Organization.MicroZoftRR%20_R.49473,
 rule1=OrgXEnding, rule2=OrgFinal, originalName=MicroZoftRR Inc., 
class=http://proton.semanticweb.org/2005/04/protont#Organization}; start=241; 
end=257

KIMAnnotationImpl: id=145; type=Location; 
features={inst=http://www.ontotext.com/kim/2005/04/wkb#Planet_T.2, 
rule1=GazLocation, rule2=LocFinal, originalName=Earth, 
class=http://proton.semanticweb.org/2005/04/protonu#Planet}; start=79; end=84

KIMAnnotationImpl: id=140; type=Person; features={gender=null, 
inst=http://www.ontotext.com/kim/2005/04/wkb#Person_T.96, rule1=GazPerson, 
rule=PersonFinal, originalName=Blair, 
class=http://proton.semanticweb.org/2005/04/protont#Person}; start=0; end=5

KIMAnnotationImpl: id=143; type=Location; 
features={inst=http://www.ontotext.com/kim/2005/04/wkb#Country_T.4, 
rule1=GazLocation, rule2=LocFinal, originalName=America, 
class=http://proton.semanticweb.org/2005/04/protonu#Country}; start=58; end=65

KIMAnnotationImpl: id=144; type=Location; 
features={inst=http://www.ontotext.com/kim/2005/04/wkb#Continent_T.4, 
rule1=GazLocation, rule2=LocFinal, originalName=Europe, 
class=http://proton.semanticweb.org/2005/04/protonu#Continent}; start=67; end=73

KIMAnnotationImpl: id=142; type=Location; 
features={inst=http://www.ontotext.com/kim/2005/04/wkb#Country_T.IZ, 
rule1=GazLocation, rule2=LocFinal, originalName=Iraq, 
class=http://proton.semanticweb.org/2005/04/protonu#Country}; start=52; end=56

KIMAnnotationImpl: id=141; type=Person; features={gender=null, 
inst=http://www.ontotext.com/kim/2005/04/wkb#Person_T.80, rule1=GazPerson, 
rule=PersonFinal, originalName=Bush, 
class=http://proton.semanticweb.org/2005/04/protont#Person}; start=10; end=14

[ Document's Annotations (end) ]
Document deleted.
Number of documents in store: 0
LastPersistenceID=10
_______________________________________________
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

Reply via email to