CreatingAlgPlugin. 1 of 5 07/23/ :11 PM. Creating an Algorithm Plugin

Similar documents
1. Go to the URL Click on JDK download option

Packaging Your Program into a Distributable JAR File

WFCE - Build and deployment. WFCE - Deployment to Installed Polarion. WFCE - Execution from Workspace. WFCE - Configuration.

Even though we created a folder for the workspace, we still have to let JCreator do the same. So click File, New, and then Blank Workspace.

EMC Documentum Composer

Using Eclipse for C, MPI, and Suzaku

Lab 11-1 Creating a Knowledge Base

Import SEVIS Information from the Department of Homeland Security Trigger:

- 1 - Handout #33 March 14, 2014 JAR Files. CS106A Winter

FX SERIES. Programmer s Guide. Embedded SDK. MN000540A01 Rev. A

Lab #1: A Quick Introduction to the Eclipse IDE

EMC Documentum Composer

Getting Started with Eclipse/Java

SE - Deployment to Installed Polarion. SE - Execution from Workspace. SE - Configuration.

EMC Documentum Composer

Step 1: Use StudyMate to Publish files

Starting In Java With JPT in Eclipse

VMware Plugin Installation for Windows 8.1 or newer

Task-Oriented Solutions to Over 175 Common Problems. Covers. Eclipse 3.0. Eclipse CookbookTM. Steve Holzner

Configure Eclipse with Selenium Webdriver

form layout - we will demonstrate how to add your own custom form extensions in to form layout

Mend for Eclipse quick start guide local analysis

Question: How do I move my mobile account from the Corporate to my Personal Account?

More Skills 11 Export Queries to Other File Formats

i2b2 Workbench Developer s Guide: Eclipse Neon & i2b2 Source Code

Perforce Installation Guide (v0.4) by Qiang Wei

OMNeT++ IDE Developers Guide. Version 5.2

Exchange Address Book Order

Xitron USB Interface Installation August, 2007 Revision 3

INTERNATIONAL STANDARD

02/03/15. Compile, execute, debugging THE ECLIPSE PLATFORM. Blanks'distribu.on' Ques+ons'with'no'answer' 10" 9" 8" No."of"students"vs."no.

Tutorial: Tools for mobile Linux (TmL) Exercises

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.

RASP Library for Java Version 2.0.0

Tutorial 3 - Performing a Change-Point Analysis in Excel

Javac and Eclipse tutorial

AccuRev Plugin for Crucible Installation and Release Notes

How to Save, Print and Export Answers

Contents. Anaplan Connector for MuleSoft

Dealing with Event Viewer

Chancellor s Office Information Technology Services Corporate Information Management FIRMS Budget Review Hyperion Process

1 SEARCHING FOR A MEMBER SEARCHING FOR A WI ADDING A NEW MEMBER HOW TO ADD A DUAL MEMBER... 9

PART 1. Eclipse IDE Tutorial. 1. What is Eclipse? Eclipse Java IDE

Just Enough Eclipse What is Eclipse(TM)? Why is it important? What is this tutorial about?

PST for Outlook Admin Guide

Mobile Application Workbench. SAP Mobile Platform 3.0 SP02

Checking Out and Building Felix with NetBeans

Setting Up the Development Environment

Create Datamart. Alessandro Taurelli 2010/06/15 13:41

BlueMix Hands-On Workshop Lab A - Building and Deploying BlueMix Applications

Using Command Modeler

In order to support developers, there needs to be a number of tools available which may be involved in the ultimate solution.

Developing Android applications in Windows

TB06-003: Install Procedure for Momentum RIP 7.x & RIP Manager 3.1

PL/SQL Developer and TOAD IDE Integration Configuration

Java: Comment Text. Introduction. Concepts

USER GUIDE. MADCAP FLARE 2018 r2. Eclipse Help

Composer Help. Import and Export

The ImageJ Eclipse Howto

Copyright 2012 Pulse Systems, Inc. Page 1 of 29

How to use J2EE default server

AccuRev Plug-In for Visual Studio PE Installation and Release Notes

2012 Peer Small Business Data

Fairfield University Using Xythos for File Storage

Introduction to Network Programming in Java

Installation and Release Notes

Eclipse. JVM, main method and using Eclipse. Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics

Eclipse Plug-in for AccuRev User s Guide Version April 2012

Drools Tools Reference Guide. Version: CR1

Running Mekorma MICR on Windows Vista

Instant Charting and Reporting for Lotus Sametime. Installation Guide

CCC ONE Appraisal Platform

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)

Managing the Capability Catalog in Cisco UCS Manager

CS 315 Software Design Homework 1 First Sip of Java Due: Sept. 10, 11:30 PM

DEVELOPING OOSIML SIMULATION MODELS. Using Codeblocks

Toolkit Activity Installation and Registration

1.00/1.001 HowTo: Install Eclipse

RTMS - Software Setup

Importing the Source Models. Placing a 3D Model in the Workspace. Modified by on 25-Jul-2014

BlueMix Hands-On Workshop

Introduction to Eclipse Rich Client Platform Support in IBM Rational HATS. For IBM System i (5250)

A guide to assist dental or medical care facilities with the install of the DataGrabber, Apteryx s patented practice management bridging software.

Managing the Capability Catalog in Cisco UCS Manager

Compile and Run WordCount via Command Line

Introduction to Eclipse Rich Client Platform Support in IBM Rational HATS For IBM System i (5250)

