Class DisplayModelDaoJena
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.dao.jena.DisplayModelDaoJena
-
- All Implemented Interfaces:
DisplayModelDao
public class DisplayModelDaoJena extends Object implements DisplayModelDao
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.jena.rdf.model.PropertyHAS_TEXT_REPRESENTATIONprotected static StringMENU_N3_FILEprotected static StringMENU_N3_FILE_BACKUPprotected static org.apache.jena.rdf.model.ResourceMENU_TEXT_RES
-
Constructor Summary
Constructors Constructor Description DisplayModelDaoJena(WebappDaoFactoryJena wdfj)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcopyFile(File sourceFile, File destFile)StringgetDisplayModel(javax.servlet.ServletContext context)ServletContext should only be used for getRealPath()voidreplaceDisplayModel(String n3, javax.servlet.ServletContext context)ServletContext should only be used for getRealPath()
-
-
-
Field Detail
-
MENU_N3_FILE
protected static final String MENU_N3_FILE
- See Also:
- Constant Field Values
-
MENU_N3_FILE_BACKUP
protected static final String MENU_N3_FILE_BACKUP
- See Also:
- Constant Field Values
-
MENU_TEXT_RES
protected static org.apache.jena.rdf.model.Resource MENU_TEXT_RES
-
HAS_TEXT_REPRESENTATION
protected static org.apache.jena.rdf.model.Property HAS_TEXT_REPRESENTATION
-
-
Constructor Detail
-
DisplayModelDaoJena
public DisplayModelDaoJena(WebappDaoFactoryJena wdfj)
-
-
Method Detail
-
replaceDisplayModel
public void replaceDisplayModel(String n3, javax.servlet.ServletContext context) throws Exception
Description copied from interface:DisplayModelDaoServletContext should only be used for getRealPath()- Specified by:
replaceDisplayModelin interfaceDisplayModelDao- Throws:
Exception
-
getDisplayModel
public String getDisplayModel(javax.servlet.ServletContext context) throws IOException
Description copied from interface:DisplayModelDaoServletContext should only be used for getRealPath()- Specified by:
getDisplayModelin interfaceDisplayModelDao- Throws:
IOException
-
copyFile
public static void copyFile(File sourceFile, File destFile) throws IOException
- Throws:
IOException
-
-