ie.deri.wsmx.mediation.flora
Class FloraRulesGenerator
java.lang.Object
ie.deri.wsmx.mediation.flora.FloraRulesGenerator
- public class FloraRulesGenerator
- extends java.lang.Object
(c) Copyright 2004, DERI - Digital Enterprise Research Institute, Ireland
- Author:
- Adrian
FloraRulesGenerator.java, Mar 28, 2004, 12:48:10 PM
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FloraRulesGenerator
public FloraRulesGenerator(Mapper mediator)
getStatementForAttribute
public java.lang.String getStatementForAttribute(AttributeDefinition attr)
getStatementForConcept
public java.lang.String getStatementForConcept(java.lang.String concept)
getStatementForConceptWithoutConceptName
public java.lang.String getStatementForConceptWithoutConceptName(java.lang.String concept)
buildString
public void buildString(ConceptTree tree,
boolean isSource)
- Extract the information from a ConceptTree and generates a flora rule fragment out of it
- Parameters:
tree - the tree that has to be read in order to produce the source or the target stringisSource - if it is true builds the source string otherwise the tatget string
saveMappingRule
public java.io.File saveMappingRule(java.lang.String srcConcept,
java.lang.String tgtConcept)
- Calls the fragment rule buider and puts together all flora mapping rule fragmets in a file; asks the user to choose a destination file
- Parameters:
srcConcept - the entry point for the source ontologytgtConcept - the entry point for the target ontology
- Returns:
- the File in which the mapping rule was saved
getMappingRule
public java.lang.StringBuffer getMappingRule(java.lang.String srcConcept,
java.lang.String tgtConcept)