Class JoinedOntModelCache
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.modelaccess.ontmodels.JoinedOntModelCache
-
- All Implemented Interfaces:
OntModelCache
public class JoinedOntModelCache extends Object implements OntModelCache
Use two OntModelCaches as one. If both caches contain models with the same name, a warning will be written to the log, and the model from the primary cache will be used. Any new models will be created on the primary cache.
-
-
Constructor Summary
Constructors Constructor Description JoinedOntModelCache(OntModelCache primary, OntModelCache secondary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedSet<String>getModelNames()Get the names of all existing models.org.apache.jena.ontology.OntModelgetOntModel(String name)Get the model with this name (URI).StringtoString()
-
-
-
Constructor Detail
-
JoinedOntModelCache
public JoinedOntModelCache(OntModelCache primary, OntModelCache secondary)
-
-
Method Detail
-
getOntModel
public org.apache.jena.ontology.OntModel getOntModel(String name)
Description copied from interface:OntModelCacheGet the model with this name (URI). If such a model does not exist, it will be created.- Specified by:
getOntModelin interfaceOntModelCache
-
getModelNames
public SortedSet<String> getModelNames()
Description copied from interface:OntModelCacheGet the names of all existing models.- Specified by:
getModelNamesin interfaceOntModelCache
-
-