Plugin for Protege
- Installation
- Setup
- Concept Annotation
- Profiles
- Search
- Inter Annotator Agreement (IAA)
- Relation Annotation
- Acknowledgements
- Download the Knowtator jar file
- Install Desktop Protege 5.X.X
- Copy Knowtator-2.X.X.jar to Protege-5.X.X/plugins/
- Restart Protege
- Download Knowtator jar file
- Install Desktop Protege 5.X.X
- In Finder, right click the Protege 5 app icon
- Click "Show Package Contents"
- Go to Contents -> Java -> Plugins
- You should see the other plugins included in Protege 5 in that folder. If so, copy the Knowtator-2.X.X.jar into it. (Important: Be sure that you are copying the jar file itself and not a link to the jar file)
- Restart Protege
(See this comment thread for more help)
- Install Maven
- Install Desktop Protege 5.X.X
- Set PROTEGE_HOME environment variable to location of Protege installation
- Download source files
$ git clone https://github.com/UCDenver-ccp/Knowtator-2.0.git
- Change to project directory
$ cd Knowtator-2.0
- Install
$ mvn clean install
- Restart Protege
- Launch Protege
- Click the "Entities" tab
- Add a Knowtator view (Window -> Views -> Miscellaneous views -> Knowtator). Position your cursor in the Protege window so that the blue outline fills the right side of the window. Click to place the view.
- Make a new project (In the Knowtator view, navigate to File -> New . Note: The Knowtator menu is inside the Knowtator view). Enter a name for the project. Select parent directory. Knowtator will make a directory tree that looks like this: Project -Annotations -Articles -Ontologies -profiles -project_name.knowtator
- Load a document (
at bottom of Knowtator)
- To open a pre-existing project (
then "New")
Add as a View to a Protege tab by going to Window -> Views -> Miscellaneous Views -> Knowtator
Protege is first and foremost, an ontology editor. This plugin is intended to make use of Protege's built-in OWL-API to annotate text with OWL entities. To do so, simply select a term from the Class Hierarchy (Window -> Views -> Class views -> Class hierarchy), highlight a span of text in a document, and click the button and select "Add new concept".
To remove the selected icon, click the button.
To change the color assignment of an OWL class, click the button.
Annotations will appear as highlights in the text. Each annotation can have multiple discontinuous text spans. To add a span to an annotation, select the text to include in the span, then click the button and select "Add span to concept".
The other properties associated with an annotation are an annotation ID which is automatically generated when the annotation is made and an annotator which is discussed below.
Knowtator uses profile system to keep track of who is making each annotation. This allows for the calculation of [inter-annotator agreement)[inter-annotator-agreement] metrics. A default annotator is used for each project unless the user creates their own profile. To manage profiles, click and then "Profile". Here you can enter a profile name and add it, remove profiles, and see the color choices for each concept.
To change to a different active profile, simply select it in the profile list.
To change the color associated with a concept, click on the concept in the color list.
To view only annotation made by the active profile, in the tool bar above the text pane, select the "Profile" check box. This will filterType out all annotation not made by the active profile.
For large documents or large ontologies, it can be a challenge to find similar spans of text or to find the right concept. Knowtator provides some search tools to make the annotation process faster and easter. At the top of the text pane, there is a search box. Typing text in here and clicking "Next" or "Previous" will search the current document forward or backward respectively from the current cursor location. Alternatively, clicking "Find in ontology" will open Protege's ontology search tool. This allows you to find text in the document and then find the right concept for that text.
Instead of typing text directly, you can also simply select text in the document. You will see this text appear automatically in the search bar.
Searches can be filtered to only search text that has been associated with an annotation by clicking the "Only in annotations" check box.
IAA between the annotators in the same project can be run.
To calculate IAA, click the "IAA". Select the types of IAA you wish to run, then click "Run IAA" and choose a folder for the results to be written to.
In addition to concept annotation in text, Knowtator has also been updated to support relation annotation. Relation annotations are made by connecting two concept annotations with an OWL object property. Just like the RDF triple subject-predicate-object model, relation annotations assert a relationship between two entities. These relationships form a directed graph.
To begin making relation annotations, open the graph viewer by clicking ![][graph viewer]. The graph viewer is used to create graph spaces and display relations. Selecting a concept annotation in the text pane, and then clicking the in the graph viewer will bring that concept annotation into the current graph space. It will display as a rectangle with the color of the concept annotation and contain each of the concept annotation's the text spans. Once two or more concept annotations are in the graph space, select an object property (Window -> Views -> Object property views -> Object property hierarchy), then hover your mouse over a concept annotation node until it becomes a pointer finger. Click and drag the arrow to another concept annotation node. A window will appear allowing you to choose a quantifier or negate the relation.
All icons used are from https://icons8.com/
Thank you to Philip Ogren, the author of the original Knowtator.