View Source

{excerpt}The {{SemanticAnnotationAPI}} provides a way to invoke the semantic annotation process.{excerpt} In the standard population routine, the annotation should be called after the document body and features are stored in the KIM document. Two methods of the API are implemented as web service methods:

||Web service method|| Description||
|{{execute}} | accepts a {{KIMDocument}} object as input and returns a {{KIMDocument}} object as result. The resulting document contains the newly created annotations. Additionally, all products of the information extraction process are stored in the semantic repository (new instances and relations).|
| {{executeText}} | accepts a plain string as input and returns an array of {{KIMAnnotation}} objects as result. The array contains the newly created annotations. Additionally, all products of the Information Extraction process are stored in the semantic repository (new instances and relations).|