Protege 2.1

edu.stanford.smi.protege.model
Interface KnowledgeBaseFactory

All Known Subinterfaces:
KnowledgeBaseFactory2
All Known Implementing Classes:
AbstractKnowledgeBaseFactory, DatabaseKnowledgeBaseFactory, DatabaseKnowledgeBaseFactory, JdbcKnowledgeBaseFactory

public interface KnowledgeBaseFactory

A factory for creating a KnowledgeBase implementation. The KB implementation is typically DefaultKnowledgeBase with, perhaps, some "standard" frames loaded.

Author:
Ray Fergerson

Field Summary
static String FACTORY_CLASS_NAME
           
 
Method Summary
 KnowledgeBase createKnowledgeBase(Collection errors)
           
 KnowledgeBaseSourcesEditor createKnowledgeBaseSourcesEditor(String projectURIString, PropertyList sources)
          Note that this method should really take a URI for a param rather than a string.
 String getDescription()
           
 String getProjectFilePath()
           
 void includeKnowledgeBase(KnowledgeBase kb, PropertyList sources, Collection errors)
           
 boolean isComplete(PropertyList sources)
           
 void loadKnowledgeBase(KnowledgeBase kb, PropertyList sources, Collection errors)
           
 void saveKnowledgeBase(KnowledgeBase kb, PropertyList sources, Collection errors)
           
 

Field Detail

FACTORY_CLASS_NAME

public static final String FACTORY_CLASS_NAME
See Also:
Constant Field Values
Method Detail

createKnowledgeBase

public KnowledgeBase createKnowledgeBase(Collection errors)

createKnowledgeBaseSourcesEditor

public KnowledgeBaseSourcesEditor createKnowledgeBaseSourcesEditor(String projectURIString,
                                                                   PropertyList sources)
Note that this method should really take a URI for a param rather than a string. I maintain the string for backwards compatibility

Parameters:
projectURIString -
sources -

getDescription

public String getDescription()

getProjectFilePath

public String getProjectFilePath()

includeKnowledgeBase

public void includeKnowledgeBase(KnowledgeBase kb,
                                 PropertyList sources,
                                 Collection errors)

isComplete

public boolean isComplete(PropertyList sources)

loadKnowledgeBase

public void loadKnowledgeBase(KnowledgeBase kb,
                              PropertyList sources,
                              Collection errors)

saveKnowledgeBase

public void saveKnowledgeBase(KnowledgeBase kb,
                              PropertyList sources,
                              Collection errors)

Protege 2.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.