edu.stanford.smi.protege.storage.database_with_include
Class DatabaseKnowledgeBaseFactory
java.lang.Object
edu.stanford.smi.protege.storage.database_with_include.DatabaseKnowledgeBaseFactory
- All Implemented Interfaces:
- KnowledgeBaseFactory
- public class DatabaseKnowledgeBaseFactory
- extends Object
- implements KnowledgeBaseFactory
Description of the class
- Author:
- Ray Fergerson
Method Summary |
KnowledgeBase |
createKnowledgeBase(Collection errors)
|
KnowledgeBaseSourcesEditor |
createKnowledgeBaseSourcesEditor(String projectName,
PropertyList sources)
Note that this method should really take a URI for a param rather than a string. |
String |
getDescription()
|
static String |
getDriver(PropertyList sources)
|
static String |
getPassword(PropertyList sources)
|
String |
getProjectFilePath()
|
static String |
getTableName(PropertyList sources)
|
static String |
getURL(PropertyList sources)
|
static String |
getUsername(PropertyList sources)
|
void |
includeKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
|
void |
includeKnowledgeBase(KnowledgeBase kb,
String driver,
String table,
String url,
String user,
String password,
Collection errors)
|
boolean |
isComplete(PropertyList sources)
|
void |
loadKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
|
void |
loadKnowledgeBase(KnowledgeBase kb,
String driver,
String table,
String url,
String user,
String password,
Collection errors)
|
void |
saveKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
|
static void |
setDriver(PropertyList sources,
String driver)
|
static void |
setPassword(PropertyList sources,
String password)
|
static void |
setSources(PropertyList sources,
String driver,
String url,
String table,
String user,
String password)
|
static void |
setTablename(PropertyList sources,
String tablename)
|
static void |
setURL(PropertyList sources,
String url)
|
static void |
setUsername(PropertyList sources,
String username)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseKnowledgeBaseFactory
public DatabaseKnowledgeBaseFactory()
createKnowledgeBase
public KnowledgeBase createKnowledgeBase(Collection errors)
- Specified by:
createKnowledgeBase
in interface KnowledgeBaseFactory
createKnowledgeBaseSourcesEditor
public KnowledgeBaseSourcesEditor createKnowledgeBaseSourcesEditor(String projectName,
PropertyList sources)
- Description copied from interface:
KnowledgeBaseFactory
- Note that this method should really take a URI for a param rather than a string. I maintain the string
for backwards compatibility
- Specified by:
createKnowledgeBaseSourcesEditor
in interface KnowledgeBaseFactory
- Parameters:
projectName
- sources
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interface KnowledgeBaseFactory
getDriver
public static String getDriver(PropertyList sources)
getPassword
public static String getPassword(PropertyList sources)
getProjectFilePath
public String getProjectFilePath()
- Specified by:
getProjectFilePath
in interface KnowledgeBaseFactory
getTableName
public static String getTableName(PropertyList sources)
getURL
public static String getURL(PropertyList sources)
getUsername
public static String getUsername(PropertyList sources)
includeKnowledgeBase
public void includeKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
- Specified by:
includeKnowledgeBase
in interface KnowledgeBaseFactory
isComplete
public boolean isComplete(PropertyList sources)
- Specified by:
isComplete
in interface KnowledgeBaseFactory
loadKnowledgeBase
public void loadKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
- Specified by:
loadKnowledgeBase
in interface KnowledgeBaseFactory
includeKnowledgeBase
public void includeKnowledgeBase(KnowledgeBase kb,
String driver,
String table,
String url,
String user,
String password,
Collection errors)
loadKnowledgeBase
public void loadKnowledgeBase(KnowledgeBase kb,
String driver,
String table,
String url,
String user,
String password,
Collection errors)
saveKnowledgeBase
public void saveKnowledgeBase(KnowledgeBase kb,
PropertyList sources,
Collection errors)
- Specified by:
saveKnowledgeBase
in interface KnowledgeBaseFactory
setDriver
public static void setDriver(PropertyList sources,
String driver)
setPassword
public static void setPassword(PropertyList sources,
String password)
setTablename
public static void setTablename(PropertyList sources,
String tablename)
setURL
public static void setURL(PropertyList sources,
String url)
setUsername
public static void setUsername(PropertyList sources,
String username)
setSources
public static void setSources(PropertyList sources,
String driver,
String url,
String table,
String user,
String password)
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2005 Stanford University.