Dear Philip, This helps a lot, thanks!
Additionally I also forgot to declare the rdf:type for Aristotles instance. Adding <http://dbpedia.org/resource/Aristotle> < http://www.w3.org/1999/02/22-rdf-syntax-ns#type> < http://dbpedia.org/ontology/Philosopher> . to dbpedia_kim.nt solved the empty result set problem. Kind regards, Jeremy On 16 May 2011 10:27, Philip Alexiev @ Ontotext <[email protected] > wrote: > Hello Jeremy, > > You can think of KIM as a big extension to GATE. The real picture is much > more complicated, but this will help you visualize the process. > What happens when you start KIM, is that a semantic repository is > activated (owlim), then a GATE process is initialized inside KIM, which > loads the IE.gapp pipeline. KIM also loads in memory some custom GATE > resources, some of which communicate with the semantic repository, others > work with the semantic information in the annotations etc. Almost each of > these resources use RMI to talk to the running KIM server through the > public KIM API . > That is why you can not load directly a KIM pipeline with a standalone > GATE application. > So in order to be able to load the IE.gapp pipeline in GATE, you > should have a KIM server running and all the KIM specific resources > loaded in GATE. This is what KIM does, when it is started with the > following command line: > > $ bash KIM/bin/kim gate > > It starts the semantic repository and the KIM server, then it starts an > internal instance of GATE Developer with the specified pipeline. Use this > interface to make changes to the pipeline, and make sure to save the > application after this to the same IE.gapp file. > > Hope this helps > > Philip Alexiev > Software Engineer, > KIM team > > > On 15 May 2011, at 5:58 PM, Jeremy Raes wrote: > > Hello, > > I want to use KIM for my master thesis and am currently trying to work my > way trough the same tutorial as Stephanie > (link<http://www.mail-archive.com/[email protected]/msg00752.html> > ). > > So far I was able to extend the default KIM ontology with the > dbpedia-extract, as instructed in the manual. Now I am trying to set up the > gazetteer (step 3.6), but can't seem to get it working. > > - I tried running the query that is mentioned in the manual, but all it > does is return an empty result set. > - Nonetheless, I copied-pasted the before mentioned query into a text > file (query.txt) and linked this file with my LKB-gazetteer via the > FeedSetupPath. > - I loaded /context/default/resources/IE.gapp in the GATE editor. This > loads a series of processing resources, but when I check the application > ("Conditional Corpus Pipeline_00018") there are no selected processing > resources. Loading IE.gapp also generates a series of errors: > > GATE 5.2-snapshot build 3553 started at Sat May 14 17:28:07 CEST 2011 >> >> and using Java 1.6.0_24 Apple Inc. on Mac OS X x86_64 10.6.7. >> >> CREOLE plugin loaded: >>> file:/usr/local/tomcat/webapps/kim-platform-3.0-RC4/plugins/LingPipe/ >> >> gate.creole.ResourceInstantiationException: >>> com.ontotext.kim.client.KIMException: java.lang.NullPointerException >> >> at >>> com.ontotext.kim.gate.KIMInstanceGeneratorWrapper.init(KIMInstanceGeneratorWrapper.java:28) >> >> at gate.Factory.createResource(Factory.java:384) >> >> at >>> gate.util.persistence.ResourcePersistence.createObject(ResourcePersistence.java:83) >> >> at >>> gate.util.persistence.PRPersistence.createObject(PRPersistence.java:76) >> >> at >>> gate.util.persistence.LanguageAnalyserPersistence.createObject(LanguageAnalyserPersistence.java:51) >> >> at >>> gate.util.persistence.PersistenceManager.getTransientRepresentation(PersistenceManager.java:347) >> >> at >>> gate.util.persistence.CollectionPersistence.createObject(CollectionPersistence.java:74) >> >> at >>> gate.util.persistence.PersistenceManager.getTransientRepresentation(PersistenceManager.java:347) >> >> at >>> gate.util.persistence.ControllerPersistence.createObject(ControllerPersistence.java:58) >> >> at >>> gate.util.persistence.ConditionalControllerPersistence.createObject(ConditionalControllerPersistence.java:44) >> >> at >>> gate.util.persistence.ConditionalSerialAnalyserControllerPersistence.createObject(ConditionalSerialAnalyserControllerPersistence.java:53) >> >> at >>> gate.util.persistence.PersistenceManager.getTransientRepresentation(PersistenceManager.java:347) >> >> at >>> gate.util.persistence.PersistenceManager.loadObjectFromUrl(PersistenceManager.java:744) >> >> at >>> gate.util.persistence.PersistenceManager.loadObjectFromFile(PersistenceManager.java:664) >> >> at >>> gate.gui.MainFrame$LoadResourceFromFileAction$1.run(MainFrame.java:3451) >> >> at java.lang.Thread.run(Thread.java:680) >> >> Caused by: com.ontotext.kim.client.KIMException: >>> java.lang.NullPointerException >> >> at >>> com.ontotext.kim.ig.InstanceGenerator.<init>(InstanceGenerator.java:51) >> >> at >>> com.ontotext.kim.gate.KIMInstanceGeneratorWrapper.init(KIMInstanceGeneratorWrapper.java:24) >> >> ... 15 more >> >> Caused by: java.lang.NullPointerException >> >> at >>> com.ontotext.kim.ig.InstanceGenerator.<init>(InstanceGenerator.java:44) >> >> ... 16 more >> >> [ERROR] Some resources cannot be restored: >> >> com.ontotext.kim.client.KIMException: java.lang.NullPointerException >> >> gate.persist.PersistenceException: Some resources cannot be restored: >> >> com.ontotext.kim.client.KIMException: java.lang.NullPointerException >> >> at >>> gate.util.persistence.CollectionPersistence.createObject(CollectionPersistence.java:87) >> >> at >>> gate.util.persistence.PersistenceManager.getTransientRepresentation(PersistenceManager.java:347) >> >> at >>> gate.util.persistence.ControllerPersistence.createObject(ControllerPersistence.java:58) >> >> at >>> gate.util.persistence.ConditionalControllerPersistence.createObject(ConditionalControllerPersistence.java:44) >> >> at >>> gate.util.persistence.ConditionalSerialAnalyserControllerPersistence.createObject(ConditionalSerialAnalyserControllerPersistence.java:53) >> >> at >>> gate.util.persistence.PersistenceManager.getTransientRepresentation(PersistenceManager.java:347) >> >> at >>> gate.util.persistence.PersistenceManager.loadObjectFromUrl(PersistenceManager.java:744) >> >> at >>> gate.util.persistence.PersistenceManager.loadObjectFromFile(PersistenceManager.java:664) >> >> at >>> gate.gui.MainFrame$LoadResourceFromFileAction$1.run(MainFrame.java:3451) >> >> at java.lang.Thread.run(Thread.java:680) >> >> Caused by: >> >> >>> > When I run KIM via the Web UI everything (including the extended ontology) > seems to work fine. I am also able to query the repository via VisualVM > (including queries for the added dbpedia triples). > > Please help. > > Best regards, > --Jeremy > > _______________________________________________ > Kim-discussion mailing list > [email protected] > http://ontotext.com/mailman/listinfo/kim-discussion > > >
_______________________________________________ Kim-discussion mailing list [email protected] http://ontotext.com/mailman/listinfo/kim-discussion
