uk.ac.soton.ecs.grimoires.server.store
Class StoreFactory
java.lang.Object
uk.ac.soton.ecs.grimoires.server.store.StoreFactory
- public class StoreFactory
- extends Object
A factory for different triple stores supported by Jena: the
output is always a Jena Model.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryType
public static final String MemoryType
- See Also:
- Constant Field Values
JDBCType
public static final String JDBCType
- See Also:
- Constant Field Values
FileType
public static final String FileType
- See Also:
- Constant Field Values
StoreFactory
public StoreFactory(Configuration configuration)
cleanStore
public com.hp.hpl.jena.rdf.model.Model cleanStore(com.hp.hpl.jena.rdf.model.Model model,
String type,
Properties parameters)
throws ClassNotFoundException,
SQLException
- Throws:
ClassNotFoundException
SQLException
makeStore
public com.hp.hpl.jena.rdf.model.Model makeStore(String type,
Properties parameters)
throws ClassNotFoundException,
com.hp.hpl.jena.rdf.model.RDFException,
com.hp.hpl.jena.db.RDFRDBException,
SQLException
- Throws:
ClassNotFoundException
com.hp.hpl.jena.rdf.model.RDFException
com.hp.hpl.jena.db.RDFRDBException
SQLException
makeDatabaseStore
public com.hp.hpl.jena.rdf.model.Model makeDatabaseStore(Properties parameters)
throws ClassNotFoundException,
com.hp.hpl.jena.db.RDFRDBException,
SQLException
- Throws:
ClassNotFoundException
com.hp.hpl.jena.db.RDFRDBException
SQLException
makeDatabaseStore
public com.hp.hpl.jena.rdf.model.Model makeDatabaseStore(String dbURL,
String username,
String password,
String dbType)
throws com.hp.hpl.jena.db.RDFRDBException,
SQLException
- Throws:
com.hp.hpl.jena.db.RDFRDBException
SQLException
makeMemoryStore
public com.hp.hpl.jena.rdf.model.Model makeMemoryStore()
makeFileStore
public com.hp.hpl.jena.rdf.model.Model makeFileStore(Properties parameters)
throws ClassNotFoundException,
com.hp.hpl.jena.db.RDFRDBException
- Throws:
ClassNotFoundException
com.hp.hpl.jena.db.RDFRDBException
makeFileStore
public com.hp.hpl.jena.rdf.model.Model makeFileStore(String fileName)