public class PropertyMapping extends Object
| Modifier and Type | Field and Description |
|---|---|
List<PairSimilar<String>> |
datePropPairs |
List<PairSimilar<String>> |
numberPropPairs |
List<PairSimilar<String>> |
pointsetPropPairs |
HashSet<String> |
sourceDateProps |
HashSet<String> |
sourceNumberProps |
HashSet<String> |
sourcePointsetProps |
HashSet<String> |
sourceStringProps |
List<PairSimilar<String>> |
stringPropPairs |
HashSet<String> |
targetDateProps |
HashSet<String> |
targetNumberProps |
HashSet<String> |
targetPointsetProps |
HashSet<String> |
targetStringProps |
| Constructor and Description |
|---|
PropertyMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDatePropertyMatch(String sourceProp,
String targetProp)
Add a match between two date properties.
|
void |
addNumberPropertyMatch(String sourceProp,
String targetProp)
Add a match between two number properties.
|
void |
addPointsetPropertyMatch(String sourceProp,
String targetProp)
Add a match between two pointset properties.properties
|
void |
addStringPropertyMatch(String sourceProp,
String targetProp)
properties
Add a match between two String properties.
|
boolean |
containsSourceProp(String uri) |
boolean |
containsTargetProp(String uri) |
AMapping |
getCompletePropMapping() |
AMapping |
getDatePropMapping() |
AMapping |
getNumberPropMapping() |
AMapping |
getPointsetPropMapping() |
AMapping |
getStringPropMapping() |
boolean |
isDateProp(String name)
Is the given property specified as a number Property
|
boolean |
isMatch(String sourceProp,
String targetProp)
Are two properties part of the Property Mapping.
|
boolean |
isNumberProp(String name)
Is the given property specified as a number Property
|
boolean |
isPointsetProp(String name)
Is the given property specified as a pointset Property
|
void |
setDefault(KBInfo source,
KBInfo target)
Just a littler help function to set default property mapping.
|
String |
toString() |
boolean |
wasSet() |
public List<PairSimilar<String>> stringPropPairs
public List<PairSimilar<String>> pointsetPropPairs
public List<PairSimilar<String>> numberPropPairs
public List<PairSimilar<String>> datePropPairs
public void addStringPropertyMatch(String sourceProp, String targetProp)
sourceProp - Name of the property of the source knowledge base.targetProp - Name of the property of the target knowledge base.public void addNumberPropertyMatch(String sourceProp, String targetProp)
sourceProp - Name of the property of the source knowledge base.targetProp - Name of the property of the target knowledge base.public void addDatePropertyMatch(String sourceProp, String targetProp)
sourceProp - Name of the property of the source knowledge base.targetProp - Name of the property of the target knowledge base.public void addPointsetPropertyMatch(String sourceProp, String targetProp)
sourceProp - Name of the property of the source knowledge base.targetProp - Name of the property of the target knowledge base.public boolean isMatch(String sourceProp, String targetProp)
sourceProp - Name of the property of the source knowledge base.targetProp - Name of the property of the target knowledge base.public boolean isNumberProp(String name)
name - Name of the property.public boolean isDateProp(String name)
name - Name of the property.public boolean isPointsetProp(String name)
name - Name of the property.public AMapping getCompletePropMapping()
public AMapping getStringPropMapping()
public AMapping getNumberPropMapping()
public AMapping getDatePropMapping()
public AMapping getPointsetPropMapping()
public boolean wasSet()
public void setDefault(KBInfo source, KBInfo target)
source - knowledge base informationtarget - knowledge base informationpublic boolean containsSourceProp(String uri)
public boolean containsTargetProp(String uri)
Copyright © 2018. All rights reserved.