Version 1 by Reneta Popova
on Mar 13, 2013 11:22.

compared with
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (27)

View Page History
Open the KIM GATE interface by running {{KIM/bin/kim gate}}

Open the KIM GATE interface by running {color:#444444}KIM/bin/kim gate{color}
Create a "Large KB Gazetteer" resource with the following setup:
*Figure 2. LKB Gazetteer set up*

A brief description of the properties:
* {color:#444444}annotationLimit{color} *annotationLimit* - when the gazetteer creates the amount of Lookups indicated in this property value, it stops
* {color:#444444}caseSensitive{color} *caseSensitive* - whether the matching is case sensitive or not
* {color:#444444}dictFeederClass{color} - set to
* *dictFeederClass* - set to {{}}
* {color:#444444}dictFeederParams{color} *dictFeederParams* – set the directory you created for "Person"
* {color:#444444}FeedSetupPath=$relpath$resources/gazetteer/dbpedia-person{color} {color:red}*FeedSetupPath=$relpath$resources/gazetteer/dbpedia-person*{color}
* {color:#444444}dynamicDictEnabled{color} - set to false
* *dynamicDictEnabled* - set to {{false}}
* {color:#444444}feedTransformerStages{color} *feedTransformerStages* - additional transformations over the terms
* {color:#444444}outputASName{color} *outputASName* - the Lookup annotations are created in this set – "Person"
* {color:#444444}relpath{color} - set this to KIM/context/default/resources
* {color:#444444}staticDictEnabled{color} - set this to true
* *relpath* - set this to {{KIM/context/default/resources}}
* *staticDictEnabled* - set this to {{true}}
* {color:#444444}staticDictSerializationPath{color} *staticDictSerializationPath* - the cache is stored here

When the gazetteer initializes for the first time, it will look for a file named {color:#444444}query.txt{color} {{query.txt}} in the folder set in the {color:#444444}dictFeederParams{color}. *dictFeederParams*. The gazetteer will read the query from there and initialize its dictionary. Both SPARQL and SeRQL can be used. When you design your query, it is important to use the exact order and meaning of the query parameters {color:#444444}-{color} - label, instance URI, direct class. The names are not important.

The {color:#444444}outputASName{color} *outputASName* is set to "Person". This means that the gazetteer will create its Lookup annotations in this annotation set. This is how you will differentiate between the recognized concepts by this gazetteer and other gazetteers.

Afterwards, save the application state to {{KIM/context/default/resources/IE.gapp}}.

!worddavd5d5f1d3e17c7a362816e739ae3cd08d.png|height=11,width=13! If you want the gazetteer to create its dictionaries anew, you must remove the cache from the folder you have set in {color:#444444}staticDictSerializationPath{color}. {{staticDictSerializationPath}}. In this case –
{color:#444444}KIM/context/default/populated/gazetteer-person .{color}
{{KIM/context/default/populated/gazetteer-person}} .