Class Preprocessor
- java.lang.Object
-
- org.aksw.limes.core.io.preprocessing.Preprocessor
-
public class Preprocessor extends Object
This class is used to apply preprocessing functions to caches- Author:
- Daniel Obraczka
-
-
Constructor Summary
Constructors Constructor Description Preprocessor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ACacheapplyFunctionsToCache(ACache cache, Map<String,Map<String,String>> functions)CallsapplyFunctionsToCache(ACache, Map, boolean)withcloneCache=falsestatic ACacheapplyFunctionsToCache(ACache cache, Map<String,Map<String,String>> functions, boolean cloneCache)static voidapplyRenameIfNecessary(Instance inst, String property, String propertyDub)static StringgetFunctionId(String argString)
-
-
-
Method Detail
-
applyFunctionsToCache
public static ACache applyFunctionsToCache(ACache cache, Map<String,Map<String,String>> functions)
CallsapplyFunctionsToCache(ACache, Map, boolean)withcloneCache=false- Parameters:
cache- cache that should be processedfunctions- preprocessing functions that will be applied- Returns:
- cache with instances on which the preprocessing functions where applied
-
applyFunctionsToCache
public static ACache applyFunctionsToCache(ACache cache, Map<String,Map<String,String>> functions, boolean cloneCache)
- Parameters:
cache- cache that should be processedfunctions- preprocessing functions that will be appliedcloneCache- if true, the cache will be cloned and the given cache is left as is- Returns:
- cache with instances on which the preprocessing functions where applied, if cloneCache was set to true this a different cache than the provided
-
applyRenameIfNecessary
public static void applyRenameIfNecessary(Instance inst, String property, String propertyDub)
-
-