edu.stanford.smi.protegex.owl.model
Interface ProtegeSlot

All Superinterfaces:
Comparable, edu.stanford.smi.protege.model.Frame, edu.stanford.smi.protege.model.Instance, ProtegeInstance, edu.stanford.smi.protege.model.Slot
All Known Subinterfaces:
OWLDatatypeProperty, OWLObjectProperty, OWLProperty, RDFProperty
All Known Implementing Classes:
AbstractOWLProperty, DefaultOWLDatatypeProperty, DefaultOWLObjectProperty, DefaultRDFProperty

public interface ProtegeSlot
extends ProtegeInstance, edu.stanford.smi.protege.model.Slot

An interface to wrap the Protege Slot interface for OWL. This basically deprecates most methods and points to their replacements in the OWL API.

Author:
Holger Knublauch

Method Summary
 void addDirectSuperslot(edu.stanford.smi.protege.model.Slot slot)
          Deprecated.  
 void addSlotListener(edu.stanford.smi.protege.event.SlotListener listener)
          Deprecated.  
 Collection getAllowedClses()
          Deprecated.  
 Collection getAllowedParents()
          Deprecated. set the value of the protege:allowedParents property directly
 Collection getAllowedValues()
          Deprecated. compare to OWLDataRange as range
 boolean getAllowsMultipleValues()
          Deprecated.  
 edu.stanford.smi.protege.model.Facet getAssociatedFacet()
          Deprecated. no OWL equivalent
 Collection getDefaultValues()
          Deprecated. no OWL equivalent
 Collection getDirectDomain()
          Deprecated.  
 int getDirectSubslotCount()
          Deprecated.  
 Collection getDirectSubslots()
          Deprecated.  
 int getDirectSuperslotCount()
          Deprecated.  
 Collection getDirectSuperslots()
          Deprecated.  
 Collection getDocumentation()
          Deprecated.  
 Collection getDomain()
          Deprecated.  
 edu.stanford.smi.protege.model.Slot getInverseSlot()
          Deprecated.  
 int getMaximumCardinality()
          Deprecated.  
 Number getMaximumValue()
          Deprecated. no OWL equivalent
 int getMinimumCardinality()
          Deprecated. no OWL equivalent
 Number getMinimumValue()
          Deprecated. no OWL equivalent
 Collection getSubslots()
          Deprecated.  
 Collection getSuperslots()
          Deprecated.  
 Collection getValues()
          Returns the "template slot values" for a top level slot.
 edu.stanford.smi.protege.model.ValueType getValueType()
          Deprecated.  
 boolean hasDirectSuperslot(edu.stanford.smi.protege.model.Slot slot)
          Deprecated.  
 boolean hasSuperslot(edu.stanford.smi.protege.model.Slot slot)
          Deprecated.  
 boolean hasValueAtSomeFrame()
          Deprecated. not needed
 void moveDirectSubslot(edu.stanford.smi.protege.model.Slot movedCls, edu.stanford.smi.protege.model.Slot afterCls)
          Deprecated. not needed
 void removeDirectSuperslot(edu.stanford.smi.protege.model.Slot slot)
          Deprecated.  
 void removeSlotListener(edu.stanford.smi.protege.event.SlotListener listener)
          Deprecated.  
 void setAllowedClses(Collection clses)
          Deprecated.  
 void setAllowedParents(Collection parents)
          Deprecated. set the value of the protege:allowedParents property directly
 void setAllowedValues(Collection values)
          Deprecated. set an OWLDataRange as range
 void setAllowsMultipleValues(boolean b)
          Deprecated.  
 void setAssociatedFacet(edu.stanford.smi.protege.model.Facet facet)
          Deprecated. no OWL equivalent
 void setDefaultValues(Collection values)
          Deprecated. no OWL equivalent
 void setDirectTypeOfSubslots(edu.stanford.smi.protege.model.Cls cls)
          Deprecated. not needed
 void setDocumentation(String doc)
          Deprecated.  
 void setInverseSlot(edu.stanford.smi.protege.model.Slot slot)
          Deprecated.  
 void setMaximumCardinality(int max)
          Deprecated.  
 void setMaximumValue(Number n)
          Deprecated. no OWL equivalent
 void setMinimumCardinality(int min)
          Deprecated. no OWL equivalent
 void setMinimumValue(Number n)
          Deprecated. no OWL equivalent
 void setValues(Collection values)
          Deprecated. no OWL equivalent
 void setValueType(edu.stanford.smi.protege.model.ValueType type)
          Deprecated.  
 
