From omida_srl at yahoo.com Sun Mar 20 22:29:34 2011 From: omida_srl at yahoo.com (Stefi Ghiran) Date: Sun, 20 Mar 2011 19:29:34 -0700 (PDT) Subject: [Kim-discussion] extending dbpedia (Kim 3) Message-ID: <59135.41651.qm@web32805.mail.mud.yahoo.com> Hi, I'm new to KIM. I tried the steps from http://ontotext.com/kim/doc/KimDocs-3.0-EN/CaseStudy-IntegrationDbPedia.html. At step "3.6 Setting up the gazetteers" I have some problems, and I've tried to solve them but it seems I'm missing something. The problem is I don't get any Lookup-up annotations in KIM GATE-UI with LKB Gazetteer on some text, though I do get them using KIM Web UI (with default IE.gapp). I think it's a problem regarding the params of the PR, but still I don't get it. I'm in a bottleneck right now. Also, I found a thread in which a dev. said that for filling the dictionary one should put the "query (sparql or serql) in KIM/config/query.txt ." Wasn't that supposed to be put in (any) folder and just pass the folder path in FeedSetupPath? Atached: ? lkb.jpg ? ? ? (screen shot of the params.) log.txt (output of Gate) dbpedia_instances.nt (the only .nt file, where I merged the dbpedia_*.nt files from the case study) I would be grateful if you could help me. Maybe a tip or a ref. to a thread, I'm sure there something small missing, just don't know what.. Thanks, Stephany. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dbpedia_instances.nt Type: application/octet-stream Size: 801 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lkb.JPG Type: image/jpeg Size: 68013 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: log.txt URL: From philip.alexiev at ontotext.com Mon Mar 21 06:04:07 2011 From: philip.alexiev at ontotext.com (Philip Alexiev @ Ontotext) Date: Mon, 21 Mar 2011 12:04:07 +0200 Subject: [Kim-discussion] extending dbpedia (Kim 3) In-Reply-To: <59135.41651.qm@web32805.mail.mud.yahoo.com> References: <59135.41651.qm@web32805.mail.mud.yahoo.com> Message-ID: <7338FB48-0541-4C78-995F-D1B7414C638F@ontotext.com> Hello Stephany, This may be a problem with the query. Can you send the what you have in: E:\kim_semantic\kim\context\default\resources\gazetteer\person\query.txt This is the the path you set in FeedSetupPath. The gazetteer is looking for query.txt there and using the content to query the semantic repository and fill its dictionaries. About the file KIM/config/query.txt : If you open the setup of the gazetteer already existing in the default KIM installation, you will see that its FeedSetupPath is set to KIM/config. So the default gazetteer is looking for query.txt there. If you change the query in that file, you will change the way the default gazetteer fills its dictionaries. This file is usually missing, and KIM uses a preset query. FYI: we are currently working on an improved version of this guide, which will be available soon on the site. Hope this helps, Philip Alexiev Software Engineer, KIM Platform On 21 Mar 2011, at 4:29 AM, Stefi Ghiran wrote: > Hi, > I'm new to KIM. > I tried the steps from http://ontotext.com/kim/doc/KimDocs-3.0-EN/CaseStudy-IntegrationDbPedia.html. > At step "3.6 Setting up the gazetteers" I have some problems, and I've tried to solve them but it seems I'm missing something. > The problem is I don't get any Lookup-up annotations in KIM GATE-UI with LKB Gazetteer on some text, though I do get them using > KIM Web UI (with default IE.gapp). > I think it's a problem regarding the params of the PR, but still I don't get it. I'm in a bottleneck right now. > > Also, I found a thread in which a dev. said that for filling the dictionary one should put the "query (sparql or serql) in KIM/config/query.txt ." > Wasn't that supposed to be put in (any) folder and just pass the folder path in FeedSetupPath? > > Atached: > lkb.jpg (screen shot of the params.) > log.txt (output of Gate) > dbpedia_instances.nt (the only .nt file, where I merged the dbpedia_*.nt files from the case study) > > I would be grateful if you could help me. Maybe a tip or a ref. to a thread, I'm sure there something small missing, just don't know what.. > > Thanks, Stephany. > > _______________________________________________ > Kim-discussion mailing list > Kim-discussion at ontotext.com > http://ontotext.com/mailman/listinfo/kim-discussion -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.alexiev at ontotext.com Tue Mar 22 05:19:52 2011 From: philip.alexiev at ontotext.com (Philip Alexiev @ Ontotext) Date: Tue, 22 Mar 2011 11:19:52 +0200 Subject: [Kim-discussion] extending dbpedia (Kim 3) In-Reply-To: <252766.97818.qm@web32803.mail.mud.yahoo.com> References: <252766.97818.qm@web32803.mail.mud.yahoo.com> Message-ID: <537786B9-4924-407B-8993-9DB5FCF80069@ontotext.com> Hi Stephany, I am very glad to hear you resolved this. Actually, the gazetteer should be able to work without a config.ttl file. I am attaching an archive with the LKB gazetteer documentation. It is not finished, but I think will be of help. All the best, Philip On 22 Mar 2011, at 3:31 AM, Stefi Ghiran wrote: > Hi Philip, > thanks a lot for the tip about the query (actually that was not the problem, but it helped me knowing this). > > The query worked (I tryed it using the evaluate() method of SemanticRepositoryMgmt bean). It was exactly the one from the case study for generating > the dictionary list for class Person. > > So, what was all about... > In the Gate output there was something like this (with INFO logging level, so I didn't see it easily): > > com.ontotext.lkbgaz.dictionary.AliasDictionaryPersistency - Dictionary Feeder load failed due to: > The loading from Sesame failed: KIMQueryException was caused by > File 'E:\kim_semantic\kim\plugins\..\context\default\resources\gazetteer\person\config.ttl' does not exist > > ..so I added the config.ttl (similar with the one in dictionary_from_local_ontology) > then I got: > > com.ontotext.lkbgaz.dictionary.AliasDictionaryPersistency - Dictionary Feeder load failed due to: > The loading from Sesame failed: KIMQueryException was caused by Unsupported Sail type: swiftowlim:Sail > > so I repladed it with owlim:Sail and it worked. > > All the best, > Stephany > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lkb-gazetteer-documentation.zip Type: application/zip Size: 25359 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From monikawu at gmx.de Fri Mar 25 09:00:24 2011 From: monikawu at gmx.de (Jingyu Wu) Date: Fri, 25 Mar 2011 14:00:24 +0100 Subject: [Kim-discussion] KIM knowledge base Message-ID: <20110325130024.304790@gmx.net> Hello, i want to use the KIM knowledge base to build an ontology database, when i downloaded KIM platform, i've only found a "wkb.nt" file, but the contained dataset is smaller than the knowledge base in the KIM web user interface http://ln.ontotext.com/KIM/screen/KWUIMain.jsp?m=0. Because im trying to find a person entity in KIM kb, i cant find any information about this in "wkb.nt" file while this person is in KIM UI. Where can i download a complete copy of KIM knowledge base ? Is the "wkb.nt" file a part of KIM KB ? Regards, Jingyu Wu -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl From borislav at sirma.bg Fri Mar 25 09:14:26 2011 From: borislav at sirma.bg (borislav popov) Date: Fri, 25 Mar 2011 15:14:26 +0200 Subject: [Kim-discussion] KIM knowledge base In-Reply-To: <20110325130024.304790@gmx.net> References: <20110325130024.304790@gmx.net> Message-ID: <2FEB4C25-5AB2-4BCA-A033-B52DF1554918@sirma.bg> Hi Jingyu, the kb you see in the demo is the result of a lot of automatic annotation of news articles - in this way it is being enriched with new entities and facts. that's the reason. b On Mar 25, 2011, at 3:00 PM, Jingyu Wu wrote: > Hello, > > i want to use the KIM knowledge base to build an ontology database, when i downloaded KIM platform, i've only found a "wkb.nt" file, but the contained dataset is smaller than the knowledge base in the KIM web user interface http://ln.ontotext.com/KIM/screen/KWUIMain.jsp?m=0. Because im trying to find a person entity in KIM kb, i cant find any information about this in "wkb.nt" file while this person is in KIM UI. Where can i download a complete copy of KIM knowledge base ? Is the "wkb.nt" file a part of KIM KB ? > > Regards, > Jingyu Wu > > -- > GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit > gratis Handy-Flat! http://portal.gmx.net/de/go/dsl > _______________________________________________ > Kim-discussion mailing list > Kim-discussion at ontotext.com > http://ontotext.com/mailman/listinfo/kim-discussion From philip.alexiev at ontotext.com Fri Mar 25 09:19:34 2011 From: philip.alexiev at ontotext.com (Philip Alexiev @ Ontotext) Date: Fri, 25 Mar 2011 15:19:34 +0200 Subject: [Kim-discussion] KIM knowledge base In-Reply-To: <20110325130024.304790@gmx.net> References: <20110325130024.304790@gmx.net> Message-ID: <4D2AC549-8390-4B90-BBC4-2EDE78A3ABC5@ontotext.com> Hello Monika KIM's knowledge base resides in wkb.nt and a small extension - wkbx.nt. Actually we have the concept of Trusted and Recognized entities. Trusted we call the ones that we have knowledge of and are in the knowledge base. They are well known named entities with a low level of ambiguity usually (although it depends on the domain). The trusted entities are recognized in texts by the gazetteer. Recognized entities on the other hand, are recognized by some additional resources and rules based on the different specifics of the words and context around them. For example such a rule might recognize Arthur Conan Doyle as a person in the sentence: "Sir Arthur Conan Doyle was a scottish physician and writer." The rule makes the assumption that if it meets "Sir" and several words beginning with a capital letter, then those words are actually the name of a person. Recognition of entities is usually not a very precise process (80% correct is considered good), so trusted entities have greater value. The entities you see in the web interface, after having annotated some documents, are a union of trusted and recognized entities in the texts. That is why it is richer than just the knowledge base alone. Hope this helps, Philip Alexiev Software Engineer, KIM team On 25 Mar 2011, at 3:00 PM, Jingyu Wu wrote: > Hello, > > i want to use the KIM knowledge base to build an ontology database, when i downloaded KIM platform, i've only found a "wkb.nt" file, but the contained dataset is smaller than the knowledge base in the KIM web user interface http://ln.ontotext.com/KIM/screen/KWUIMain.jsp?m=0. Because im trying to find a person entity in KIM kb, i cant find any information about this in "wkb.nt" file while this person is in KIM UI. Where can i download a complete copy of KIM knowledge base ? Is the "wkb.nt" file a part of KIM KB ? > > Regards, > Jingyu Wu > > -- > GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit > gratis Handy-Flat! http://portal.gmx.net/de/go/dsl > _______________________________________________ > Kim-discussion mailing list > Kim-discussion at ontotext.com > http://ontotext.com/mailman/listinfo/kim-discussion From vasyaichev at mail.ru Tue Mar 29 06:31:05 2011 From: vasyaichev at mail.ru (=?utf-8?Q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9_=D0=92=D0=B0=D1=81=D1=8F=D0=B9=D1=87=D0=B5=D0=B2?=) Date: Tue, 29 Mar 2011 14:31:05 +0400 Subject: [Kim-discussion] Knowledgebase update Web UI Message-ID: Hello! Does KIM (or Ontotext) platform provide any application(preferable Web) to edit(add/update/delete) existing knowledgebase(Sesame) triples? If not may be 3rd party tools exist for this? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From philip.alexiev at ontotext.com Tue Mar 29 06:45:59 2011 From: philip.alexiev at ontotext.com (Philip Alexiev @ Ontotext) Date: Tue, 29 Mar 2011 13:45:59 +0300 Subject: [Kim-discussion] Knowledgebase update Web UI In-Reply-To: References: Message-ID: <1206B2DD-CEB6-4D89-A7AA-0578042DC612@ontotext.com> Hello Sergey, Unfortunately, a tool that makes ontology editing an easier process still does not exist. The utilities we use internally are mainly Protege (protege.stanford.edu) , SWOOP (code.google.com/p/swoop/) and mostly text editors. Usually we have data in the form of lists of items, that we want to transform to RDF and attach to the ontology. This can be done in many ways, like using script languages (even bash shell alone), any programming language or even Excel. The idea is to go through the list, set the items as labels, and construct the instance URI from the text (having removed or replaced all URI special characters). Hope this helps If not - please be a little more specific and we will try to help Philip Alexiev Software Engineer, KIM Platform On 29 Mar 2011, at 1:31 PM, ?????? ???????? wrote: > Hello! > > Does KIM (or Ontotext) platform provide any application(preferable Web) to edit(add/update/delete) existing knowledgebase(Sesame) triples? > If not may be 3rd party tools exist for this? > > Thank you. > _______________________________________________ > Kim-discussion mailing list > Kim-discussion at ontotext.com > http://ontotext.com/mailman/listinfo/kim-discussion From borislav at sirma.bg Tue Mar 29 06:50:10 2011 From: borislav at sirma.bg (borislav popov) Date: Tue, 29 Mar 2011 13:50:10 +0300 Subject: [Kim-discussion] Knowledgebase update Web UI In-Reply-To: References: Message-ID: <123C5B4D-A606-4585-A51C-40F43674A8FF@sirma.bg> ??????, this type of functionality is frequently requested. We are porting the KIM UIs into a new framework e.g. check http://factforge.net/ On top of it we will provide kb editing at some point - but still not the case. The other approach with a FOREST interface is to use the built-in functionality in SPARQL - a bit more techie way to do it. borislav On Mar 29, 2011, at 1:31 PM, ?????? ???????? wrote: > Hello! > > Does KIM (or Ontotext) platform provide any application(preferable Web) to edit(add/update/delete) existing knowledgebase(Sesame) triples? > If not may be 3rd party tools exist for this? > > Thank you. > _______________________________________________ > Kim-discussion mailing list > Kim-discussion at ontotext.com > http://ontotext.com/mailman/listinfo/kim-discussion