Class DefaultPropertyMapper
- java.lang.Object
-
- org.aksw.limes.core.ml.algorithm.matching.DefaultPropertyMapper
-
- All Implemented Interfaces:
PropertyMapper
public class DefaultPropertyMapper extends Object implements PropertyMapper
- Author:
- ngonga, Klaus Lyko
-
-
Constructor Summary
Constructors Constructor Description DefaultPropertyMapper()DefaultPropertyMapper(org.apache.jena.rdf.model.Model sourceModel, org.apache.jena.rdf.model.Model targetModel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AMappinggetMappingProperties(String endpoint1, String endpoint2, String classExpression1, String classExpression2)Computes the mapping of property from enpoint1 to endpoint2 by using the restriction classExpression 1 and classExpression2AMappinggetMonoDirectionalMap(String endpoint1, String endpoint2, String classExpression1, String classExpression2)AMappinggetPropertyMapping(String endpoint1, String endpoint2, String classExpression1, String classExpression2)Applies stable matching to determine the best possible mapping of properties from two endpointsorg.apache.jena.rdf.model.ModelgetSourceModel()org.apache.jena.rdf.model.ModelgetTargetModel()static booleanisNumeric(String input)Test whether the input string is numericvoidsetSourceModel(org.apache.jena.rdf.model.Model sourceModel)voidsetTargetModel(org.apache.jena.rdf.model.Model targetModel)
-
-
-
Method Detail
-
getPropertyMapping
public AMapping getPropertyMapping(String endpoint1, String endpoint2, String classExpression1, String classExpression2)
Applies stable matching to determine the best possible mapping of properties from two endpoints- Specified by:
getPropertyMappingin interfacePropertyMapper- Parameters:
endpoint1- Source endpointendpoint2- Target endpointclassExpression1- Source class expressionclassExpression2- Target class expression- Returns:
-
getSourceModel
public org.apache.jena.rdf.model.Model getSourceModel()
-
setSourceModel
public void setSourceModel(org.apache.jena.rdf.model.Model sourceModel)
- Specified by:
setSourceModelin interfacePropertyMapper
-
getTargetModel
public org.apache.jena.rdf.model.Model getTargetModel()
-
setTargetModel
public void setTargetModel(org.apache.jena.rdf.model.Model targetModel)
- Specified by:
setTargetModelin interfacePropertyMapper
-
getMappingProperties
public AMapping getMappingProperties(String endpoint1, String endpoint2, String classExpression1, String classExpression2)
Computes the mapping of property from enpoint1 to endpoint2 by using the restriction classExpression 1 and classExpression2
-
getMonoDirectionalMap
public AMapping getMonoDirectionalMap(String endpoint1, String endpoint2, String classExpression1, String classExpression2)
-
isNumeric
public static boolean isNumeric(String input)
Test whether the input string is numeric- Parameters:
input- String to test- Returns:
- True is numeric, else false
-
-