Class ModelMakerOntModelCache
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.modelaccess.ontmodels.ModelMakerOntModelCache
-
- All Implemented Interfaces:
OntModelCache
public class ModelMakerOntModelCache extends Object implements OntModelCache
When an OntModel is requested for the first time, get a model from the ModelMaker, wrap it, and cache it for subsequent requests.
-
-
Constructor Summary
Constructors Constructor Description ModelMakerOntModelCache(org.apache.jena.rdf.model.ModelMaker mm)
-
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()
-
-
-
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
-
-