Class FileGraphSetup
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.servlet.setup.FileGraphSetup
-
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public class FileGraphSetup extends Object implements javax.servlet.ServletContextListener
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILEGRAPH_URI_ROOT
-
Constructor Summary
Constructors Constructor Description FileGraphSetup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanupDB(org.apache.jena.query.Dataset dataset, Set<String> uriSet, String type)voidcontextDestroyed(javax.servlet.ServletContextEvent sce)voidcontextInitialized(javax.servlet.ServletContextEvent sce)booleanupdateGraphInDB(RDFService rdfService, org.apache.jena.rdf.model.Model fileModel, String type, Path path)
-
-
-
Field Detail
-
FILEGRAPH_URI_ROOT
public static final String FILEGRAPH_URI_ROOT
- See Also:
- Constant Field Values
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
updateGraphInDB
public boolean updateGraphInDB(RDFService rdfService, org.apache.jena.rdf.model.Model fileModel, String type, Path path) throws RDFServiceException
- Throws:
RDFServiceException
-
cleanupDB
public void cleanupDB(org.apache.jena.query.Dataset dataset, Set<String> uriSet, String type)
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
-