edu.byu.deg.ontos.heuristic
Class GlobalOverlapHeuristic

java.lang.Object
  extended byedu.byu.deg.ontos.MappingHeuristic
      extended byedu.byu.deg.ontos.heuristic.GlobalOverlapHeuristic

public class GlobalOverlapHeuristic
extends MappingHeuristic

Implements the heuristic that eliminates conflicting claims caused by overlapping matches. This implementation resolves overlapping claims even when the claims are made by different object sets -- hence the "global" nature of the class. Note that since all overlapping claims are decided by this implementation, the heuristic effectively maps each character of the document to at most one object set, and so very little remains to decide in the value mapping process. The local version of this heuristic is more likely to yield accurate results.


Field Summary
(package private)  Comparator matchComparer
           
 
Fields inherited from class edu.byu.deg.ontos.MappingHeuristic
ACCEPTED_MATCH, connComparer, ontIndex, PROPOSED_MATCH, REJECTED_MATCH
 
Constructor Summary
GlobalOverlapHeuristic()
          Creates a new instance of GlobalOverlapHeuristic
 
Method Summary
 void eliminateOverlaps(edu.byu.deg.framework.Ontology ont, String rootURI)
          Resolves overlapping value match claims, rejecting all but one of the matches that lay claim to a particular region of the document.
 
Methods inherited from class edu.byu.deg.ontos.MappingHeuristic
addObject, addRelationship, bindObject, getOntologyIndex, getOntologyIndex, setOntologyIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchComparer

Comparator matchComparer
Constructor Detail

GlobalOverlapHeuristic

public GlobalOverlapHeuristic()
Creates a new instance of GlobalOverlapHeuristic

Method Detail

eliminateOverlaps

public void eliminateOverlaps(edu.byu.deg.framework.Ontology ont,
                              String rootURI)
Resolves overlapping value match claims, rejecting all but one of the matches that lay claim to a particular region of the document.

Parameters:
ont - The ontology in which the value matches are stored.
rootURI - The URI of the root of the document tree to which the value matches must belong to be considered during the overlap elimination process.