uk.ac.bbk.dcs.automed.xml
Class XMLTransformer
java.lang.Object
uk.ac.bbk.dcs.automed.xml.XMLTransformer
public class XMLTransformer
- extends java.lang.Object
Class that automatically integrates two fully conformed AutoMed XML DataSource Schemas.
- Author:
- Lucas Zamboulis
|
Constructor Summary |
XMLTransformer(Schema source,
org.w3c.dom.Document sourceSchemaUIDDoc,
Schema target,
org.w3c.dom.Document targetSchemaUIDDoc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLTransformer
public XMLTransformer(Schema source,
org.w3c.dom.Document sourceSchemaUIDDoc,
Schema target,
org.w3c.dom.Document targetSchemaUIDDoc)
- Parameters:
source - the source AutoMed XMLDSSsourceDSDoc - the source DOM XMLDSS - WITH UIDstarget - the target AutoMed XMLDSStargetDSDoc - the target DOM XMLDSS - WITH UIDs
transform
public void transform(boolean validateSource,
boolean validateTarget,
boolean materialisedIntegration)
- Creates the transformation pathway from the source to the target schema. The whole process can be divided into four steps:
- Growing phase: insert schema objects to the source schema
- Shrinking phase: remove schema objects from the source schema.
- Renaming phase: rename edge labels so that the ordering they represent is correct.
- Synthetic data phase: is the user requests so, create synthetic data to create a lossless integration.
- Schema rename phase: rename the final schema of the transformation to
<sourceSchemaName>:<targetSchemaName>:<counter>, where <counter> is used to avoid an IntegrityException being
thrown.
- Check transformation: check that the transformation result is correct.
- Parameters:
validateSource - if true, validate source DOM XMLDSS against any referenced DTD/XML SchemavalidateTarget - if true, validate target DOM XMLDSS against any referenced DTD/XML SchemamaterialisedIntegration - true if the algorithm is to create synthetic structure to resolve structural incompatibilities between the schemas that are to be
integrated
getFinalDoc
public org.w3c.dom.Document getFinalDoc()
- Returns:
- the DOM representation of the transformed XMLDSS.
getFinalSchemaName
public java.lang.String getFinalSchemaName()
- Returns:
- the name of the transformed XMLDSS.
getFinalSchema
public Schema getFinalSchema()
- Returns:
- the transformed AutoMed XMLDSS schema.
listTransformationPathway
public void listTransformationPathway()