open owl ontologie with Kaon2

Posted on 2009-04-20
Last Modified: 2013-12-26
Am trying to open an owl ontologie with Kaon2 (version 2007-10-14)
Here is my code (below),
I work on Eclipse.
Here is the error I got:

"Exception in thread "main" org.semanticweb.kaon2.api.KAON2Exception: No handler for URI '' is registered.
      at Source)
      at Source)
      at org.semanticweb.kaon2.wc.openOntology(Unknown Source)
      at org.semanticweb.kaon2.wc.openOntology(Unknown Source)
      at Try.main( "

Plz, help, it's an emergency case.

import java.util.*;

import org.semanticweb.kaon2.api.*;                 // This package contains the basic classes of the API

import org.semanticweb.kaon2.api.owl.elements.*;    // This package contains classes used to represent elements of OWL ontologies

public class Try{


	   public static void main(String[] args) throws Exception {


		   KAON2Connection connection=KAON2Manager.newConnection();


		   DefaultOntologyResolver resolver=new DefaultOntologyResolver();







		   Ontology ontology=connection.openOntology("",new HashMap<String,Object>());




Open in new window

Question by:cortex7
    1 Comment

    Accepted Solution

    Prob resolved..
    I have to specify the full path of the ontologie , not the relative one.
    Thanks anyway.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: HTML5 Mobile App Development with PhoneGap

    PhoneGap can help you leverage your already existing HTML5, JavaScript, and CSS skills in order to create and deploy cross-platform mobile apps.This program comprehensively covers HTML5 mobile app development from top to bottom.

    Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
    Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now