Skip to content

About

Protege Desktop plug-in that allows visual, interactive navigation of the relationships in OWL ontologies.

Resources

Stars

2 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

OntoGraf

DOI

A Protégé Desktop plugin for interactive navigation of OWL ontology relationships. Enable it from Window → Tabs → OntoGraf.

OntoGraf is bundled with the default Protégé Desktop installation. This release replaces the bundled version with axiom labelling and the features described below. More user documentation is available on the Protégé wiki.

Relationship labels

OntoGraf displaying axiom labels

Use Labels: Off / Selected / All in the toolbar. Choose All to keep labels visible when clicking empty canvas or changing selection. Selected shows labels only on selected edges or edges incident to selected nodes: clicking empty canvas clears selection and hides them. Off hides all labels. The preference is remembered across sessions. Labels follow dragging and layouts, support curved edges and self-loops, and are included in image export. Long labels are shortened; full descriptions remain in tooltips and the edge inspector. Labels hide below 45% zoom.

Property names come from Protégé's configured entity renderer. Configure that renderer to prefer rdfs:label if you want those labels. Subclass and membership edges use fixed phrases; restrictions add some, all, min, max, exact or value. Two properties with the same label remain distinct edges; filter entries also show the property IRI to disambiguate them.

Graph options → Label source optionally selects an annotation on the supporting axiom, rather than an annotation on the property. Enter an annotation property IRI and preferred language. The default is relationship rendering. If an axiom has no matching annotation, its edge falls back to relationship rendering. Multiple values are chosen deterministically: preferred language, untagged, then another language, with lexical ordering. Saved views retain this choice.

Navigation and inspection

Double-click an edge to inspect its supporting axioms, ontology provenance and annotations. Text in the inspector can be selected and copied. Double-click nodes to expand/collapse. Use Graph options to pin selected nodes, set an expansion budget, read the legend, refresh the ontology index or cancel a refresh.

Expansion defaults to 200 new edges per operation. When more edges remain, the status bar reports the count; expand again to continue. Back/Forward restores view state independently of ontology edit undo/redo.

The graph currently projects asserted axioms. Domain/range edges summarise constraints and do not assert relationships between instances. Supported projections include named subclass relationships, class assertions, object-property assertions, named equivalences, intersections of supported conditions, some/all restrictions, named-filler object cardinality restrictions and object hasValue. Anonymous individuals, data/literal nodes and nested anonymous fillers are not yet visualised. Unsupported expressions are not reinterpreted as another restriction.

Saved views and exports

New .graph files use a versioned UTF-8 format with typed entity IRIs, positions, pins, camera transform, layout, filters and label settings. Legacy files remain readable. Named ontology identity includes its version; anonymous ontologies are matched by a digest of their entity signature. Missing entities are reported. Saved view settings override defaults for the restored view.

DOT exports the visible graph with stable entity identifiers, escaped labels, correct edge directions and isolated nodes. Image exports reflect canvas labels and current visibility.

Quick Installation

Use the pre-built ontograf-2.0.4-SNAPSHOT.jar in this repository's plugins directory. No build is required. This version has been validated in Protégé Desktop 5.6.9.

  1. Close Protégé Desktop.
  2. Open the plugins directory inside your Protégé installation.
  3. Rename the existing ontograf-2.0.3.jar to ontograf-2.0.3.jar.old to keep a backup and prevent the old version from loading. If your existing OntoGraf JAR has a different version, rename that file by appending .old instead.
  4. Copy plugins/ontograf-2.0.4-SNAPSHOT.jar from this repository into your Protégé installation's plugins directory. Keep the new filename unchanged; replace an existing copy of that same snapshot JAR if present.
  5. Restart Protégé and open Window → Tabs → OntoGraf.

Only the new OntoGraf JAR should remain enabled in the installation's plugins directory.

Build and installation

Use JDK 11 or newer and Maven 3.9.x:

mvn clean verify

To build without running tests:

mvn clean package -DskipTests

To explicitly use your installed Java 11:

JAVA_HOME=/usr/lib/jvm/zulu11-ca-amd64 mvn clean verify

The candidate jar is target/ontograf-2.0.4-SNAPSHOT.jar. It compiles against Protégé editor API 5.6.6 and OWLAPI 4.5.29, targeting the Protégé 5.6.x desktop line. The plugin, displayed axiom labels and compact Labels dropdown have been validated by the user in Protégé Desktop 5.6.9. Broader release checks remain in the validation checklist. This is not a Protégé 6 plugin. In a disposable host installation, replace its bundled OntoGraf jar with the candidate rather than installing two copies. Copy ontograf-2.0.4-SNAPSHOT.jar into the Protégé plugins directory and move the old OntoGraf jar aside (for example, rename ontograf-2.0.3.jar to ontograf-2.0.3.jar.old).

See the execution plan for delivery status and validation instructions for baseline evidence, tests, benchmarks, host smoke checks and remaining release work.

About

Protege Desktop plug-in that allows visual, interactive navigation of the relationships in OWL ontologies.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages