Class AlignmentClosureRefiner

java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.refinement.AlignmentClosureRefiner
All Implemented Interfaces:
Refiner

public class AlignmentClosureRefiner extends Object implements Refiner
This refiner will create the closure of the system and reference alignment. If will compute the closure with the help of the alignment itself and the source and target ontology. An example: source ontology defines A subclass B and target ontology defines X subclass Y and alignment is A - sub - X, then it will also contain A - sub- Y.
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • AlignmentClosureRefiner

      public AlignmentClosureRefiner()
  • Method Details

    • refine

      public ExecutionResult refine(ExecutionResult toBeRefined)
      Description copied from interface: Refiner
      Create a new refined ExecutionResult from an ExecutionResult. Examples are: only class matches, only non trivial matches etc.
      Specified by:
      refine in interface Refiner
      Parameters:
      toBeRefined - ExecutionResult which should be refined
      Returns:
      a new ExecutionResult which is refined
    • refineAlignment

      public static Alignment refineAlignment(org.apache.jena.rdf.model.Model kgOne, org.apache.jena.rdf.model.Model kgTwo, Alignment alignment)
    • isContained

      private static boolean isContained(org.apache.jena.rdf.model.Model model, String uri)
    • addModelInformation

      private static void addModelInformation(org.apache.jena.rdf.model.Model m, Map<String,Set<String>> subClassOfMap)
    • bfs

      private static Set<String> bfs(Map<String,Set<String>> edges, String startPoint)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object