Hi Valentina,
I am glad to hear that you have succeeded to annotate your documents
correctly.
When the NERC pipeline is executed over a document, this results in
annotations with specific features over some parts of the content. The
document and its annotations are then stored in the document repository
(Oracle or Lucene in your case). You can modify this process using
different GATE processing resources. On the other side is the semantic
repository. It contains trusted and recognized instances of the classes
in the ontology. You can work with instances in the semantic repository
too, using the KIM API. The connection between those two is made with a
specific feature of the annotations - "inst" . Having this feature,
means that this annotation corresponds to an entity in the semantic
repository. So you can view documents and their annotations using the
KIM API and querying the document repository. And in the KIM Web User
Interface , you can view the documents, with some parts of them
highlighted and pointing to entities in the semantic repository. Those
references are created on the basis of the annotations. That is the link
between the document repository and the semantic repository. So you are
talking about two different sources.
About the code. The classes are from the Sesame library. Any classes
used in the examples can be found in either the KIM jars, or in its
referring libraries.
You are right that entCount is not declared. Thanks for the notice.
However, only the declaration is missing, so it's easy to fix. Just add
this line to your code:
Map entCount = new HashMap();
Wish you all the best,
Philip
Valentina De Vivo wrote:
Hi All,
1) I've annotated with success all my entities with standard features
"original name", "class", "instance", "rule", etc.;
but if I want also to show other features that I've correctly put in file .nt
consistent with the file. owl, like descriptions (view DatatypeProperty
hasDescription in my files in.space.owl and in.space.nt), how can I do? Is it
possible? Give me some advice...
2) attached there is a copy of code http://www.ontotext.com/kim/doc/sys-
doc/ExploreEntitiesExamples.html
but it seems there is an inconsistency:
where is the declaration of "entCount"?
which is the path of libraries for BNodeImpl, URIImpl, EntityQueryResult,
Resource?
Please, give me a right to run this program...
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