|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mapping
The interface that defines what a runcible mapping looks like. Simple, a
Mapping
contains the URI of the source and target ontologies
(those being mapped from/to) and a set of rules to apply.
Method Summary | |
---|---|
void |
addRule(Rule rule)
Add a Rule to this Mapping |
void |
deregisterMappingListener(MappingListener listener)
Removes a MappingListener from this Mapping. |
Rule |
findBoundVariable(java.lang.String boundVariableID)
Locate a rule within this Mapping with the bound data variable, using the given bound variable ID. |
Rule |
findRule(java.lang.String variableID)
Locate a rule within this Mapping with the a "forall" statement with the given variable ID. |
java.util.Set<Rule> |
getRules()
Returns the Set of Rules that make up this mapping. |
java.net.URI |
getSourceOntologyURI()
Get the URI of the source ontology. |
java.net.URI |
getTargetOntologyURI()
Get the URI of the target ontology. |
void |
registerMappingListener(MappingListener listener)
Adds a MappingListener to this Mapping. |
void |
removeRule(Rule rule)
Remove a rule from this mapping |
void |
setSourceOntologyURI(java.net.URI sourceURI)
Set the URI of the source ontology for this mapping. |
void |
setTargetOntologyURI(java.net.URI targetURI)
Set the URI of the target ontology for this mapping. |
Method Detail |
---|
void setSourceOntologyURI(java.net.URI sourceURI)
sourceURI
- the URI of the source ontologyjava.net.URI getSourceOntologyURI()
void setTargetOntologyURI(java.net.URI targetURI)
targetURI
- the URI of the target ontologyjava.net.URI getTargetOntologyURI()
void addRule(Rule rule)
rule
- the Rule to addjava.util.Set<Rule> getRules()
void removeRule(Rule rule)
rule
- the Rule to removevoid registerMappingListener(MappingListener listener)
listener
- a MappingListener to register to this Mappingvoid deregisterMappingListener(MappingListener listener)
listener
- the MappingListener to deregister from this MappingRule findRule(java.lang.String variableID)
variableID
- the variable ID of the forall statement in the Rule we
wish to locate
Rule findBoundVariable(java.lang.String boundVariableID)
boundVariableID
- the variable ID of a dataclause within the Rule
being located
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |