To inspect the document features, first you need to check the supported features collection. This collection has a set, containing the keys of all items available there. So walk through the collection requesting items by key.
Every KIM document has a default annotation set, which is returned by the getAnnotations() method. This annotation set holds the annotations to the document and they are available by ID or through iterating.
When you have a certain annotation set, you can request a list of all annotation types used. Then, you can also request a subset of the current annotation set, which contains only annotations of a certain type. If you want to view annotations of more than one type (E.g "Person" and "Organization"), you should build a list of them and pass it to the KIMAnnotationSet get() method.
You can inspect the features for each annotation just like inspecting the document features. First, get the document annotation set. Then, walk through the annotations, get the features collection for each annotation and view the items.
The following example is similar to the one above. The only difference is that here annotation features are requested by key. 'class' and 'inst' are essential properties of the features. The 'class' property gives the class of the feature according to the RDF repository. The 'inst' property gives the instance of an exact resource, which the feature represents (if any).