uk.ac.bbk.dcs.automed.xml.sca
Class SchemaConformanceAlgorithm

java.lang.Object
  extended by uk.ac.bbk.dcs.automed.xml.sca.SchemaConformanceAlgorithm

public class SchemaConformanceAlgorithm
extends java.lang.Object


Field Summary
protected static java.util.logging.Logger logger
           
 
Constructor Summary
SchemaConformanceAlgorithm()
           
 
Method Summary
static Schema applySCA(java.lang.String rulesDocURI)
           
protected static java.util.List getRules(org.w3c.dom.Document rulesDoc)
           
protected static java.lang.String getSuffix(java.lang.String newName, java.util.Map usedNames)
           
protected static void optimise(ASG g, Schema source, Schema[] targets, QueryProcessorConfiguration qpc)
           
protected static void processGroupRule1Or2(org.w3c.dom.Document matchesDoc, SchemaConformanceRuleGroup scrg, java.util.Map usedNames)
           
protected static void processGroupRule3(org.w3c.dom.Document matchesDoc, SchemaConformanceRuleGroup scrg, java.util.Map usedNames)
           
protected static void processGroupRule4Or5(org.w3c.dom.Document matchesDoc, SchemaConformanceRuleGroup scrg, java.util.Map usedNames)
           
protected static void processGroupRule6Or7(org.w3c.dom.Document matchesDoc, SchemaConformanceRuleGroup scrg, java.util.Map usedNames)
           
static org.w3c.dom.Document processRulesDoc(org.w3c.dom.Document rulesDoc)
           
protected static void processSchemaConformanceRule(org.w3c.dom.Document matchesDoc, SchemaConformanceRuleGroup scrg, java.util.Map usedNames)
           
protected static void reformulate(ASG g, QueryProcessorConfiguration qpc, Schema source, Schema[] targets, java.lang.String integrationSemantics)
           
static org.w3c.dom.Document reformulateCorrespondences(org.w3c.dom.Document doc, Schema source, Schema target)
           
protected static void stripSchemesFromExtraInformation(Cell c)
           
protected static void updateCorrespondencesDocument(org.w3c.dom.Document doc, java.util.List rules, java.lang.String targetName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static java.util.logging.Logger logger
Constructor Detail

SchemaConformanceAlgorithm

public SchemaConformanceAlgorithm()
Method Detail

applySCA

public static Schema applySCA(java.lang.String rulesDocURI)
                       throws java.lang.Exception
Throws:
java.lang.Exception

processRulesDoc

public static org.w3c.dom.Document processRulesDoc(org.w3c.dom.Document rulesDoc)
                                            throws XMLException
Throws:
XMLException

processSchemaConformanceRule

protected static void processSchemaConformanceRule(org.w3c.dom.Document matchesDoc,
                                                   SchemaConformanceRuleGroup scrg,
                                                   java.util.Map usedNames)
                                            throws XMLException
Throws:
XMLException

processGroupRule1Or2

protected static void processGroupRule1Or2(org.w3c.dom.Document matchesDoc,
                                           SchemaConformanceRuleGroup scrg,
                                           java.util.Map usedNames)
                                    throws XMLException
Throws:
XMLException

processGroupRule3

protected static void processGroupRule3(org.w3c.dom.Document matchesDoc,
                                        SchemaConformanceRuleGroup scrg,
                                        java.util.Map usedNames)
                                 throws XMLException
Throws:
XMLException

processGroupRule4Or5

protected static void processGroupRule4Or5(org.w3c.dom.Document matchesDoc,
                                           SchemaConformanceRuleGroup scrg,
                                           java.util.Map usedNames)
                                    throws XMLException
Throws:
XMLException

processGroupRule6Or7

protected static void processGroupRule6Or7(org.w3c.dom.Document matchesDoc,
                                           SchemaConformanceRuleGroup scrg,
                                           java.util.Map usedNames)
                                    throws XMLException
Throws:
XMLException

getRules

protected static java.util.List getRules(org.w3c.dom.Document rulesDoc)
                                  throws XMLException
Throws:
XMLException

getSuffix

protected static java.lang.String getSuffix(java.lang.String newName,
                                            java.util.Map usedNames)

reformulateCorrespondences

public static org.w3c.dom.Document reformulateCorrespondences(org.w3c.dom.Document doc,
                                                              Schema source,
                                                              Schema target)
                                                       throws XMLException
Throws:
XMLException

stripSchemesFromExtraInformation

protected static void stripSchemesFromExtraInformation(Cell c)

updateCorrespondencesDocument

protected static void updateCorrespondencesDocument(org.w3c.dom.Document doc,
                                                    java.util.List rules,
                                                    java.lang.String targetName)

reformulate

protected static void reformulate(ASG g,
                                  QueryProcessorConfiguration qpc,
                                  Schema source,
                                  Schema[] targets,
                                  java.lang.String integrationSemantics)
                           throws QProcException,
                                  NotFoundException
Throws:
QProcException
NotFoundException

optimise

protected static void optimise(ASG g,
                               Schema source,
                               Schema[] targets,
                               QueryProcessorConfiguration qpc)
                        throws QProcException
Throws:
QProcException