Alignment API and Server 3.2

fr.inrialpes.exmo.align.impl
Class OntologyCache

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.OntologyCache

public class OntologyCache
extends Object

This caches the loaded ontologies so that it is possible to share them between alignments as well as to unload them if necessary. This class is currently tied to the OWL API. It will be possible to extend it.

Version:
$Id: OntologyCache.java 524 2007-07-18 10:56:10Z euzenat $
Author:
Jérôme Euzenat

Field Summary
(package private)  Hashtable ontologies
          The list of currently loaded ontologies as a function: URI --> Ontology This is the ontology URI, NOT its filename
 
Constructor Summary
OntologyCache()
           
 
Method Summary
 void clear()
           
 org.semanticweb.owl.model.OWLOntology getOntology(URI uri)
           
 void recordOntology(URI uri, Object ontology)
           
 void unloadOntology(URI uri, Object ontology)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ontologies

Hashtable ontologies
The list of currently loaded ontologies as a function: URI --> Ontology This is the ontology URI, NOT its filename

Constructor Detail

OntologyCache

public OntologyCache()
Method Detail

recordOntology

public void recordOntology(URI uri,
                           Object ontology)

getOntology

public org.semanticweb.owl.model.OWLOntology getOntology(URI uri)

unloadOntology

public void unloadOntology(URI uri,
                           Object ontology)

clear

public void clear()

Alignment API and Server 3.2

(C) INRIA & friends, 2003-2008