Protégé-OWL 3.3.1

edu.stanford.smi.protegex.owl.jena
Class JenaKnowledgeBaseFactory

java.lang.Object
  extended by edu.stanford.smi.protegex.owl.jena.JenaKnowledgeBaseFactory
All Implemented Interfaces:
edu.stanford.smi.protege.model.KnowledgeBaseFactory, edu.stanford.smi.protege.server.ClientInitializerKnowledgeBaseFactory, OWLKnowledgeBaseFactory

public class JenaKnowledgeBaseFactory
extends Object
implements OWLKnowledgeBaseFactory, edu.stanford.smi.protege.server.ClientInitializerKnowledgeBaseFactory

A backend for OWL based on the Jena2 API.

Author:
Holger Knublauch

Field Summary
static String[] fileLanguages
           
static String JENA_SYNCHRONIZED
           
static String OWL_BUILD_PROPERTY
           
static String OWL_FILE_LANGUAGE_PROPERTY
           
static String OWL_FILE_URI_PROPERTY
           
static boolean useStandalone
          A global flag that is used to select the default .pprj file for new project.
 
Fields inherited from interface edu.stanford.smi.protege.model.KnowledgeBaseFactory
FACTORY_CLASS_NAME
 
Constructor Summary
JenaKnowledgeBaseFactory()
           
 
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)
           
protected  URI getFileURI(edu.stanford.smi.protege.util.PropertyList sources, edu.stanford.smi.protege.model.Project project)
           
protected 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)
           
 void initializeClientKnowledgeBase(edu.stanford.smi.protege.model.framestore.FrameStore fs, edu.stanford.smi.protege.model.framestore.NarrowFrameStore systemNfs, edu.stanford.smi.protege.model.framestore.NarrowFrameStore nfs, edu.stanford.smi.protege.model.KnowledgeBase kb)
           
 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)
           
protected  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
 

Field Detail

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

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.

Constructor Detail

JenaKnowledgeBaseFactory

public JenaKnowledgeBaseFactory()
Method Detail

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

protected URI getFileURI(edu.stanford.smi.protege.util.PropertyList sources,
                         edu.stanford.smi.protege.model.Project project)

getExtension

public static String getExtension(String language)

getOWLFileLanguage

protected 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

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

protected 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)

initializeClientKnowledgeBase

public void initializeClientKnowledgeBase(edu.stanford.smi.protege.model.framestore.FrameStore fs,
                                          edu.stanford.smi.protege.model.framestore.NarrowFrameStore systemNfs,
                                          edu.stanford.smi.protege.model.framestore.NarrowFrameStore nfs,
                                          edu.stanford.smi.protege.model.KnowledgeBase kb)
Specified by:
initializeClientKnowledgeBase in interface edu.stanford.smi.protege.server.ClientInitializerKnowledgeBaseFactory

Protégé-OWL 3.3.1

Submit a bug report or feature request
Copyright (c) 1998-2007 Stanford University.