Manage the Capability Catalog in Cisco UCS Manager

3 CREATING YOUR FIRST JAVA APPLICATION (USING WINDOWS)

Getting Started with Eclipse for Java

Nikon Capture NX "How To..." Series

End User Manual. December 2014 V1.0

Cooperative Extension Service 4HPlus! Computer Tip

Installation Guide - Windows

Working with EGL and Subversion Using RDi with RBD

S D K Q U I C K S T A R T

TIBCO LiveView Web Getting Started Guide

WinSCP. Author A.Kishore/Sachin

Extending the Cmpware CMP-DK (Version 2.0 for Eclipse 3.1)

Appendix A: Courseware setup

WordPress site Import/Export Procedure

Transcription:

CreatingAlgPlugin WikiHomePage RecentChanges Page Index Login (create account) Creating an Algorithm Plugin (78S) These instructions are written for Eclipse users, but someone not using Eclipse should be able to use them to create their own plugin. You can download the source code here: http://protege.cim3.net/file/pub/files/prompt/helloworldplugin.zip. (78T) Your Visited Pages CreatingAlgPlugin PluginsForPrompt Prompt First begin by downloading Prompt, if you do not already have the latest version. (78U) View Backlinks Open Eclipse and create a new Java Project, by clicking File - New - Project. Give the project the name, HelloWorldPlugin. Right click on your HelloWorldPlugin in the Package Exlorer and click Properties. In the dialog that opens, click the Libraries tab, then click Add External JARs. In the file open dialog, find where you have prompt.jar, select it, and click Ok. Do the same for your protege.jar file. (7DF) (78V) Search Right click on your HelloWorldPlugin in the Package Exlorer and create a new Class file. Call it, HelloWorldAlgorithm and in the Interfaces section click the Add button. In the Choose interfaces text box, type in ComparisonAlgorithmPlugin and click Add, then click Ok. Finally, click the Finish button. (7DH) (7DG) 1 of 5 07/23/2014 03:11 PM

(7DI) In your HelloWorldAlgorithm.java file, add the following methods if they were not created automatically by Eclipse. (7DJ) public String getpluginname() {nid 790} public void invokeplugin() {nid 791} public Collection performalignment(algorithmprogressmonitor progress, KnowledgeBase sourceknowledgebase, KnowledgeBase targetknowledgebase, KnowledgeBase mappingknowledgebase) {nid 792} public JComponent getconfigurationcomponent() {nid 793} public boolean validateconfigsettings() (794) Implementing the extension (7DK) Modify getpluginname. This function must return a valid string in order for your plugin to show up in Prompt. (7DL) public String getpluginname() { return "Hello World Algorithm"; } (7DM) Modify performalignment. This function is called when Prompt attempts to align two ontologies. The first parameter is a progress monitor that can be used by an algorithm plugin to communicate with Prompt about its current progress. The next two parameters are the two ontologies being aligned, and the final parameter is the mapping ontology. (79X) public Collection performalignment(algorithmprogressmonitor arg0, KnowledgeBase arg1, KnowledgeBase arg2, KnowledgeBase arg3) { return null; } (7DN) Modify getconfigurationcomponent. This function is called when the user in Prompt selects to use your algorithm. If your algorithm has configuration parameters that a user can set, this is where you can provide your own configuration panel. public JComponent getconfigurationcomponent() { return null; } (7DO) Modify validateconfigsettings. This function is called prior to Prompt running the algorithm in order for the plugin to verify that its input configuration is correct. For this simple example, we'll always return true. (7A5) public boolean validateconfigsettings() { return true; } (7DP) (7A2) Finally, the invokeplugin function can remain empty. This function is called when your plugin is first activated. (7A8) Creating a manifest file (7DQ) The manifest file is used by Prompt in order to load your plugin. If this file does not exist, the plugin will not be loaded. In Eclipse, right click on your HelloWorldPlugin project in the Package Explorer and create a new folder called META-INF. Right click on the newly created META-INF folder, and create a new file called MANIFEST.MF. (79D) Open MANIFEST.MF and add the following lines: (79E) Manifest-Version: 1.0 {nid 79F} Name: HelloWorldAlgorithm.class Comparison-Extension: True (7DR) (79B) (79C) This will tell Prompt the name of your plugin class and also the type of extension this plugin is. (79I) 2 of 5 07/23/2014 03:11 PM

Installing the plugin (7DS) Right click on your HelloWorldPlugin project in the Package Explorer and choose Export. (79K) Select under Java the JAR file option. (79L) Select the check mark by the HelloWorldPlugin project if it is not already selected. (79M) Click Browse, and navigate to your Prompt install directory. Create a new directory and call it plugins if this directory does not already exist. In the Name field, call your jar file helloworldplugin.jar. {nid 79N} (79G) (7DT) (79O) Click Next twice on the JAR Export dialog. You should now see a JAR Manifest Specification screen. Select the Use existing manifestor from workspace radio button and Browse to your MANIFEST.MF file. (79P) Finally click Finish. (79Q) 3 of 5 07/23/2014 03:11 PM

You should now be able to run Protege, open a project, open Prompt and select the Map or Merge option. You should see a drop down box displaying Hello World Algorithm. {nid 79R} (7AC) (7DU) (7DV) 4 of 5 07/23/2014 03:11 PM

View other revisions Last edited August 1, 2006 9:51 (diff) RSS 5 of 5 07/23/2014 03:11 PM