Alignment API and Server 4.2.${version.update}

fr.inrialpes.exmo.ontowrap
Class OntologyFactory

java.lang.Object
  extended by fr.inrialpes.exmo.ontowrap.OntologyFactory
Direct Known Subclasses:
JENAOntologyFactory, OWLAPI3OntologyFactory, OWLAPIOntologyFactory, SKOSLiteOntologyFactory, SKOSOntologyFactory

public abstract class OntologyFactory
extends Object


Field Summary
static int ALL
           
static int ANY
           
private static String API_NAME
           
static int ASSERTED
           
static int DIRECT
           
private static Map<URI,Set<String>> factories
           
static int FULL
           
static int GLOBAL
           
static int INDIRECT
           
static int INHERITED
           
protected static Hashtable<String,OntologyFactory> instances
           
static int LOCAL
           
static int MENTIONNED
           
static int NAMED
           
static int UNASSERTED
           
static int UNNAMED
           
 
Constructor Summary
OntologyFactory()
           
 
Method Summary
static void clear()
           
abstract  void clearCache()
          All Ontologies must implement clearCache() which unload their ontologies if any cache is enabled.
static String getDefaultFactory()
           
static Set<String> getFactories(URI formalism)
           
static OntologyFactory getFactory()
           
abstract  LoadedOntology loadOntology(URI uri)
          Load an ontology, cache enabled These methods should rather be in a LoadableOntologyFactory
protected static OntologyFactory newInstance(String apiName)
           
abstract  LoadedOntology newOntology(Object onto)
          Encapsulate an ontology already in the environment These methods should rather be in a LoadableOntologyFactory
static void setDefaultFactory(String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY

public static final int ANY
See Also:
Constant Field Values

DIRECT

public static final int DIRECT
See Also:
Constant Field Values

INDIRECT

public static final int INDIRECT
See Also:
Constant Field Values

ASSERTED

public static final int ASSERTED
See Also:
Constant Field Values

UNASSERTED

public static final int UNASSERTED
See Also:
Constant Field Values

INHERITED

public static final int INHERITED
See Also:
Constant Field Values

FULL

public static final int FULL
See Also:
Constant Field Values

NAMED

public static final int NAMED
See Also:
Constant Field Values

LOCAL

public static final int LOCAL
See Also:
Constant Field Values

GLOBAL

public static final int GLOBAL
See Also:
Constant Field Values

UNNAMED

public static final int UNNAMED
See Also:
Constant Field Values

MENTIONNED

public static final int MENTIONNED
See Also:
Constant Field Values

ALL

public static final int ALL
See Also:
Constant Field Values

factories

private static Map<URI,Set<String>> factories

instances

protected static Hashtable<String,OntologyFactory> instances

API_NAME

private static String API_NAME
Constructor Detail

OntologyFactory

public OntologyFactory()
Method Detail

getFactories

public static Set<String> getFactories(URI formalism)

getDefaultFactory

public static String getDefaultFactory()

setDefaultFactory

public static void setDefaultFactory(String className)

getFactory

public static OntologyFactory getFactory()

newInstance

protected static OntologyFactory newInstance(String apiName)

clear

public static void clear()
                  throws OntowrapException
Throws:
OntowrapException

clearCache

public abstract void clearCache()
                         throws OntowrapException
All Ontologies must implement clearCache() which unload their ontologies if any cache is enabled.

Throws:
OntowrapException

newOntology

public abstract LoadedOntology newOntology(Object onto)
                                    throws OntowrapException
Encapsulate an ontology already in the environment These methods should rather be in a LoadableOntologyFactory

Throws:
OntowrapException

loadOntology

public abstract LoadedOntology loadOntology(URI uri)
                                     throws OntowrapException
Load an ontology, cache enabled These methods should rather be in a LoadableOntologyFactory

Throws:
OntowrapException

Alignment API and Server 4.2.${version.update}

(C) INRIA & friends, 2003-${curryear}