Methods inherited from interface edu.stanford.smi.protegex.owl.model.ProtegeInstance
addDirectType, addFrameListener, addInstanceListener, addOwnFacetValue, addOwnSlotValue, areValidOwnSlotValues, copy, deepCopy, getBrowserText, getDirectOwnSlotValue, getDirectOwnSlotValues, getDirectType, getDirectTypes, getFrameID, getIcon, getInvalidOwnSlotValuesText, getInvalidOwnSlotValueText, getKnowledgeBase, getOwnFacetValue, getOwnFacetValues, getOwnSlotAllowsMultipleValues, getOwnSlotAndSubslotValues, getOwnSlotDefaultValues, getOwnSlotFacets, getOwnSlotFacetValues, getOwnSlots, getOwnSlotValue, getOwnSlotValueCount, getOwnSlotValues, getOwnSlotValueType, getProject, getReachableSimpleInstances, getReferences, getReferences, hasDirectType, hasOwnSlot, hasType, isBeingDeleted, isDeleted, isEditable, isIncluded, isSystem, isValidOwnSlotValue, markDeleted, markDeleting, removeDirectType, removeFrameListener, removeInstanceListener, removeOwnSlotValue, setDirectOwnSlotValue, setDirectOwnSlotValues, setDirectType, setDirectTypes, setDocumentation, setEditable, setIncluded, setOwnFacetValue, setOwnFacetValues, setOwnSlotValue, setOwnSlotValues, shallowCopy
 
Methods inherited from interface edu.stanford.smi.protege.model.Instance
moveDirectType
 
Methods inherited from interface edu.stanford.smi.protege.model.Frame
delete, getName, isValid, isVisible, moveDirectOwnSlotValue, setName, setVisible
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface edu.stanford.smi.protege.model.Slot
getTemplateSlotClses
 

Method Detail

addDirectSuperslot

public void addDirectSuperslot(edu.stanford.smi.protege.model.Slot slot)
Deprecated.  

Specified by:
addDirectSuperslot in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.addSuperproperty(edu.stanford.smi.protegex.owl.model.RDFProperty)

addSlotListener

public void addSlotListener(edu.stanford.smi.protege.event.SlotListener listener)
Deprecated.  

Specified by:
addSlotListener in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.addPropertyListener(edu.stanford.smi.protegex.owl.model.event.PropertyListener)

getAllowedClses

public Collection getAllowedClses()
Deprecated.  

Specified by:
getAllowedClses in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.getUnionRangeClasses()

getAllowedParents

public Collection getAllowedParents()
Deprecated. set the value of the protege:allowedParents property directly

Specified by:
getAllowedParents in interface edu.stanford.smi.protege.model.Slot

getAllowedValues

public Collection getAllowedValues()
Deprecated. compare to OWLDataRange as range

Specified by:
getAllowedValues in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.getRange()

getAllowsMultipleValues

public boolean getAllowsMultipleValues()
Deprecated.  

Specified by:
getAllowsMultipleValues in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.isFunctional()

getAssociatedFacet

public edu.stanford.smi.protege.model.Facet getAssociatedFacet()
Deprecated. no OWL equivalent

Specified by:
getAssociatedFacet in interface edu.stanford.smi.protege.model.Slot

getDefaultValues

