Hi Alvaro,
    indeed it is boring to have duplications :)
The sync method is the right one to use. But as you have seen it requires a KIMDoc as a parameter.
The envisaged workflow is like this:
    a new document comes to the system
    you process it and store it
    then if you like to re-process it, you find it in the repository, reannotate something or change some doc-level features and then you sync it.

If this is your scenario - then this is how it is supposed to work.
On the other hand, if you are passing the same corpus N times to the server you would get N versions of each document in it.

Tell us your scenario and we will try to come up with a suggestion.
all the best to you
borislav

Alvaro Hernandez wrote:
Hi everybody, I'm trying to have only one annotation about a document in the store.
 
I realized that when I store a document more than once (using the storeDoc method), KIM stores it every time I use this method.
 
However, I want only one occurrence of the document in the store.
 
I found the sync method, but first I need to know if the document was previously stored.
I didn`t found how to do that, using the API.
 
Could you please help me ??
 
Thank you,
Alvaro


Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.

_______________________________________________ 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
  

No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.485 / Virus Database: 269.13.14 - Release Date: 9/10/2007 12:00 AM
_______________________________________________
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