[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 680
  • Last Modified:

open owl ontologie with Kaon2

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 'http://www.owl-ontologies.com/anatomy.owl' is registered.
      at org.semanticweb.kaon2.be.b(Unknown Source)
      at org.semanticweb.kaon2.be.f(Unknown Source)
      at org.semanticweb.kaon2.wc.openOntology(Unknown Source)
      at org.semanticweb.kaon2.wc.openOntology(Unknown Source)
      at Try.main(Try.java:20) "

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("http://www.owl-ontologies.com/anatomy.owl",new HashMap<String,Object>());

Open in new window

1 Solution
cortex7Author Commented:
Prob resolved..
I have to specify the full path of the ontologie , not the relative one.
Thanks anyway.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now