Skip to end of metadata
Go to start of metadata

Viewing entities for a document

To view the entities for a document and their properties, first you have to annotate the document. For every document annotation the 'inst' feature gives an URI to a resource holding an entity.

The example below uses a SeRQL query to get the main label of each entity. It counts how many times the current entity occurred in the annotated document, fills a map with labels and counts what is viewed at the end of the example.

You can request and view all resources that are linked to an entity (properties and relations with their labels). However, for the time being, it is only possible by using direct SeRQL queries to Sesame.

Viewing entities related to the current entity

KIM does not offer a special API for this scenario because it is very custom. In order to retrieve entities related to the currently explored entity, one should send a direct query to the semantic database, using the SemanticRepositoryAPI object.

We will provide a sample SPARQL query:

Viewing relations between entities

KIM does not offer a special API for this scenario because it is very custom. In order to retrieve entities related to the currently explored entity, one should send a direct query to the semantic database, using the SemanticRepositoryAPI object.

We will provide a sample SPARQL query:

Labels:
kim_java_rmi kim_java_rmi Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.