public Collection getDefaultValues()
Deprecated. no OWL equivalent

Specified by:
getDefaultValues in interface edu.stanford.smi.protege.model.Slot

getDirectSubslotCount

public int getDirectSubslotCount()
Deprecated.  

Specified by:
getDirectSubslotCount in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.getSubpropertyCount()

getDirectSubslots

public Collection getDirectSubslots()
Deprecated.  

Specified by:
getDirectSubslots in interface edu.stanford.smi.protege.model.Slot
See Also:
(false)

getDirectSuperslotCount

public int getDirectSuperslotCount()
Deprecated.  

Specified by:
getDirectSuperslotCount in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.getSuperpropertyCount()

getDirectSuperslots

public Collection getDirectSuperslots()
Deprecated.  

Specified by:
getDirectSuperslots in interface edu.stanford.smi.protege.model.Slot
See Also:
(false)

hasDirectSuperslot

public boolean hasDirectSuperslot(edu.stanford.smi.protege.model.Slot slot)
Deprecated.  

Specified by:
hasDirectSuperslot in interface edu.stanford.smi.protege.model.Slot
See Also:
(false)

hasSuperslot

public boolean hasSuperslot(edu.stanford.smi.protege.model.Slot slot)
Deprecated.  

Specified by:
hasSuperslot in interface edu.stanford.smi.protege.model.Slot
See Also:
(true)

moveDirectSubslot

public void moveDirectSubslot(edu.stanford.smi.protege.model.Slot movedCls,
                              edu.stanford.smi.protege.model.Slot afterCls)
Deprecated. not needed

Specified by:
moveDirectSubslot in interface edu.stanford.smi.protege.model.Slot

getDocumentation

public Collection getDocumentation()
Deprecated.  

Specified by:
getDocumentation in interface ProtegeInstance
See Also:
RDFResource.getComments()

getInverseSlot

public edu.stanford.smi.protege.model.Slot getInverseSlot()
Deprecated.  

Specified by:
getInverseSlot in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.getInverseProperty()

getMaximumCardinality

public int getMaximumCardinality()
Deprecated.  

Specified by:
getMaximumCardinality in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.isFunctional()

getMaximumValue

public Number getMaximumValue()
Deprecated. no OWL equivalent

Specified by:
getMaximumValue in interface edu.stanford.smi.protege.model.Slot

getMinimumCardinality

public int getMinimumCardinality()
Deprecated. no OWL equivalent

Specified by:
getMinimumCardinality in interface edu.stanford.smi.protege.model.Slot

getMinimumValue

public Number getMinimumValue()
Deprecated. no OWL equivalent

Specified by:
getMinimumValue in interface edu.stanford.smi.protege.model.Slot

getSubslots

public Collection getSubslots()
Deprecated.  

Specified by:
getSubslots in interface edu.stanford.smi.protege.model.Slot
See Also:
(true)

getSuperslots

public Collection getSuperslots()
Deprecated.  

Specified by:
getSuperslots in interface edu.stanford.smi.protege.model.Slot
See Also:
(true)

getDirectDomain

public Collection getDirectDomain()
Deprecated.  

Specified by:
getDirectDomain in interface edu.stanford.smi.protege.model.Slot
See Also:
(false)

getDomain

public Collection getDomain()
Deprecated.  

Specified by:
getDomain in interface edu.stanford.smi.protege.model.Slot
See Also:
(true)

getValues

public Collection getValues()
Returns the "template slot values" for a top level slot. Usually this is empty. Beware: this method probably doesn't do what you think! It does NOT return own slot values at a particular frame. To get own slot values at a class see Frame.getOwnSlotValues(Slot) What it does do is return the values which will become template slot values when this slot is attached to a class.

Specified by:
getValues in interface edu.stanford.smi.protege.model.Slot

getValueType

public edu.stanford.smi.protege.model.ValueType getValueType()
Deprecated.  

