Class RestoreModelsAction
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.controller.datatools.dumprestore.RestoreModelsAction
-
public class RestoreModelsAction extends Object
Load from a dump file of NQuads, or something equivalent. We could process it all a line at a time, except for the blank nodes. If there are two references to the same blank node, they must be processed in the same method call to the RDFService. So, process each line as it comes in, unless it contains a blank node. Lines with blank nodes get put into buckets, with one bucket for each model (and one for the default model). At the end, we'll empty each of the buckets. And if they ask to purge the models before restoring, do that.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.servlet.http.HttpServletRequestreq
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends Enum<T>>
TgetEnumFromParameter(Class<T> enumClass, String key)protected RDFServicegetRdfService(ModelAccess.WhichService which)
-
-
-
Method Detail
-
getRdfService
protected RDFService getRdfService(ModelAccess.WhichService which)
-
getEnumFromParameter
protected <T extends Enum<T>> T getEnumFromParameter(Class<T> enumClass, String key) throws edu.cornell.mannlib.vitro.webapp.controller.datatools.dumprestore.DumpRestoreController.BadRequestException
- Throws:
edu.cornell.mannlib.vitro.webapp.controller.datatools.dumprestore.DumpRestoreController.BadRequestException
-
-