Dear KIM team, I wanted to extend KIM so to be able to annotate some of my concepts. I tried to follow your document about extending KIM.
Lets say, I want KIM to annotate my "Winki Pop" beach. You probably remember my beach from earlier :) Ok, so proton ontology has a Beach class, so I don't need to extend ontology. Then, I understand that KIM should work fine if the instance is in its kb. I made a file called extended_wkb.nt and put these lines in there: <http://www.ontotext.com/kim/2005/04/wkb#Beach_T.2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://proton.semanticweb.org/2005/04/protonu#Beach> . <http://www.ontotext.com/kim/2005/04/wkb#Beach_T.2> <http://www.w3.org/2000/01/rdf-schema#label> "Winki Pop" . <http://www.ontotext.com/kim/2005/04/wkb#Beach_T.2.1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://proton.semanticweb.org/2005/04/protons#Alias> . <http://www.ontotext.com/kim/2005/04/wkb#Beach_T.2.1> <http://www.w3.org/2000/01/rdf-schema#label> "Winki Pop" . <http://www.ontotext.com/kim/2005/04/wkb#Beach_T.2> <http://proton.semanticweb.org/2005/04/protons#hasAlias> <http://www.ontotext.com/kim/2005/04/wkb#Beach_T.2.1> . <http://www.ontotext.com/kim/2005/04/wkb#Beach_T.2> <http://proton.semanticweb.org/2005/04/protons#hasMainAlias> <http://www.ontotext.com/kim/2005/04/wkb#Beach_T.2.1> . <http://www.ontotext.com/kim/2005/04/wkb#Beach_T.2> <http://proton.semanticweb.org/2005/04/protont#locatedIn> <http://www.ontotext.com/kim/2005/04/wkb#Country_T.AS> . <http://www.ontotext.com/kim/2005/04/wkb#Beach_T.2> <http://proton.semanticweb.org/2005/04/protons#generatedBy> <http://www.ontotext.com/kim/2005/04/wkb#Gazetteer> . I changed the sesame.inmem.conf file so to add new value for "imports" and also for "defaultNS" so that my extend_wkb.nt will be loaded in KIM's kb. I started Sesame and KIM and it looks like everything is fine (At least it says that kb/extend_wkb.nt is loaded). I made a corpus where I have document with a sentence: "Nearby beaches include 'Southside', 'Centreside', 'Rincon', Winki Pop, 'Lowers' and 'Lower Lowers'." I started KIM Annotation Tool and make it save annotations in data store. I opened this data store from GATE and look at the Annotation Sets. There is Persistant Annotation Set with only Location, Organization and Person in there. Since there is no "Beach" in the Persist annotation set, I expect that "Winki Pop" should be annotated at least as a Location (since Beach is subclass of Location), but it is not. Am I right? Is there a way to make KIM aware of my Beach (pre-populated) without writing new IE module? Best regards, Danica Danica Damljanovic wrote: > Thank you very much! > > I tried to load Kim Client PR and it does exactly what I wanted. > > Best regards, > Danica > > borislav popov wrote: > >> Dear Danica, >> the IE.gapp has not been intended for direct loading into GATE. The >> way it is expected to be used is by loading one of the KIM Client PRs >> available for GATE. These are thin clients that deal with the >> communication with an already started KIM Server. >> The reason for this, as it is seen from the log you've sent is: KIM >> needs other external resources, like the semantic repository. The >> connection to these resources is not initialized in the IE application >> itself, but during the startup of the server. >> >> Please check if the KIM Client is fine for you or you really need >> loading the IE gapp and let us know >> have a good day >> borislav >> >> >> Danica Damljanovic wrote: >> >>> Dear KIM Team, >>> >>> I started KIM GATE GUI and tried to restore application from file >>> where I choose IE.gapp file from >>> KIM_INSTALL_DIR\context\default\resources dir. >>> >>> Each time I get the same exception: >>> >>> gate.persist.PersistenceException: java.lang.NullPointerException >>> >>> at >>> gate.util.persistence.PersistenceManager.loadObjectFromUrl(PersistenceManager.java:629) >>> >>> >>> >>> at >>> gate.util.persistence.PersistenceManager.loadObjectFromFile(PersistenceManager.java:525) >>> >>> >>> >>> at gate.gui.MainFrame$29.run(MainFrame.java:2162) >>> >>> at java.lang.Thread.run(Thread.java:534) >>> >>> Caused by: >>> java.lang.NullPointerException >>> >>> at >>> com.ontotext.kim.client.GetService.getSemanticRepositoryAPI(GetService.java:139) >>> >>> >>> >>> at com.ontotext.kim.gate.KimGazetteer.init(KimGazetteer.java:121) >>> >>> at gate.Factory.createResource(Factory.java:302) >>> >>> at >>> gate.util.persistence.ResourcePersistence.createObject(ResourcePersistence.java:82) >>> >>> >>> >>> at >>> gate.util.persistence.PRPersistence.createObject(PRPersistence.java:75) >>> >>> at >>> gate.util.persistence.LanguageAnalyserPersistence.createObject(LanguageAnalyserPersistence.java:50) >>> >>> >>> >>> at >>> gate.util.persistence.PersistenceManager.getTransientRepresentation(PersistenceManager.java:240) >>> >>> >>> >>> at >>> gate.util.persistence.CollectionPersistence.createObject(CollectionPersistence.java:68) >>> >>> >>> >>> at >>> gate.util.persistence.PersistenceManager.getTransientRepresentation(PersistenceManager.java:240) >>> >>> >>> >>> at >>> gate.util.persistence.ControllerPersistence.createObject(ControllerPersistence.java:57) >>> >>> >>> >>> at >>> gate.util.persistence.ConditionalControllerPersistence.createObject(ConditionalControllerPersistence.java:44) >>> >>> >>> >>> at >>> gate.util.persistence.PersistenceManager.getTransientRepresentation(PersistenceManager.java:240) >>> >>> >>> >>> at >>> gate.util.persistence.PersistenceManager.loadObjectFromUrl(PersistenceManager.java:609) >>> >>> >>> >>> at >>> gate.util.persistence.PersistenceManager.loadObjectFromFile(PersistenceManager.java:525) >>> >>> >>> >>> at gate.gui.MainFrame$29.run(MainFrame.java:2162) >>> >>> at java.lang.Thread.run(Thread.java:534) >>> >>> Did I missed something here? >>> >>> Best regards, >>> Danica Damljanovic >>> >>> _______________________________________________ >>> 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 > > _______________________________________________ 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
