|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface to wrap the Protege Slot interface for OWL. This basically deprecates most methods and points to their replacements in the OWL API.
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.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 |
public void addDirectSuperslot(edu.stanford.smi.protege.model.Slot slot)
addDirectSuperslot
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.addSuperproperty(edu.stanford.smi.protegex.owl.model.RDFProperty)
public void addSlotListener(edu.stanford.smi.protege.event.SlotListener listener)
addSlotListener
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.addPropertyListener(edu.stanford.smi.protegex.owl.model.event.PropertyListener)
public Collection getAllowedClses()
getAllowedClses
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.getUnionRangeClasses()
public Collection getAllowedParents()
getAllowedParents
in interface edu.stanford.smi.protege.model.Slot
public Collection getAllowedValues()
getAllowedValues
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.getRange()
public boolean getAllowsMultipleValues()
getAllowsMultipleValues
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.isFunctional()
public edu.stanford.smi.protege.model.Facet getAssociatedFacet()
getAssociatedFacet
in interface edu.stanford.smi.protege.model.Slot
public Collection getDefaultValues()
getDefaultValues
in interface edu.stanford.smi.protege.model.Slot
public int getDirectSubslotCount()
getDirectSubslotCount
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.getSubpropertyCount()
public Collection getDirectSubslots()
getDirectSubslots
in interface edu.stanford.smi.protege.model.Slot
(false)
public int getDirectSuperslotCount()
getDirectSuperslotCount
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.getSuperpropertyCount()
public Collection getDirectSuperslots()
getDirectSuperslots
in interface edu.stanford.smi.protege.model.Slot
(false)
public boolean hasDirectSuperslot(edu.stanford.smi.protege.model.Slot slot)
hasDirectSuperslot
in interface edu.stanford.smi.protege.model.Slot
(false)
public boolean hasSuperslot(edu.stanford.smi.protege.model.Slot slot)
hasSuperslot
in interface edu.stanford.smi.protege.model.Slot
(true)
public void moveDirectSubslot(edu.stanford.smi.protege.model.Slot movedCls, edu.stanford.smi.protege.model.Slot afterCls)
moveDirectSubslot
in interface edu.stanford.smi.protege.model.Slot
public Collection getDocumentation()
getDocumentation
in interface ProtegeInstance
RDFResource.getComments()
public edu.stanford.smi.protege.model.Slot getInverseSlot()
getInverseSlot
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.getInverseProperty()
public int getMaximumCardinality()
getMaximumCardinality
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.isFunctional()
public Number getMaximumValue()
getMaximumValue
in interface edu.stanford.smi.protege.model.Slot
public int getMinimumCardinality()
getMinimumCardinality
in interface edu.stanford.smi.protege.model.Slot
public Number getMinimumValue()
getMinimumValue
in interface edu.stanford.smi.protege.model.Slot
public Collection getSubslots()
getSubslots
in interface edu.stanford.smi.protege.model.Slot
(true)
public Collection getSuperslots()
getSuperslots
in interface edu.stanford.smi.protege.model.Slot
(true)
public Collection getDirectDomain()
getDirectDomain
in interface edu.stanford.smi.protege.model.Slot
(false)
public Collection getDomain()
getDomain
in interface edu.stanford.smi.protege.model.Slot
(true)
public Collection getValues()
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.
getValues
in interface edu.stanford.smi.protege.model.Slot
public edu.stanford.smi.protege.model.ValueType getValueType()
getValueType
in interface edu.stanford.smi.protege.model.Slot
(true)
public boolean hasValueAtSomeFrame()
hasValueAtSomeFrame
in interface edu.stanford.smi.protege.model.Slot
public void removeDirectSuperslot(edu.stanford.smi.protege.model.Slot slot)
removeDirectSuperslot
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.removeSuperproperty(edu.stanford.smi.protegex.owl.model.RDFProperty)
public void removeSlotListener(edu.stanford.smi.protege.event.SlotListener listener)
removeSlotListener
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.removePropertyListener(edu.stanford.smi.protegex.owl.model.event.PropertyListener)
public void setAllowedClses(Collection clses)
setAllowedClses
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.setUnionRangeClasses(java.util.Collection)
public void setAllowedParents(Collection parents)
setAllowedParents
in interface edu.stanford.smi.protege.model.Slot
public void setAllowedValues(Collection values)
setAllowedValues
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.setRange(edu.stanford.smi.protegex.owl.model.RDFResource)
public void setAllowsMultipleValues(boolean b)
setAllowsMultipleValues
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.setFunctional(boolean)
public void setAssociatedFacet(edu.stanford.smi.protege.model.Facet facet)
setAssociatedFacet
in interface edu.stanford.smi.protege.model.Slot
public void setDefaultValues(Collection values)
setDefaultValues
in interface edu.stanford.smi.protege.model.Slot
public void setDirectTypeOfSubslots(edu.stanford.smi.protege.model.Cls cls)
setDirectTypeOfSubslots
in interface edu.stanford.smi.protege.model.Slot
public void setDocumentation(String doc)
setDocumentation
in interface ProtegeInstance
RDFResource.setComment(java.lang.String)
public void setInverseSlot(edu.stanford.smi.protege.model.Slot slot)
setInverseSlot
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.setInverseProperty(edu.stanford.smi.protegex.owl.model.RDFProperty)
public void setMaximumCardinality(int max)
setMaximumCardinality
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.setFunctional(boolean)
public void setMaximumValue(Number n)
setMaximumValue
in interface edu.stanford.smi.protege.model.Slot
public void setMinimumCardinality(int min)
setMinimumCardinality
in interface edu.stanford.smi.protege.model.Slot
public void setMinimumValue(Number n)
setMinimumValue
in interface edu.stanford.smi.protege.model.Slot
public void setValues(Collection values)
setValues
in interface edu.stanford.smi.protege.model.Slot
public void setValueType(edu.stanford.smi.protege.model.ValueType type)
setValueType
in interface edu.stanford.smi.protege.model.Slot
RDFProperty.setRange(edu.stanford.smi.protegex.owl.model.RDFResource)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |