Hi Valentina
Please, use some tool to validate your custom ontology modules. It will
save both you and us some time. One thing I noticed is that your
classes extend classes from PROTON but with invalid namespace, for
example: http://proton.semanticweb.org/2006/05/protonkm#Entity . The
entire URL of Entity is
http://proton.semanticweb.org/2006/05/protons#Entity .
When a phrase is matched against more than one different entities, all
the annotations are stored in the document repository. The default
pipeline does not handle this case of ambiguity. However, this means ,
in your particular case, that this document will be returned as a
result, when you search for documents containing CalendarYear 1973 and
when you search for SongTitle 1973 .
I am not sure I understand your third question. In order to add new
classes to the ontology you have to have to follow the steps described
in the documentation
http://ontotext.com/kim/doc/sys-doc/DesigningOntology.html .
Greetings,
Philip
Valentina De Vivo wrote:
Hi Philip,
Hi All,
here three questions in order of importance for me (thanks so much for any
your advice):
1) "SongTitle" is a sub-class of Entity (which should be linked to
ontology....) in in.space.owl; and "1973", "You're beautiful", etc. are
instances of this class in in.space.nt
My program using KIM API annotates only "1973" (not "You're beautiful" or
any other instance of any other my class) as follows:
-- KIMAnnotationImpl: id=54; type=Time; features={rule1=TempYear3, class=http:
//proton.semanticweb.org/2006/05/protonu#CalendarYear, originalName=1973,
rule2=YearOnlyFinal, inst=http://www.ontotext.com/kim/2006/05/wkb#Song_1973,
kind=date}; start=0; end=4
so my program annotates "1973" incorrectly, because Song_1973 is an instance
of SongTitle, not of CalendarYear!!
I've tried to add a jape rule gaz_song.jape (as your advice, adding it also
in main.jape), but nothing has changed. Please check if it is correct not
syntactically, but logically (semantically).
2) If I wold like to get both the instance (with its features) of
CalendarYear and the instace (with its features) of SongTitle when I annotate
the word "1973", do I have to use KIM API "Search for Entities"? Or I have to
modify IE pipeline. Please give me some advice...
3) Now that I've created my classes "SongTitle", "Singer", "MusicGenre", to
populate KIM KB with instances of these classes the only way is manually? Does
toolPopulate.cmd recognize some instances if I pass them in a structured or
semi-structured way?
The first two questions are more important.
Greetings,
Valentina
------------------------------------------------------------------------
_______________________________________________
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