SMILA (incubation) API documentation

org.eclipse.smila.ontology.internal
Class SesameOntologyManagerImpl

java.lang.Object
  extended by org.eclipse.smila.ontology.internal.SesameOntologyManagerImpl
All Implemented Interfaces:
SesameOntologyManager

public class SesameOntologyManagerImpl
extends java.lang.Object
implements SesameOntologyManager

Implementation of Sesame based ontology manager.

Author:
jschumacher

Field Summary
static java.lang.String CONFIG_NAME
          name of service config file.
 
Fields inherited from interface org.eclipse.smila.ontology.SesameOntologyManager
BUNDLE_ID
 
Constructor Summary
SesameOntologyManagerImpl()
          default constructor with tracing.
 
Method Summary
protected  void activate(ComponentContext context)
          
protected  void deactivate(ComponentContext context)
          OSGi Declarative Services service deactivation method.
 RepositoryConnection getConnection(java.lang.String name)
          create a new connection to the named repository.
 RepositoryConnection getDefaultConnection()
          create a new connection to the default repository.
 java.util.List<java.lang.String> getRepositoryNames()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_NAME

public static final java.lang.String CONFIG_NAME
name of service config file.

See Also:
Constant Field Values
Constructor Detail

SesameOntologyManagerImpl

public SesameOntologyManagerImpl()
default constructor with tracing.

Method Detail

getConnection

public RepositoryConnection getConnection(java.lang.String name)
                                   throws RepositoryException
create a new connection to the named repository.

Specified by:
getConnection in interface SesameOntologyManager
Parameters:
name - repository name.
Returns:
connection to named repository.
Throws:
RepositoryException
See Also:
SesameOntologyManager.getConnection(java.lang.String)

getDefaultConnection

public RepositoryConnection getDefaultConnection()
                                          throws RepositoryException
create a new connection to the default repository.

Specified by:
getDefaultConnection in interface SesameOntologyManager
Returns:
connection to default repository.
Throws:
RepositoryException
See Also:
SesameOntologyManager.getDefaultConnection()

getRepositoryNames

public java.util.List<java.lang.String> getRepositoryNames()

Specified by:
getRepositoryNames in interface SesameOntologyManager
Returns:
names of configured repositories
See Also:
SesameOntologyManager.getRepositoryNames()

activate

protected void activate(ComponentContext context)


deactivate

protected void deactivate(ComponentContext context)
OSGi Declarative Services service deactivation method.

Parameters:
context - OSGi service component context.

SMILA (incubation) API documentation