public class NameSimilarityMatchingStrategy extends Object implements IResourceMatchingStrategy
Specifically, this will determine the cartesian product of the resource sets, compute a similarity for every single couple of Resource, then consider that every similarity that is above 80% constitutes a mapping.
Constructor and Description |
---|
NameSimilarityMatchingStrategy() |
Modifier and Type | Method and Description |
---|---|
protected static MatchResource |
createMatchResource(Resource left,
Resource right,
Resource origin)
Creates a
MatchResource instance and sets all three resources of the mapping on it. |
List<MatchResource> |
matchResources(Iterable<? extends Resource> left,
Iterable<? extends Resource> right,
Iterable<? extends Resource> origin)
This will be called by the resource matcher in order to determine the matching between n
resources.
|
public List<MatchResource> matchResources(Iterable<? extends Resource> left, Iterable<? extends Resource> right, Iterable<? extends Resource> origin)
matchResources
in interface IResourceMatchingStrategy
left
- Resources we are to match in the left.right
- Resources we are to match in the right.origin
- Resources we are to match in the origin.IResourceMatchingStrategy.matchResources(java.lang.Iterable,
java.lang.Iterable, java.lang.Iterable)
protected static MatchResource createMatchResource(Resource left, Resource right, Resource origin)
MatchResource
instance and sets all three resources of the mapping on it.left
- The left resource of this mapping.right
- The right resource of this mapping.origin
- The origin resource of this mapping.
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.