edu.stanford.smi.protegex.owl.model.framestore
Interface RestrictionUpdater
- All Known Implementing Classes:
- AbstractRestrictionUpdater
- public interface RestrictionUpdater
An object capable of mapping restrictions into facet overrides, and vice versa.
The goal of these classes is to ensure a maximum of compatibility to existing Protege
components, such as the template slots widget, that allows to edit facet overrides
on a per class basis. Furthermore, this class makes sure that legacy Protege
ontologies can be converted into OWL (so that restrictions are created for facet
overrides) and that OWL files can be saved in other formats as well (because restrictions
are mirrored in restrictions that are not exported in most formats).
Depending on the type of event, this class does the following:
- directSuperclassAdded/Removed (at OWLNamedClass): Updates facet overrides
- directTemplateSlotAdded/Removed (at OWLRestriction): Updates facet overrides
- templateFacetValueChanged (at OWLRestriction, i.e. filler changed): Updates facet overrides
- templateFacetValueChanged (at OWLNamedClass): Updates restrictions
- Author:
- Holger Knublauch
copyFacetValuesIntoNamedClass
public void copyFacetValuesIntoNamedClass(RDFSNamedClass cls,
OWLRestriction restriction)
updateRestrictions
public void updateRestrictions(OWLNamedClass cls,
RDFProperty property,
edu.stanford.smi.protege.model.Facet facet)