edu.stanford.smi.protegex.owl.jena
Class JenaKnowledgeBaseFactory
java.lang.Object
edu.stanford.smi.protegex.owl.jena.JenaKnowledgeBaseFactory
- All Implemented Interfaces:
- edu.stanford.smi.protege.model.KnowledgeBaseFactory, OWLKnowledgeBaseFactory
- public class JenaKnowledgeBaseFactory
- extends Object
- implements OWLKnowledgeBaseFactory
A backend for OWL based on the Jena2 API.
- Author:
- Holger Knublauch
Fields inherited from interface edu.stanford.smi.protege.model.KnowledgeBaseFactory |
FACTORY_CLASS_NAME |
Method Summary |
edu.stanford.smi.protege.model.KnowledgeBase |
createKnowledgeBase(Collection errors)
|
edu.stanford.smi.protege.model.KnowledgeBaseSourcesEditor |
createKnowledgeBaseSourcesEditor(String projectURIString,
edu.stanford.smi.protege.util.PropertyList sources)
|
String |
getDescription()
|
static String |
getExtension(String language)
|
private URI |
getFileURI(edu.stanford.smi.protege.util.PropertyList sources,
edu.stanford.smi.protege.model.Project project)
|
(package private) static String |
getOWLFileLanguage(edu.stanford.smi.protege.util.PropertyList sources)
|
static String |
getOWLFilePath(edu.stanford.smi.protege.util.PropertyList sources)
|
String |
getProjectFilePath()
|
void |
includeKnowledgeBase(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.util.PropertyList sources,
Collection errors)
|
boolean |
isComplete(edu.stanford.smi.protege.util.PropertyList sources)
|
void |
loadKnowledgeBase(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.util.PropertyList sources,
Collection errors)
|
private void |
loadRepositories(OWLModel owlModel,
URI uri)
|
private void |
makeOWLFileNameRelativeIfPossible(edu.stanford.smi.protege.model.Project project)
|
void |
saveKnowledgeBase(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.util.PropertyList sources,
Collection errors)
|
static void |
setOWLFileLanguage(edu.stanford.smi.protege.util.PropertyList sources,
String language)
|
static void |
setOWLFileName(edu.stanford.smi.protege.util.PropertyList sources,
String filePath)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JENA_SYNCHRONIZED
public static final String JENA_SYNCHRONIZED
OWL_FILE_URI_PROPERTY
public static final String OWL_FILE_URI_PROPERTY
- See Also:
- Constant Field Values
OWL_FILE_LANGUAGE_PROPERTY
public static final String OWL_FILE_LANGUAGE_PROPERTY
- See Also:
- Constant Field Values
OWL_BUILD_PROPERTY
public static final String OWL_BUILD_PROPERTY
- See Also:
- Constant Field Values
fileLanguages
public static final String[] fileLanguages
extensions
static final String[] extensions
useStandalone
public static boolean useStandalone
- A global flag that is used to select the default .pprj file for new project.
If you are using the Protege-OWL API in a stand-alone application, then this
should be true (default), but the Protege UI will set it to false.
JenaKnowledgeBaseFactory
public JenaKnowledgeBaseFactory()
createKnowledgeBase
public edu.stanford.smi.protege.model.KnowledgeBase createKnowledgeBase(Collection errors)
- Specified by:
createKnowledgeBase
in interface edu.stanford.smi.protege.model.KnowledgeBaseFactory
createKnowledgeBaseSourcesEditor
public edu.stanford.smi.protege.model.KnowledgeBaseSourcesEditor createKnowledgeBaseSourcesEditor(String projectURIString,
edu.stanford.smi.protege.util.PropertyList sources)
- Specified by:
createKnowledgeBaseSourcesEditor
in interface edu.stanford.smi.protege.model.KnowledgeBaseFactory
getFileURI
private URI getFileURI(edu.stanford.smi.protege.util.PropertyList sources,
edu.stanford.smi.protege.model.Project project)
getExtension
public static String getExtension(String language)
getOWLFileLanguage
static String getOWLFileLanguage(edu.stanford.smi.protege.util.PropertyList sources)
getOWLFilePath
public static String getOWLFilePath(edu.stanford.smi.protege.util.PropertyList sources)
getDescription
public String getDescription()
- Specified by:
getDescription
in interface edu.stanford.smi.protege.model.KnowledgeBaseFactory
getProjectFilePath
public String getProjectFilePath()
- Specified by:
getProjectFilePath
in interface edu.stanford.smi.protege.model.KnowledgeBaseFactory
includeKnowledgeBase
public void includeKnowledgeBase(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.util.PropertyList sources,
Collection errors)
- Specified by:
includeKnowledgeBase
in interface edu.stanford.smi.protege.model.KnowledgeBaseFactory
isComplete
public boolean isComplete(edu.stanford.smi.protege.util.PropertyList sources)
- Specified by:
isComplete
in interface edu.stanford.smi.protege.model.KnowledgeBaseFactory
loadKnowledgeBase
public void loadKnowledgeBase(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.util.PropertyList sources,
Collection errors)
- Specified by:
loadKnowledgeBase
in interface edu.stanford.smi.protege.model.KnowledgeBaseFactory
loadRepositories
private void loadRepositories(OWLModel owlModel,
URI uri)
saveKnowledgeBase
public void saveKnowledgeBase(edu.stanford.smi.protege.model.KnowledgeBase kb,
edu.stanford.smi.protege.util.PropertyList sources,
Collection errors)
- Specified by:
saveKnowledgeBase
in interface edu.stanford.smi.protege.model.KnowledgeBaseFactory
makeOWLFileNameRelativeIfPossible
private void makeOWLFileNameRelativeIfPossible(edu.stanford.smi.protege.model.Project project)
setOWLFileLanguage
public static void setOWLFileLanguage(edu.stanford.smi.protege.util.PropertyList sources,
String language)
setOWLFileName
public static void setOWLFileName(edu.stanford.smi.protege.util.PropertyList sources,
String filePath)