Giter Site home page Giter Site logo

protege-plugin-examples's Introduction

protege-plugin-examples

This repository contains example code for developing a tab, view, or menu plug-in for the Protege Desktop ontology editor (versions 5.0.0 and higher). The Maven POM file in the top-level directory demonstrates one possible method for packaging plug-in code into the required OSGi bundle format using the Maven Bundle Plugin.

Prerequisites

To build and run the examples, you must have the following items installed:

  • Apache's Maven.
  • A tool for checking out a Git repository.
  • A Protege distribution (5.0.0 or higher). The Protege 5.2.0 release is available from the main Protege website.

Build and install example plug-ins

  1. Get a copy of the example code:

     git clone https://github.com/protegeproject/protege-plugin-examples.git protege-plugin-examples
    
  2. Change into the protege-plugin-examples directory.

  3. Type mvn clean package. On build completion, the "target" directory will contain a protege.plugin.examples-${version}.jar file.

  4. Copy the JAR file from the target directory to the "plugins" subdirectory of your Protege distribution.

View example plug-ins in Protege

Launch your Protege distribution. Select About from the Help menu to verify successful installation:

Protege Desktop About box

The examples bundle contains:

  • Two custom tabs - "Example Tab" and "Example Tab (2)". Enable either tab via the Window | Tabs menu.
  • One custom view - "Example view component". If you enabled the Example Tab in the previous step, the Example view component will be visible on the right-hand side. Alternatively, you can enable the view via Window | Views | Ontology views.
  • Several custom menu items. Expand the Tools menu to see the custom menu items.
  • A custom top-level menu - "Example Menu". The custom top-level menu appears in the main menu bar between the Server and Tools menus. Select Example Menu to see several submenu items.

Example plug-in screenshots

Example Tab and Example view component:

Example Tab (2):

Example menu items:

Example menu:

Questions

If you have questions about developing Protege plug-ins, please navigate to the main Protege website and subscribe to the Protege Developer Support mailing list. After subscribing, send messages to protege-dev at lists.stanford.edu.

protege-plugin-examples's People

Contributors

jvendetti avatar matthewhorridge avatar tudorache avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.