Specified by:
getValueType in interface edu.stanford.smi.protege.model.Slot
See Also:
(true)

hasValueAtSomeFrame

public boolean hasValueAtSomeFrame()
Deprecated. not needed

Specified by:
hasValueAtSomeFrame in interface edu.stanford.smi.protege.model.Slot

removeDirectSuperslot

public void removeDirectSuperslot(edu.stanford.smi.protege.model.Slot slot)
Deprecated.  

Specified by:
removeDirectSuperslot in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.removeSuperproperty(edu.stanford.smi.protegex.owl.model.RDFProperty)

removeSlotListener

public void removeSlotListener(edu.stanford.smi.protege.event.SlotListener listener)
Deprecated.  

Specified by:
removeSlotListener in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.removePropertyListener(edu.stanford.smi.protegex.owl.model.event.PropertyListener)

setAllowedClses

public void setAllowedClses(Collection clses)
Deprecated.  

Specified by:
setAllowedClses in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.setUnionRangeClasses(java.util.Collection)

setAllowedParents

public void setAllowedParents(Collection parents)
Deprecated. set the value of the protege:allowedParents property directly

Specified by:
setAllowedParents in interface edu.stanford.smi.protege.model.Slot

setAllowedValues

public void setAllowedValues(Collection values)
Deprecated. set an OWLDataRange as range

Specified by:
setAllowedValues in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.setRange(edu.stanford.smi.protegex.owl.model.RDFResource)

setAllowsMultipleValues

public void setAllowsMultipleValues(boolean b)
Deprecated.  

Specified by:
setAllowsMultipleValues in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.setFunctional(boolean)

setAssociatedFacet

public void setAssociatedFacet(edu.stanford.smi.protege.model.Facet facet)
Deprecated. no OWL equivalent

Specified by:
setAssociatedFacet in interface edu.stanford.smi.protege.model.Slot

setDefaultValues

public void setDefaultValues(Collection values)
Deprecated. no OWL equivalent

Specified by:
setDefaultValues in interface edu.stanford.smi.protege.model.Slot

setDirectTypeOfSubslots

public void setDirectTypeOfSubslots(edu.stanford.smi.protege.model.Cls cls)
Deprecated. not needed

Specified by:
setDirectTypeOfSubslots in interface edu.stanford.smi.protege.model.Slot

setDocumentation

public void setDocumentation(String doc)
Deprecated.  

Specified by:
setDocumentation in interface ProtegeInstance
See Also:
RDFResource.setComment(java.lang.String)

setInverseSlot

public void setInverseSlot(edu.stanford.smi.protege.model.Slot slot)
Deprecated.  

Specified by:
setInverseSlot in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.setInverseProperty(edu.stanford.smi.protegex.owl.model.RDFProperty)

setMaximumCardinality

public void setMaximumCardinality(int max)
Deprecated.  

Specified by:
setMaximumCardinality in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.setFunctional(boolean)

setMaximumValue

public void setMaximumValue(Number n)
Deprecated. no OWL equivalent

Specified by:
setMaximumValue in interface edu.stanford.smi.protege.model.Slot

setMinimumCardinality

public void setMinimumCardinality(int min)
Deprecated. no OWL equivalent

Specified by:
setMinimumCardinality in interface edu.stanford.smi.protege.model.Slot

setMinimumValue

public void setMinimumValue(Number n)
Deprecated. no OWL equivalent

Specified by:
setMinimumValue in interface edu.stanford.smi.protege.model.Slot

setValues

public void setValues(Collection values)
Deprecated. no OWL equivalent

Specified by:
setValues in interface edu.stanford.smi.protege.model.Slot

setValueType

public void setValueType(edu.stanford.smi.protege.model.ValueType type)
Deprecated.  

Specified by:
setValueType in interface edu.stanford.smi.protege.model.Slot
See Also:
RDFProperty.setRange(edu.stanford.smi.protegex.owl.model.RDFResource)