Hi Enzo,

We thank you for your interest in KIM but please, do not ask the same question more than once.

Our answer about the class and instance features is in the mail from 07/22/2009 !

Generally the "inst" feature holds the URI of an entity. If the entity has been recognized by the semantic gazetteer (KIM Gazetteer), it is an existing entity in the semantic repository with a specific URI. If, on the other side, it has been extracted with the help of some Jape rules for example, the entity does not exist so only a class feature should be provided. Later, if the Instance Generator PR is a part of the pipeline, it will create a unique instance URI for this entity and put it in the semantic repository.

We have provided a link to the GATE's documentation about Jape grammars in the mail from 05/25/2009 ! It is the official resource for gate documentation so use it intensely. The address is http://gate.ac.uk/sale/tao/index.html .

In order to match only the name, without the context around it you have to provide a binding to the interesting part only. This is how the rule should look like:

(
 {Token.string== "avv"}
({Token.string == "."})?
(PERSONA): avvocato
) -->
:avvocato.Person={kind = "positive", rule = "Avvocato", class = 
"http//mia.ontologia#AVVOCATO"}


What it does is well described in the gate documentation. It creates an annotation of type Person with the offsets of the avvocation binding ( described in the first part of the right hand side -> avvocation.Person ) . In the curly brackets are the features of the newly created annotation.

Please search the the documentation and the mailing list before asking.

Greetings
Philip



On 08/20/2009 02:19 AM, [email protected] wrote:
Hi all,



Rule:Avvocato
Priority: 100

// avv. Carlo Rossi

( {Token.string== "avv"}
({Token.string == "."})?
(PERSONA)

): avvocato -->
:avvocato.Person={kind = "positive", rule = "Avvocato", class = 
"http//mia.ontologia#AVVOCATO"

I have some question about JAPE Rule. The rule above is an example. I'd like to 
know what exactly KIM makes with the sintax *.person (with in the rule above).
I'd like also to know what is the difference between "class" and "inst" 
features.
This is the last question: the example above recognize me an AVVOCATO entity through "avv.". KIM's result is for 
example "AVVOCATO=avv. Carlo Rossi". But I want that the final result is only Carlo Rossi, without "avv."  In 
other words when I use KIM PLUGIN I want that is only highlighted "Carlo Rossi" and not "avv".
Is there a way to realize this thing?

Thank you in advance.


_______________________________________________
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

Reply via email to