Class VitroModelSource
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.VitroModelSource
-
- All Implemented Interfaces:
org.apache.jena.rdf.model.ModelGetter,org.apache.jena.rdf.model.ModelSource
public class VitroModelSource extends Object implements org.apache.jena.rdf.model.ModelSource
ModelSource that will handle specially named Vitro models such as display and t-box. Any other models will be retrieved from the inner ModelSource. None of these models will be retrieved from the attributes of a ServletRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVitroModelSource.ModelNameEach of these values identifies a model in the system.
-
Constructor Summary
Constructors Constructor Description VitroModelSource(org.apache.jena.rdf.model.ModelSource innerSource, javax.servlet.ServletContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jena.rdf.model.ModelcreateDefaultModel()org.apache.jena.rdf.model.ModelcreateFreshModel()org.apache.jena.rdf.model.ModelgetModel(String arg0)org.apache.jena.rdf.model.ModelgetModel(String arg0, org.apache.jena.rdf.model.ModelReader arg1)static VitroModelSource.ModelNamegetModelName(String string)Returns null if the string is not a ModelName.org.apache.jena.rdf.model.ModelopenModel(String arg0)org.apache.jena.rdf.model.ModelopenModelIfPresent(String arg0)
-
-
-
Method Detail
-
getModel
public org.apache.jena.rdf.model.Model getModel(String arg0)
- Specified by:
getModelin interfaceorg.apache.jena.rdf.model.ModelGetter
-
getModel
public org.apache.jena.rdf.model.Model getModel(String arg0, org.apache.jena.rdf.model.ModelReader arg1)
- Specified by:
getModelin interfaceorg.apache.jena.rdf.model.ModelGetter
-
createDefaultModel
public org.apache.jena.rdf.model.Model createDefaultModel()
- Specified by:
createDefaultModelin interfaceorg.apache.jena.rdf.model.ModelSource
-
createFreshModel
public org.apache.jena.rdf.model.Model createFreshModel()
- Specified by:
createFreshModelin interfaceorg.apache.jena.rdf.model.ModelSource
-
openModel
public org.apache.jena.rdf.model.Model openModel(String arg0)
- Specified by:
openModelin interfaceorg.apache.jena.rdf.model.ModelSource
-
openModelIfPresent
public org.apache.jena.rdf.model.Model openModelIfPresent(String arg0)
- Specified by:
openModelIfPresentin interfaceorg.apache.jena.rdf.model.ModelSource
-
getModelName
public static VitroModelSource.ModelName getModelName(String string)
Returns null if the string is not a ModelName.
-
-