Class DefaultClassMapper
- java.lang.Object
-
- org.aksw.limes.core.ml.algorithm.matching.DefaultClassMapper
-
- All Implemented Interfaces:
OntologyClassMapper
public class DefaultClassMapper extends Object implements OntologyClassMapper
Tries to map the classes out of two SPARQL endpoints via stable marriages- Author:
- ngonga, Klaus Lyko
-
-
Field Summary
Fields Modifier and Type Field Description intLIMIT
-
Constructor Summary
Constructors Constructor Description DefaultClassMapper()DefaultClassMapper(int limit)DefaultClassMapper(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 AMappinggetEntityMapping(String endpoint1, String endpoint2, String namespace1, String namespace2)AMappinggetMappingClasses(String endpoint1, String endpoint2, String namespace1, String namespace2)Computes mapping between classes in two given endpoints by using the owl:sameAs links.AMappinggetMappingClassesFallback(String endpoint1, String endpoint2, String namespace1, String namespace2)AMappinggetMonoDirectionalMap(String endpoint1, String endpoint2, String namespace1, String namespace2)AMappinggetMonoDirectionalMapFallback(String endpoint1, String endpoint2, String namespace1, String namespace2)org.apache.jena.rdf.model.ModelgetSourceModel()org.apache.jena.rdf.model.ModelgetTargetModel()static booleanisNumeric(String input)static voidmain(String[] args)voidsetSourceModel(org.apache.jena.rdf.model.Model sourceModel)voidsetTargetModel(org.apache.jena.rdf.model.Model targetModel)
-
-
-
Method Detail
-
getSourceModel
public org.apache.jena.rdf.model.Model getSourceModel()
-
setSourceModel
public void setSourceModel(org.apache.jena.rdf.model.Model sourceModel)
-
getTargetModel
public org.apache.jena.rdf.model.Model getTargetModel()
-
setTargetModel
public void setTargetModel(org.apache.jena.rdf.model.Model targetModel)
-
getEntityMapping
public AMapping getEntityMapping(String endpoint1, String endpoint2, String namespace1, String namespace2)
- Specified by:
getEntityMappingin interfaceOntologyClassMapper
-
getMappingClasses
public AMapping getMappingClasses(String endpoint1, String endpoint2, String namespace1, String namespace2)
Computes mapping between classes in two given endpoints by using the owl:sameAs links. If no such links exists between the two endpoints, the fallback solution is used- Parameters:
endpoint1- Source endpoint for the class mappingendpoint2- Target endpoint for the class mappingnamespace1- Namespace for the source endpointnamespace2- Namespace for the target endpoint- Returns:
- Mapping of classes from source to target weighted with number of owl:sameAs links or fallback weight based on matching properties
-
getMappingClassesFallback
public AMapping getMappingClassesFallback(String endpoint1, String endpoint2, String namespace1, String namespace2)
-
getMonoDirectionalMap
public AMapping getMonoDirectionalMap(String endpoint1, String endpoint2, String namespace1, String namespace2)
-
getMonoDirectionalMapFallback
public AMapping getMonoDirectionalMapFallback(String endpoint1, String endpoint2, String namespace1, String namespace2)
-
main
public static void main(String[] args)
-
isNumeric
public static boolean isNumeric(String input)
-
-