I'm still still in first steps with KIM... maybe even I' not doing the right 
things. (if's this is happening hope someone helps us )
The steps I follow to get annotations with my classes were: develop ontology 
without instances just as example in KIM 's documentation in a owl file and 
another .nt with Instances. Apparently the matches are against the Instances 
protons#Alias. So you declare the alias and associate it to the type you want 
to match with hasAlias. The key word would be that in the label of the Alias. 

.nt file

<http://www.ontotext.com/kim/2005/04/wkb#Prog2Entidades> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type><http://proton.semanticweb.org/2005/04/protons#Trusted>
 .

<http://www.ontotext.com/kim/2005/04/wkb#Stack><http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
 <http://proyecto2008#TAD_Pila> .
<http://www.ontotext.com/kim/2005/04/wkb#Stack> 
<http://www.w3.org/2000/01/rdf-schema#label> "Stack" .
<http://www.ontotext.com/kim/2005/04/wkb#Stack> 
<http://proton.semanticweb.org/2005/04/protons#generatedBy> 
<http://www.ontotext.com/kim/2005/04/wkb#Prog2Entidades> .


<http://www.ontotext.com/kim/2005/04/wkb#Stack_a> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://proton.semanticweb.org/2005/04/protons#Alias> .
<http://www.ontotext.com/kim/2005/04/wkb#Stack_a> 
<http://www.w3.org/2000/01/rdf-schema#label> "Stack" .  <<<this would be match
<http://www.ontotext.com/kim/2005/04/wkb#Stack> 
<http://proton.semanticweb.org/2005/04/protons#hasAlias> 
<http://www.ontotext.com/kim/2005/04/wkb#Stack_a> .

Also in the configuration in sesame.inmen.conf..  

 <!-- semicolon should be used as delimiter -->
   <param name="imports" value=
    "kb/owl/owl.rdfs;
     kb/owl/protons.owl;
     kb/owl/protont.owl;
     kb/owl/protonu.owl;
     kb/owl/protonkm.owl;
     kb/owl/kimso.owl;
     kb/owl/kimlo.owl;
     kb/owl/Prog2OntoParaKim.owl;  <<<< mine
    kb/Prog2Onto.nt;   <<<< mine
     kb/wkbx.nt;
     kb/ignorelist.nt;
     kb/visibility.nt;"/>
   <param name="defaultNS" value=
    "http://www.w3.org/2002/07/owl#;
    http://proton.semanticweb.org/2005/04/protons#;
    http://proton.semanticweb.org/2005/04/protont#;
    http://proton.semanticweb.org/2005/04/protonu#;
    http://proton.semanticweb.org/2005/04/protonkm#;
    http://www.ontotext.com/kim/2005/04/kimso#;
    http://www.ontotext.com/kim/2005/04/kimlo#;
    http://proyecto2008#;     <<<<mine
    http://www.ontotext.com/kim/2005/04/wkb#; 
    http://www.ontotext.com/kim/2005/04/wkb#;
    http://www.ontotext.com/kim/2005/04/wkb#;

    http://www.ontotext.com/kim/2005/04/wkb#;"/>  
     <param name="concurentInference" value="true"/>

Hope this help.


From: Zoran Jeremic 
Sent: Thursday, August 28, 2008 4:29 PM
To: [email protected] ; Rodolfo 
Subject: Re: [KIM-discussion] Problem to extend Proton ontology


      Rodolfo,

      Thank you for your suggestion, but it didn't help. Now this annotates 
only CalendarYear, DateTime and WebPage classes from protonu namespace. 

      Do you have some other suggestions?

      Thanks
      Zoran


      --- On Thu, 8/28/08, Rodolfo <[EMAIL PROTECTED]> wrote:

        From: Rodolfo <[EMAIL PROTECTED]>
        Subject: Re: [KIM-discussion] Problem to extend Proton ontology
        To: [EMAIL PROTECTED], [email protected]
        Date: Thursday, August 28, 2008, 5:47 AM


        Try not importing wbk.nt, and do it with your own .nt instances file. 
The import is defined in sesame ../config/sesame.inmen.conf. (change the 
/wkb.nt file for your own).
        Hope this help. If this is what your talking about and need further 
details, just write.
        Regards,
        Rodolfo.


        From: Zoran Jeremic 
        Sent: Wednesday, August 27, 2008 5:20 PM
        To: [email protected] 
        Subject: [KIM-discussion] Problem to extend Proton ontology


              Hi,

              I am trying to extend Proton ontology by adding my domain 
ontology that imports seven ontologies more.Each domain class is a subClassOf 
Topic class.

              I have added several instances of my domain classes, which are in 
the domain wkb, like:

              <http://www..ontotext.com/kim/2006/05/wkb#AbstractFactory> 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
<http://cse.unl.edu/~scotth/SWont/Patterns/GoFForm.owl#GoF_Form> .
              <http://www.ontotext.com/kim/2006/05/wkb#AbstractFactory> 
<http://proton.semanticweb.org/2005/04/protons#mainLabel> "Abstract 
Factory"^^<http://www.w3.org/2001/XMLSchema#string> .
              <http://www.ontotext.com/kim/2006/05/wkb#AbstractFactory> 
<http://www.w3.org/2000/01/rdf-schema#label> "Abstract Factory".
              <http://www.ontotext.com/kim/2006/05/wkb#AbstractFactory> 
<http://cse.unl.edu/~scotth/SWont/Patterns/GoFForm.owl#hasAlsoKnownAs> 
"Abstract Factory Design Pattern"^^<http://www.w3.org/2001/XMLSchema#string> .

              I have added this n-triples in the wkb.nt file.
              When I try to annotate the web page that contains text "Abstract 
Factory" it doesn't found it, but it annotates other instances from protonu 
namespace.

              I have tried to add an instance of Person class in order to check 
if I have not extended Proton well, but the result is the same. 

              This entity is available through WebUI when I search for 
entities, but it does not found any document that contains this text.

              I have deleted all files from kim/context/default/populated/cache 
and kim/context/default/populated/index-and-store. 

              I have tried to find some documents on extending Proton ontology, 
but it is seems that there is no to much documents about it. I have read this 
thread 
http://ontotext.com/mailman/private/kim-discussion_ontotext.com/2006-August/000382.html,
 but those links are dead.

              Can you tell me what I have missed to do?

              Thanks
              Zoran 



------------------------------------------------------------------------

        _______________________________________________
        NOTE: Please REPLY TO ALL to ensure that your reply reaches all members 
of this mailing list.

        KIM-discussion mailing list
        [email protected]
        http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
     

<<Emoticon1.gif>>

_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this 
mailing list.

KIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com

Reply via email to