|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.model.framestore.AbstractFrameStore
edu.stanford.smi.protege.model.framestore.FrameStoreAdapter
edu.stanford.smi.protegex.owl.model.framestore.OWLFrameStore
A FrameStore with specific support for OWL ontologies. While most calls simply forward to their default implementation, some calls are intercepted to do some extra work:
Field Summary | |
static boolean |
allowDuplicateOwnSlotValues
|
private AllValuesFromRestrictionUpdater |
allValuesFromRestrictionUpdater
|
static boolean |
autoDeleteOfAnonymousClses
An ugly trick to prevent anonymous classes from being deleted as a side effect |
private CardinalityRestrictionUpdater |
cardinalityRestrictionUpdater
|
private Hashtable |
class2Updater
A Hashtable from Java restriction Class objects to the responsible RestrictionUpdaters |
private boolean |
deletingRDFSDatatype
|
private Hashtable |
facet2Updater
A Hashtable from Facets to the responsible RestrictionUpdaters |
protected boolean |
facetHandlingBlocked
A flag to prevent infinite recursion when a superclass has been added or removed |
private HasValueRestrictionUpdater |
hasValueRestrictionUpdater
|
static String |
IGNORE_PREFIXES_IN_SEARCH
|
private AbstractOWLModel |
owlModel
|
protected boolean |
superclassHandlingBlocked
A flag to prevent infinite recursion when a facet override has been changed. |
private boolean |
superclassSynchronizationBlocked
|
boolean |
suppressUpdateRDFSDomain
|
private boolean |
suppressUpdateTemplateSlots
|
Fields inherited from class edu.stanford.smi.protege.model.framestore.AbstractFrameStore |
|
Fields inherited from interface edu.stanford.smi.protege.model.framestore.FrameStore |
UNLIMITED_MATCHES |
Constructor Summary | |
OWLFrameStore(AbstractOWLModel owlModel)
|
Method Summary | |
void |
addDirectSuperclass(edu.stanford.smi.protege.model.Cls cls,
edu.stanford.smi.protege.model.Cls superCls)
|
void |
addDirectSuperslot(edu.stanford.smi.protege.model.Slot slot,
edu.stanford.smi.protege.model.Slot superSlot)
|
void |
addDirectTemplateSlot(edu.stanford.smi.protege.model.Cls cls,
edu.stanford.smi.protege.model.Slot slot)
|
void |
addDirectType(edu.stanford.smi.protege.model.Instance instance,
edu.stanford.smi.protege.model.Cls type)
|
private void |
addNamedOperandsToDirectSuperclasses(OWLNamedClass cls,
OWLIntersectionClass superCls)
|
private List |
convertInternalFormatToRDFSLiterals(Collection values)
|
private List |
convertRDFSLiteralsToInternalFormat(Collection values)
|
void |
copyFacetValuesIntoNamedClses()
|
private void |
copyFacetValuesIntoOWLNamedClass(OWLRestriction restriction)
|
private void |
copyFacetValuesIntoOWLNamedClass(RDFSNamedClass cls,
OWLRestriction restriction)
|
edu.stanford.smi.protege.model.Cls |
createCls(edu.stanford.smi.protege.model.FrameID id,
String name,
Collection directTypes,
Collection directSuperclasses,
boolean loadDefaults)
|
edu.stanford.smi.protege.model.SimpleInstance |
createSimpleInstance(edu.stanford.smi.protege.model.FrameID id,
String name,
Collection directTypes,
boolean loadDefaults)
|
edu.stanford.smi.protege.model.Slot |
createSlot(edu.stanford.smi.protege.model.FrameID id,
String name,
Collection directTypes,
Collection directSuperslots,
boolean loadDefaults)
|
private void |
deleteAnonymousClass(OWLAnonymousClass cls)
|
private void |
deleteAnonymousClasses(Collection clses,
Collection survivors)
|
private void |
deleteAnonymousClses(Collection clses)
|
private void |
deleteAnonymousTree(OWLAnonymousClass anonymousClass)
|
void |
deleteCls(edu.stanford.smi.protege.model.Cls cls)
|
private void |
deleteDependingAnonymousClses(edu.stanford.smi.protege.model.Cls cls)
|
private void |
deleteDependingAnonymousClses(edu.stanford.smi.protege.model.Slot slot)
|
private void |
deleteDependingListInstances(edu.stanford.smi.protege.model.Instance instance)
|
private void |
deleteListChain(RDFList list)
|
private void |
deleteListInstance(RDFList li)
Deletes a RDFList cleanly from its list. |
private void |
deleteNamedClass(RDFSNamedClass cls)
|
private void |
deleteNamedClassFromUnionDomainsAndRanges(RDFSNamedClass cls)
|
void |
deleteQuantifierRestrictions(OWLProperty property)
Deletes all QuantifierRestrictions (and the expressions where they are used) which restrict a given propertyerty. |
private void |
deleteRDFListsThatArePropertyValues(RDFResource resource)
|
void |
deleteSimpleInstance(edu.stanford.smi.protege.model.SimpleInstance simpleInstance)
|
void |
deleteSlot(edu.stanford.smi.protege.model.Slot slot)
Deletes the depending classes (anonymous domains and ranges) of the slot being deleted. |
private void |
ensureRDFSSubClassOfStatementsExistForNamedOperands(OWLIntersectionClass intersectionClass)
|
Collection |
getClsesToDelete(edu.stanford.smi.protege.model.Cls cls)
A slighly adjusted version of DeleteSimplificationFrameStore that ignores links through the anonymous root class. |
Set |
getClsesWithMatchingBrowserText(String value,
Collection superclasses,
int maxMatches)
|
Collection |
getConvertedValues(Collection values)
|
private edu.stanford.smi.protege.model.framestore.DeleteSimplificationFrameStore |
getDeleteSimplificationFrameStore()
|
List |
getDirectOwnSlotValuesConverting(edu.stanford.smi.protege.model.Frame frame,
edu.stanford.smi.protege.model.Slot slot)
|
Set |
getFramesWithMatchingDirectOwnSlotValue(edu.stanford.smi.protege.model.Slot slot,
String value,
int maxMatches)
|
private void |
getFramesWithMatchingHelper(edu.stanford.smi.protege.model.Slot slot,
String value,
int maxMatches,
Set results)
|
List |
getLiteralValues(List values)
|
Set |
getMatchingReferences(String value,
int maxMatches)
|
Collection |
getOwnSlotValuesConverting(edu.stanford.smi.protege.model.Frame frame,
edu.stanford.smi.protege.model.Slot slot)
|
List |
getPropertyValueLiterals(RDFResource frame,
RDFProperty slot)
|
private Collection |
getSlotsToDelete(edu.stanford.smi.protege.model.Slot slot)
|
private void |
initRestrictionUpdaters()
|
static boolean |
isIgnorePrefixesInSearch(OWLModel owlModel)
|
private boolean |
isReachableByAnotherRoute(edu.stanford.smi.protege.model.Cls subclass,
Collection classesToBeDeleted)
|
private static void |
log(String str)
|
private void |
printDeprecationWarning(String methodName)
|
void |
removeDirectSuperclass(edu.stanford.smi.protege.model.Cls cls,
edu.stanford.smi.protege.model.Cls superCls)
|
void |
removeDirectSuperslot(edu.stanford.smi.protege.model.Slot slot,
edu.stanford.smi.protege.model.Slot superslot)
|
void |
removeDirectTemplateSlot(edu.stanford.smi.protege.model.Cls cls,
edu.stanford.smi.protege.model.Slot slot)
|
void |
removeDirectType(edu.stanford.smi.protege.model.Instance instance,
edu.stanford.smi.protege.model.Cls directType)
|
private void |
removeNamedOperandsFromDirectSuperclasses(OWLNamedClass cls,
OWLIntersectionClass intersectionCls,
edu.stanford.smi.protege.model.Slot slot)
|
void |
setDirectOwnSlotValues(edu.stanford.smi.protege.model.Frame frame,
edu.stanford.smi.protege.model.Slot slot,
Collection values)
|
void |
setDirectTemplateFacetValues(edu.stanford.smi.protege.model.Cls cls,
edu.stanford.smi.protege.model.Slot slot,
edu.stanford.smi.protege.model.Facet facet,
Collection values)
|
void |
setDirectTemplateSlotValues(edu.stanford.smi.protege.model.Cls cls,
edu.stanford.smi.protege.model.Slot slot,
Collection values)
|
void |
setSuperclassSynchronizationBlocked(boolean value)
|
private void |
updatePropertyAllowedClasses(RDFProperty property,
Collection values)
|
private void |
updatePropertyValueType(RDFProperty property,
Collection values)
Updates the ValueType of a datatype slot in response to changes in the range. |
private void |
updateRDFSDomain(RDFProperty property)
|
private void |
updateRDFSSubClassOf(RDFSNamedClass cls)
Updates the values of rdfs:subClassOf (and owl:equivalentClass) in response to changes in the :SLOT-DIRECT-SUPERCLASSES. |
private void |
updateRestrictions(OWLNamedClass cls,
RDFProperty slot,
edu.stanford.smi.protege.model.Facet facet)
|
private void |
updateSlotDomain(edu.stanford.smi.protege.model.Slot slot,
Collection values)
Updates the values of :SLOT-DIRECT-DOMAIN and :SLOT-DIRECT-TEMPLATE-SLOTS in response to changes in rdfs:domain. |
Methods inherited from class edu.stanford.smi.protege.model.framestore.FrameStoreAdapter |
beginTransaction, commitTransaction, createFacet, deleteFacet, executeQuery, getClsCount, getClses, getClsesWithAnyDirectTemplateSlotValue, getClsesWithDirectTemplateFacetValue, getClsesWithDirectTemplateSlotValue, getClsesWithMatchingDirectTemplateFacetValue, getClsesWithMatchingDirectTemplateSlotValue, getDirectDomain, getDirectInstances, getDirectlyOverriddenTemplateFacets, getDirectlyOverriddenTemplateSlots, getDirectOwnSlotValues, getDirectOwnSlotValuesClosure, getDirectOwnSlotValuesCount, getDirectSubclasses, getDirectSubslots, getDirectSuperclasses, getDirectSuperslots, getDirectTemplateFacetValues, getDirectTemplateSlots, getDirectTemplateSlotValues, getDirectTypes, getDomain, getEvents, getFacetCount, getFacets, getFrame, getFrame, getFrameCount, getFrameName, getFrames, getFramesWithAnyDirectOwnSlotValue, getFramesWithDirectOwnSlotValue, getInstances, getOverriddenTemplateFacets, getOverriddenTemplateSlots, getOwnFacets, getOwnFacetValues, getOwnSlots, getOwnSlotValues, getReferences, getSimpleInstanceCount, getSlotCount, getSlots, getSubclasses, getSubslots, getSuperclasses, getSuperslots, getTemplateFacets, getTemplateFacetValues, getTemplateSlots, getTemplateSlotValues, getTypes, moveDirectOwnSlotValue, moveDirectSubclass, moveDirectSubslot, moveDirectTemplateSlot, moveDirectType, reinitialize, removeDirectTemplateFacetOverrides, rollbackTransaction, setFrameName |
Methods inherited from class edu.stanford.smi.protege.model.framestore.AbstractFrameStore |
close, getDelegate, getName, onSetDelegate, setDelegate, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Hashtable class2Updater
private Hashtable facet2Updater
protected boolean facetHandlingBlocked
private AllValuesFromRestrictionUpdater allValuesFromRestrictionUpdater
private CardinalityRestrictionUpdater cardinalityRestrictionUpdater
private HasValueRestrictionUpdater hasValueRestrictionUpdater
private AbstractOWLModel owlModel
protected boolean superclassHandlingBlocked
private boolean suppressUpdateTemplateSlots
public static final String IGNORE_PREFIXES_IN_SEARCH
private boolean superclassSynchronizationBlocked
private boolean deletingRDFSDatatype
public static boolean autoDeleteOfAnonymousClses
public static boolean allowDuplicateOwnSlotValues
public boolean suppressUpdateRDFSDomain
Constructor Detail |
public OWLFrameStore(AbstractOWLModel owlModel)
Method Detail |
public void addDirectSuperclass(edu.stanford.smi.protege.model.Cls cls, edu.stanford.smi.protege.model.Cls superCls)
public void addDirectSuperslot(edu.stanford.smi.protege.model.Slot slot, edu.stanford.smi.protege.model.Slot superSlot)
public void addDirectType(edu.stanford.smi.protege.model.Instance instance, edu.stanford.smi.protege.model.Cls type)
private void addNamedOperandsToDirectSuperclasses(OWLNamedClass cls, OWLIntersectionClass superCls)
private List convertInternalFormatToRDFSLiterals(Collection values)
private List convertRDFSLiteralsToInternalFormat(Collection values)
private void copyFacetValuesIntoOWLNamedClass(RDFSNamedClass cls, OWLRestriction restriction)
private void copyFacetValuesIntoOWLNamedClass(OWLRestriction restriction)
public void copyFacetValuesIntoNamedClses()
public edu.stanford.smi.protege.model.Cls createCls(edu.stanford.smi.protege.model.FrameID id, String name, Collection directTypes, Collection directSuperclasses, boolean loadDefaults)
public edu.stanford.smi.protege.model.Slot createSlot(edu.stanford.smi.protege.model.FrameID id, String name, Collection directTypes, Collection directSuperslots, boolean loadDefaults)
public edu.stanford.smi.protege.model.SimpleInstance createSimpleInstance(edu.stanford.smi.protege.model.FrameID id, String name, Collection directTypes, boolean loadDefaults)
private void deleteAnonymousClass(OWLAnonymousClass cls)
private void deleteAnonymousClses(Collection clses)
private void deleteAnonymousClasses(Collection clses, Collection survivors)
private void deleteAnonymousTree(OWLAnonymousClass anonymousClass)
public void deleteCls(edu.stanford.smi.protege.model.Cls cls)
private void deleteDependingAnonymousClses(edu.stanford.smi.protege.model.Cls cls)
private void deleteDependingAnonymousClses(edu.stanford.smi.protege.model.Slot slot)
private void deleteDependingListInstances(edu.stanford.smi.protege.model.Instance instance)
private void deleteRDFListsThatArePropertyValues(RDFResource resource)
private void deleteListInstance(RDFList li)
li
- the RDFList to deleteprivate void deleteNamedClass(RDFSNamedClass cls)
private void deleteNamedClassFromUnionDomainsAndRanges(RDFSNamedClass cls)
public void deleteQuantifierRestrictions(OWLProperty property)
property
- the restricted propertypublic void deleteSimpleInstance(edu.stanford.smi.protege.model.SimpleInstance simpleInstance)
private void deleteListChain(RDFList list)
public void deleteSlot(edu.stanford.smi.protege.model.Slot slot)
slot
- the Slot being deletedprivate void ensureRDFSSubClassOfStatementsExistForNamedOperands(OWLIntersectionClass intersectionClass)
public Collection getClsesToDelete(edu.stanford.smi.protege.model.Cls cls)
cls
-
private edu.stanford.smi.protege.model.framestore.DeleteSimplificationFrameStore getDeleteSimplificationFrameStore()
public List getDirectOwnSlotValuesConverting(edu.stanford.smi.protege.model.Frame frame, edu.stanford.smi.protege.model.Slot slot)
public List getPropertyValueLiterals(RDFResource frame, RDFProperty slot)
public List getLiteralValues(List values)
public Collection getOwnSlotValuesConverting(edu.stanford.smi.protege.model.Frame frame, edu.stanford.smi.protege.model.Slot slot)
public Collection getConvertedValues(Collection values)
public Set getClsesWithMatchingBrowserText(String value, Collection superclasses, int maxMatches)
public Set getFramesWithMatchingDirectOwnSlotValue(edu.stanford.smi.protege.model.Slot slot, String value, int maxMatches)
private void getFramesWithMatchingHelper(edu.stanford.smi.protege.model.Slot slot, String value, int maxMatches, Set results)
public Set getMatchingReferences(String value, int maxMatches)
private Collection getSlotsToDelete(edu.stanford.smi.protege.model.Slot slot)
private void initRestrictionUpdaters()
public static boolean isIgnorePrefixesInSearch(OWLModel owlModel)
private boolean isReachableByAnotherRoute(edu.stanford.smi.protege.model.Cls subclass, Collection classesToBeDeleted)
private static void log(String str)
public void removeDirectSuperclass(edu.stanford.smi.protege.model.Cls cls, edu.stanford.smi.protege.model.Cls superCls)
public void removeDirectSuperslot(edu.stanford.smi.protege.model.Slot slot, edu.stanford.smi.protege.model.Slot superslot)
public void removeDirectType(edu.stanford.smi.protege.model.Instance instance, edu.stanford.smi.protege.model.Cls directType)
private void removeNamedOperandsFromDirectSuperclasses(OWLNamedClass cls, OWLIntersectionClass intersectionCls, edu.stanford.smi.protege.model.Slot slot)
public void setDirectOwnSlotValues(edu.stanford.smi.protege.model.Frame frame, edu.stanford.smi.protege.model.Slot slot, Collection values)
public void setSuperclassSynchronizationBlocked(boolean value)
public void addDirectTemplateSlot(edu.stanford.smi.protege.model.Cls cls, edu.stanford.smi.protege.model.Slot slot)
private void printDeprecationWarning(String methodName)
public void removeDirectTemplateSlot(edu.stanford.smi.protege.model.Cls cls, edu.stanford.smi.protege.model.Slot slot)
private void updateRDFSDomain(RDFProperty property)
public void setDirectTemplateFacetValues(edu.stanford.smi.protege.model.Cls cls, edu.stanford.smi.protege.model.Slot slot, edu.stanford.smi.protege.model.Facet facet, Collection values)
public void setDirectTemplateSlotValues(edu.stanford.smi.protege.model.Cls cls, edu.stanford.smi.protege.model.Slot slot, Collection values)
private void updatePropertyAllowedClasses(RDFProperty property, Collection values)
private void updatePropertyValueType(RDFProperty property, Collection values)
private void updateRestrictions(OWLNamedClass cls, RDFProperty slot, edu.stanford.smi.protege.model.Facet facet)
private void updateRDFSSubClassOf(RDFSNamedClass cls)
cls
- the RDFSClass that has changed its superclassesprivate void updateSlotDomain(edu.stanford.smi.protege.model.Slot slot, Collection values)
slot
- values
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |