|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.model.DefaultKnowledgeBase
edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel
edu.stanford.smi.protegex.owl.jena.JenaOWLModel
An OWLModel that can be synchronized with a Jena OntModel.
Field Summary | |
static String |
COPYRIGHT
|
static String |
DEFAULT_PREFIX
|
static boolean |
inUI
|
static String |
TEMPLATE_FILE_NAME
|
private TripleStoreModel |
tripleStoreModel
|
static String |
WRITER_PROTEGE
|
static String |
WRITER_SETTINGS_PROPERTY
|
Fields inherited from class edu.stanford.smi.protegex.owl.model.impl.AbstractOWLModel |
ANONYMOUS_BASE, DEFAULT_ANNOTATION_PROPERTY_NAME, DEFAULT_CLASS_NAME, DEFAULT_DATATYPE_PROPERTY_NAME, DEFAULT_INDIVIDUAL_NAME, DEFAULT_OBJECT_PROPERTY_NAME, DEFAULT_PROPERTY_NAME, DEFAULT_TODO_PREFIX, DEFAULT_USED_LANGUAGES |
Fields inherited from class edu.stanford.smi.protege.model.DefaultKnowledgeBase |
|
Fields inherited from interface edu.stanford.smi.protegex.owl.jena.OntModelProvider |
OWL_DL, OWL_FULL, OWL_LITE |
Fields inherited from interface edu.stanford.smi.protege.model.KnowledgeBase |
MAXIMUM_CARDINALITY_UNBOUNDED, UNLIMITED_MATCHES |
Constructor Summary | |
protected |
JenaOWLModel(edu.stanford.smi.protege.model.KnowledgeBaseFactory factory,
NamespaceManager namespaceManager)
|
Method Summary | |
private void |
closeRDFLists()
|
void |
defaultNamespaceChanged(String oldValue,
String newValue)
|
com.hp.hpl.jena.ontology.OntModel |
getOntModel()
Gets an OntModel which represents the current state. |
com.hp.hpl.jena.ontology.OntModel |
getOWLDLOntModel()
Gets or prepares an OntModel which is guaranteed to be in OWL DL, for classification and other reasoning tasks. |
String |
getOWLFilePath()
Gets the currently assigned file name for the top-level file of this OWLModel. |
int |
getOWLSpecies()
Gets the OWL Species of the current main OntModel. |
RDFResource |
getRDFResource(com.hp.hpl.jena.rdf.model.Resource resource)
|
com.hp.hpl.jena.ontology.OntModel |
getReasonerOntModel(String classifierURL)
Gets an OntModel that is connected to a (DIG) reasoner. |
TripleStoreModel |
getTripleStoreModel()
|
WriterSettings |
getWriterSettings()
|
void |
initOWLFrameFactoryInvocationHandler()
|
private void |
initPrefixes(NamespaceManager nsm,
com.hp.hpl.jena.shared.PrefixMapping mapping)
|
void |
initPrefixes(com.hp.hpl.jena.ontology.OntModel ontModel)
|
void |
load(InputStream is,
String language)
|
void |
load(Reader reader,
String language)
|
void |
load(URI uri,
String language)
|
void |
load(URI uri,
String language,
Collection errors)
|
void |
namespaceChanged(String prefix,
String oldValue,
String newValue)
|
void |
prefixAdded(String prefix)
|
void |
prefixChanged(String namespace,
String oldPrefix,
String newPrefix)
|
void |
prefixRemoved(String prefix)
|
static void |
save(File file,
com.hp.hpl.jena.ontology.OntModel ontModel,
String language,
String namespace)
|
private static void |
save(OutputStream outputStream,
com.hp.hpl.jena.ontology.OntModel ontModel,
String language,
String namespace)
|
void |
save(OutputStream os,
String language,
Collection errors)
Deprecated. please use the version with the URIs or access the OntModel directly |
void |
save(OutputStream os,
String language,
Collection errors,
com.hp.hpl.jena.ontology.OntModel ontModel)
Deprecated. please use the version with the URIs or access the OntModel directly |
void |
save(URI fileURI)
Saves the current OWLModel in the standard format. |
void |
save(URI fileURI,
String language,
Collection errors)
Writes the base model of this into a given file. |
void |
save(URI fileURI,
String language,
Collection errors,
com.hp.hpl.jena.ontology.OntModel ontModel)
|
static void |
saveModel(OutputStream outputStream,
com.hp.hpl.jena.rdf.model.Model model,
String language,
String namespace)
|
void |
setProjectFileName(String filePath)
Sets the name of the file in the associated Project. |
void |
setWriterSettings(WriterSettings writerSettings)
|
Methods inherited from class edu.stanford.smi.protege.model.DefaultKnowledgeBase |
addClsListener, addClsListener, addDirectSuperclass, addDirectSuperslot, addDirectTemplateSlot, addDirectType, addDirectTypes, addFacetListener, addFacetListener, addFrameListener, addFrameListener, addInstance, addInstanceListener, addInstanceListener, addJavaLoadPackage, addKnowledgeBaseListener, addOwnSlotValue, addSlotListener, addSlotListener, addTemplateFacetValue, addTemplateSlotValue, addTransactionListener, areValidOwnSlotValues, beginTransaction, changeFrameName, clearAllListeners, close, commitTransaction, containsFrame, createCls, createCls, createCls, createCls, createFacet, createFacet, createFacet, createFacet, createFrameFactory, createInstance, createInstance, createInstance, createInstance, createSimpleInstance, createSimpleInstance, createSimpleInstance, createSlot, createSlot, createSlot, createSlot, createSlot, createUniqueFrameName, deleteFacet, deleteFrame, deleteInstance, deleteSimpleInstance, deleteSlot, dispose, endTransaction, equals, flushCache, getAllowedClses, getAllowedParents, getAllowedValues, getAllowsMultipleValues, getAssociatedFacet, getAssociatedSlot, getBuildString, getClientInformation, getCls, getClsCount, getClses, getClsesWithMatchingBrowserText, getClsNameMatches, getCommandManager, getCurrentUsers, getDefaultClsMetaCls, getDefaultFacetMetaCls, getDefaultSlotMetaCls, getDefaultValues, getDirectBrowserSlotPattern, getDirectDomain, getDirectInstanceCount, getDirectInstances, getDirectlyOverriddenTemplateFacets, getDirectlyOverriddenTemplateSlots, getDirectOwnSlotValue, getDirectOwnSlotValues, getDirectOwnSlotValuesClosure, getDirectSubclassCount, getDirectSubclasses, getDirectSubslotCount, getDirectSubslots, getDirectSuperclassCount, getDirectSuperclasses, getDirectSuperslotCount, getDirectSuperslots, getDirectTemplateFacetValues, getDirectTemplateSlots, getDirectTemplateSlotValues, getDirectType, getDirectTypes, getDispatchEventsEnabled, getDisplaySlotNotSetString, getDisplaySlotPatternValueNotSetString, getDocumentation, getDomain, getEventsEnabled, getFacet, getFacetCheckingEnabled, getFacetCount, getFacets, getFrame, getFrame, getFrameCount, getFrameCounts, getFrameCreationTimestamp, getFrameCreator, getFrameFactory, getFrameLastModificationTimestamp, getFrameLastModifier, getFrameNameMatches, getFrameNamePrefix, getFrames, getFrameStoreManager, getFrameStores, getFramesWithMatchingDirectOwnSlotValue, getFramesWithValue, getGenerateEventsEnabled, getHeadFrameStore, getInheritedTemplateSlots, getInstance, getInstanceCount, getInstances, getInstances, getInvalidFrameNameDescription, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getInverseSlot, getKnowledgeBaseFactory, getMatchingFrames, getMatchingReferences, getMaximumCardinality, getMaximumCardinality2, getMaximumValue, getMinimumCardinality, getMinimumValue, getMissingTypeString, getName, getName, getNameSlot, getNextFrameNumber, getOverriddenTemplateFacets, getOverriddenTemplateSlots, getOwnFacets, getOwnFacetValues, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReachableSimpleInstances, getReachableSimpleInstances, getReferences, getReferences, getReifedRelationFromSlot, getReifedRelationToSlot, getReifiedRelationCls, getRootClses, getRootClsMetaCls, getRootFacetMetaCls, getRootSlots, getSimpleInstance, getSimpleInstanceCount, getSlot, getSlotCount, getSlots, getSlotValueLastModificationTimestamp, getSlotValueLastModifier, getSubclasses, getSubslots, getSuperclasses, getSuperslots, getSystemFrames, getTemplateFacets, getTemplateFacetValue, getTemplateFacetValues, getTemplateSlotAllowedClses, getTemplateSlotAllowedParents, getTemplateSlotAllowedValues, getTemplateSlotAllowsMultipleValues, getTemplateSlotDefaultValues, getTemplateSlotDocumentation, getTemplateSlotMaximumCardinality, getTemplateSlotMaximumCardinality2, getTemplateSlotMaximumValue, getTemplateSlotMinimumCardinality, getTemplateSlotMinimumCardinality2, getTemplateSlotMinimumValue, getTemplateSlots, getTemplateSlotValue, getTemplateSlotValues, getTemplateSlotValueType, getTerminalFrameStore, getTypes, getUnreachableSimpleInstances, getUserName, getValueChecking, getValues, getValueType, getVersionString, hasChanged, hasDirectlyOverriddenTemplateFacet, hasDirectlyOverriddenTemplateSlot, hasDirectSuperclass, hasDirectSuperslot, hasDirectTemplateSlot, hasDirectType, hasInheritedTemplateSlot, hasOverriddenTemplateFacet, hasOverriddenTemplateSlot, hasOwnSlot, hasSlotValueAtSomeFrame, hasSuperclass, hasSuperslot, hasTemplateSlot, hasType, insertFrameStore, insertFrameStore, isAbstract, isAutoUpdatingFacetValues, isCallCachingEnabled, isClosed, isClsMetaCls, isDefaultClsMetaCls, isDefaultFacetMetaCls, isDefaultSlotMetaCls, isFacetMetaCls, isJournalingEnabled, isLoading, isMetaCls, isUndoEnabled, isValidFrameName, isValidOwnSlotValue, moveDirectOwnSlotValue, moveDirectSubclass, moveDirectSubclass, moveDirectSubslot, moveDirectSubslot, moveDirectTemplateSlot, moveDirectType, notifyVisibilityChanged, removeClsListener, removeClsListener, removeDirectSuperclass, removeDirectSuperslot, removeDirectTemplateFacetOverrides, removeDirectTemplateSlot, removeDirectType, removeDirectTypes, removeFacetListener, removeFacetListener, removeFrameListener, removeFrameListener, removeFrameStore, removeInstanceListener, removeInstanceListener, removeJavaLoadPackage, removeKnowledgeBaseListener, removeOwnSlotValue, removeSlotListener, removeSlotListener, removeTemplateFacetOverrides, removeTransactionListener, rollbackTransaction, setAbstract, setAllowedClses, setAllowedParents, setAllowedValues, setAllowsMultipleValues, setArgumentCheckingEnabled, setAssociatedFacet, setAssociatedSlot, setAutoUpdateFacetValues, setBuildString, setCallCachingEnabled, setChanged, setChangeMonitorEnabled, setCleanDispatchEnabled, setClientInformation, setDefaultClsMetaCls, setDefaultFacetMetaCls, setDefaultSlotMetaCls, setDefaultValues, setDirectBrowserSlot, setDirectBrowserSlotPattern, setDirectBrowserTextPattern, setDirectOwnSlotValue, setDirectOwnSlotValues, setDirectTemplateFacetValue, setDirectTemplateFacetValues, setDirectTemplateSlotValues, setDirectTypeOfSubclasses, setDirectTypeOfSubslots, setDirectTypes, setDispatchEventsEnabled, setDocumentation, setDocumentation, setEventDispatchEnabled, setEventsEnabled, setFacetCheckingEnabled, setFrameFactory, setFrameName, setFrameNamePrefix, setFrameNameValidator, setGenerateDeletingFrameEventsEnabled, setGenerateEventsEnabled, setInverseSlot, setJournalingEnabled, setLoading, setMaximumCardinality, setMaximumValue, setMinimumCardinality, setMinimumValue, setModificationRecordUpdatingEnabled, setName, setNextFrameNumber, setOwnSlotValue, setOwnSlotValues, setPollForEvents, setTemplateFacetValue, setTemplateFacetValues, setTemplateSlotAllowedClses, setTemplateSlotAllowedParents, setTemplateSlotAllowedValues, setTemplateSlotAllowsMultipleValues, setTemplateSlotDefaultValues, setTemplateSlotDocumentation, setTemplateSlotDocumentation, setTemplateSlotMaximumCardinality, setTemplateSlotMaximumValue, setTemplateSlotMinimumCardinality, setTemplateSlotMinimumValue, setTemplateSlotValue, setTemplateSlotValues, setTemplateSlotValueType, setTerminalFrameStore, setUndoEnabled, setUserName, setValueChecking, setValues, setValueType, setVersionString, startJournaling, stopJournaling, toString, toString, toString, toStringForFrame, toStringForObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.stanford.smi.protegex.owl.model.OWLModel |
beginTransaction, endTransaction, getDispatchEventsEnabled, getGenerateEventsEnabled, setDispatchEventsEnabled, setGenerateEventsEnabled |
Methods inherited from interface edu.stanford.smi.protege.model.KnowledgeBase |
addJavaLoadPackage, addTransactionListener, changeFrameName, createInstance, createUniqueFrameName, flushCache, getBuildString, getClientInformation, getClsesWithMatchingBrowserText, getEventsEnabled, getKnowledgeBaseFactory, getReifedRelationFromSlot, getReifedRelationToSlot, getReifiedRelationCls, getSimpleInstance, hasChanged, isClosed, moveDirectOwnSlotValue, moveDirectType, removeTransactionListener, setClientInformation, setEventsEnabled, setModificationRecordUpdatingEnabled |
Methods inherited from interface edu.stanford.smi.protege.util.Disposable |
dispose |
Field Detail |
public static final String COPYRIGHT
public static boolean inUI
private TripleStoreModel tripleStoreModel
public static final String TEMPLATE_FILE_NAME
public static final String DEFAULT_PREFIX
public static final String WRITER_SETTINGS_PROPERTY
public static final String WRITER_PROTEGE
Constructor Detail |
protected JenaOWLModel(edu.stanford.smi.protege.model.KnowledgeBaseFactory factory, NamespaceManager namespaceManager)
Method Detail |
private void closeRDFLists()
public void defaultNamespaceChanged(String oldValue, String newValue)
defaultNamespaceChanged
in interface NamespaceManagerListener
defaultNamespaceChanged
in class AbstractOWLModel
public RDFResource getRDFResource(com.hp.hpl.jena.rdf.model.Resource resource)
public com.hp.hpl.jena.ontology.OntModel getOntModel()
OntModelProvider
getOntModel
in interface OntModelProvider
public com.hp.hpl.jena.ontology.OntModel getOWLDLOntModel()
OntModelProvider
getOWLDLOntModel
in interface OntModelProvider
public String getOWLFilePath()
public int getOWLSpecies()
OntModelProvider
getOWLSpecies
in interface OntModelProvider
public com.hp.hpl.jena.ontology.OntModel getReasonerOntModel(String classifierURL)
OntModelProvider
getReasonerOntModel
in interface OntModelProvider
classifierURL
- the URL of the classifier (usually defined in the preferences)
public TripleStoreModel getTripleStoreModel()
getTripleStoreModel
in interface OWLModel
public WriterSettings getWriterSettings()
public void initOWLFrameFactoryInvocationHandler()
initOWLFrameFactoryInvocationHandler
in class AbstractOWLModel
public void initPrefixes(com.hp.hpl.jena.ontology.OntModel ontModel)
private void initPrefixes(NamespaceManager nsm, com.hp.hpl.jena.shared.PrefixMapping mapping)
public void load(URI uri, String language) throws Exception
Exception
public void load(InputStream is, String language) throws Exception
Exception
public void load(Reader reader, String language) throws Exception
Exception
public void load(URI uri, String language, Collection errors)
public void namespaceChanged(String prefix, String oldValue, String newValue)
namespaceChanged
in interface NamespaceManagerListener
namespaceChanged
in class AbstractOWLModel
public void prefixAdded(String prefix)
prefixAdded
in interface NamespaceManagerListener
prefixAdded
in class AbstractOWLModel
public void prefixChanged(String namespace, String oldPrefix, String newPrefix)
prefixChanged
in interface NamespaceManagerListener
prefixChanged
in class AbstractOWLModel
public void prefixRemoved(String prefix)
prefixRemoved
in interface NamespaceManagerListener
prefixRemoved
in class AbstractOWLModel
public void save(URI fileURI) throws Exception
fileURI
- the URI to write into
Exception
- if something went wrongpublic void save(URI fileURI, String language, Collection errors)
fileURI
- the URI of the target filelanguage
- the Jena output language (typically FileUtils.langXMLAbbrev)errors
- an initially empty collection of errorspublic void save(OutputStream os, String language, Collection errors)
public void save(URI fileURI, String language, Collection errors, com.hp.hpl.jena.ontology.OntModel ontModel)
public static void save(File file, com.hp.hpl.jena.ontology.OntModel ontModel, String language, String namespace) throws IOException
IOException
public void save(OutputStream os, String language, Collection errors, com.hp.hpl.jena.ontology.OntModel ontModel)
private static void save(OutputStream outputStream, com.hp.hpl.jena.ontology.OntModel ontModel, String language, String namespace) throws IOException
IOException
public static void saveModel(OutputStream outputStream, com.hp.hpl.jena.rdf.model.Model model, String language, String namespace) throws IOException
IOException
public void setProjectFileName(String filePath)
filePath
- the new (typically relative) path to the .owl fileProject.save(java.util.Collection)
public void setWriterSettings(WriterSettings writerSettings)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |