org.semanticweb.kaon2.api
Class KAON2Manager

java.lang.Object
  extended by org.semanticweb.kaon2.api.KAON2Manager

public class KAON2Manager
extends java.lang.Object

The manager for KAON API implementations. This is the main entry point into the whole system.


Constructor Summary
KAON2Manager()
           
 
Method Summary
static KAON2Factory factory()
          Returns the factory for the API elements.
static java.lang.String getOntologyURI(java.lang.String physicalURI, java.net.Proxy proxy)
          Returns an ontology URI for given physical URI.
static KAON2Connection newConnection()
          Creates a new connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KAON2Manager

public KAON2Manager()
Method Detail

newConnection

public static final KAON2Connection newConnection()
Creates a new connection. The class of the connection is read from the kaon2.defaultConnectionType system property. If this property is undefined, a KAON2ConnectionCore instance is created.

Returns:
the KAON2Connection

getOntologyURI

public static final java.lang.String getOntologyURI(java.lang.String physicalURI,
                                                    java.net.Proxy proxy)
                                             throws KAON2Exception
Returns an ontology URI for given physical URI.

Parameters:
physicalURI - the physical URI
proxy - the proxy to use
Returns:
the ontology URI
Throws:
KAON2Exception - thrown if there is an error

factory

public static final KAON2Factory factory()
Returns the factory for the API elements.

Returns:
the factory for API elements