Class LSPipeline


  • public class LSPipeline
    extends Object
    Execution pipeline for generating mappings out of link specifications. Provides overloaded convenience methods.
    Author:
    Kevin Dreßler
    • Constructor Detail

      • LSPipeline

        public LSPipeline()
    • Method Detail

      • execute

        public static AMapping execute​(ACache sourceCache,
                                       ACache targetCache,
                                       String metricExpression,
                                       double threshold,
                                       String sourceVar,
                                       String targetVar,
                                       RewriterFactory.RewriterType rewriterType,
                                       ExecutionPlannerFactory.ExecutionPlannerType executionPlannerType,
                                       ExecutionEngineFactory.ExecutionEngineType executionEngineType,
                                       long maxOpt,
                                       double k)
        Execute a LS given a string metric expression and a double threshold, generating a mapping.
        Parameters:
        sourceCache - Resources from source KB
        targetCache - Resources from target KB
        metricExpression - Specifies which measures are used and how they are combined to assert the similarity between two resources
        threshold - Minimal similarity value for resource pairs to be included in the generated mapping
        sourceVar - Name of SPARQL variable for resources from source KB
        targetVar - Name of SPARQL variable for resources from target KB
        rewriterType - Specifies rewriter module to use
        executionPlannerType - Specifies executionPlanner module to use
        executionEngineType - Specifies executionEngine module to use
        Returns:
        Mapping of resources in sourceCache to resources in targetCache with similarity > threshold
      • execute

        public static AMapping execute​(ACache sourceCache,
                                       ACache targetCache,
                                       LinkSpecification ls,
                                       String sourceVar,
                                       String targetVar,
                                       RewriterFactory.RewriterType rewriterType,
                                       ExecutionPlannerFactory.ExecutionPlannerType executionPlannerType,
                                       ExecutionEngineFactory.ExecutionEngineType executionEngineType,
                                       long maxOpt,
                                       double k)
        Execute a given LS, generating a mapping.
        Parameters:
        sourceCache - Resources from source KB
        targetCache - Resources from target KB
        ls - LIMES Link Specification
        sourceVar - Name of SPARQL variable for resources from source KB
        targetVar - Name of SPARQL variable for resources from target KB
        rewriterType - Specifies rewriter module to use
        executionPlannerType - Specifies executionPlanner module to use
        executionEngineType - Specifies executionEngine module to use
        Returns:
        Mapping of resources in sourceCache to resources in targetCache with similarity > threshold
      • execute

        public static AMapping execute​(ACache sourceCache,
                                       ACache targetCache,
                                       LinkSpecification ls)
        Execute a given LS with default rewriter, planner and execution engine, generating a mapping.
        Parameters:
        sourceCache - Resources from source KB
        targetCache - Resources from target KB
        ls - LIMES Link Specification
        Returns:
        Mapping of resources in sourceCache to resources in targetCache with similarity > threshold