fr.inrialpes.exmo.ontowrap
Class OntologyCache<O extends LoadedOntology>
java.lang.Object
fr.inrialpes.exmo.ontowrap.OntologyCache<O>
public class OntologyCache<O extends LoadedOntology>
- 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.
- Version:
- $Id: OntologyCache.java 1250 2010-02-15 22:21:51Z euzenat $
This class should be parameterized by O subClassOf LoadedOntology
- Author:
- Jérôme Euzenat
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ontologies
Hashtable<URI,O extends LoadedOntology> ontologies
- The list of currently loaded ontologies as a function:
URI --> Ontology
This is the ontology URI, NOT its filename
ontologyUris
Hashtable<URI,O extends LoadedOntology> ontologyUris
OntologyCache
public OntologyCache()
recordOntology
public void recordOntology(URI uri,
O ontology)
getOntology
public O getOntology(URI uri)
getOntologyFromURI
public O getOntologyFromURI(URI uri)
unloadOntology
public void unloadOntology(URI uri,
O ontology)
displayCache
public void displayCache()
clear
public void clear()
(C) INRIA & friends, 2003-2010