public interface OntologyModificationListener extends EventListener
Modifier and Type | Method and Description |
---|---|
void |
ontologyReset(Ontology ontology)
This method is called whenever ontology is reset.
|
void |
resourceAdded(Ontology ontology,
OResource resource)
This method is invoked whenever a resource
(class/property/instance) is added to the ontology.
|
void |
resourcePropertyValueChanged(Ontology ontology,
OResource resource,
RDFProperty property,
Object value,
int eventType)
This method should be invoked when a property value is added or removed (specified by the event type).
|
void |
resourceRelationChanged(Ontology ontology,
OResource resource1,
OResource resource2,
int eventType)
This method is invoked whenever a relation between two objects of the same class (e.g.
|
void |
resourcesRemoved(Ontology ontology,
String[] resources)
This method is invoked whenever a resource
(class/property/instance) is removed from the ontology.
|
void resourceRelationChanged(Ontology ontology, OResource resource1, OResource resource2, int eventType)
ontology
- the source of the eventresource1
- the affected OResourceresource2
- the affected OResourceeventType
- the type of an event (@see OConstants) for more
detailsvoid resourcePropertyValueChanged(Ontology ontology, OResource resource, RDFProperty property, Object value, int eventType)
ontology
- the source of the eventresource
- the affected resource whose property value is added or removedproperty
- the property whose value has been added or removedvalue
- the actual value that is added or removed. If the value is null - it indicates all the values related to the property are deleted.eventType
- type of the event (@see OConstants) for more detailsvoid resourcesRemoved(Ontology ontology, String[] resources)
ontology
- the source of the eventresources
- an array of URIs of resources which were deleted
(including the resource which was asked to be deleted).void resourceAdded(Ontology ontology, OResource resource)
ontology
- the source of the eventresource
- an instance of OResource, which was created as a
result of addition of a resource.void ontologyReset(Ontology ontology)
ontology
- Copyright © 2024 GATE. All rights reserved.