Class CleanNumber
- java.lang.Object
-
- org.aksw.limes.core.io.preprocessing.APreprocessingFunction
-
- org.aksw.limes.core.io.preprocessing.functions.CleanNumber
-
- All Implemented Interfaces:
IPreprocessingFunction
public class CleanNumber extends APreprocessingFunction implements IPreprocessingFunction
Removes type information from number properties- Author:
- Daniel Obraczka
-
-
Field Summary
Fields Modifier and Type Field Description static PatterntypedNumberMatches a number that is followed by "^"static PatternuntypedNumber-
Fields inherited from class org.aksw.limes.core.io.preprocessing.APreprocessingFunction
AT, checkFunctionString, commaNotInsideQuotation
-
-
Constructor Summary
Constructors Constructor Description CleanNumber()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceapplyFunctionAfterCheck(Instance i, String property, String... arguments)intmaxNumberOfArguments()intminNumberOfArguments()static StringremoveTypeInformation(String number)Removes type information from number propertyerties, e.g.-
Methods inherited from class org.aksw.limes.core.io.preprocessing.APreprocessingFunction
applyFunction, isComplex, retrieveArguments, retrieveKeywordArgumentValue, sanityCheckArguments, testIfNumberOfArgumentsIsLegal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.aksw.limes.core.io.preprocessing.IPreprocessingFunction
applyFunction, isComplex
-
-
-
-
Method Detail
-
applyFunctionAfterCheck
public Instance applyFunctionAfterCheck(Instance i, String property, String... arguments)
- Specified by:
applyFunctionAfterCheckin classAPreprocessingFunction
-
removeTypeInformation
public static String removeTypeInformation(String number)
Removes type information from number propertyerties, e.g. "10^^http://www.w3.org/2001/XMLSchema#positiveInteger" would become "10"- Parameters:
number-- Returns:
- number without type information as String or 0
-
minNumberOfArguments
public int minNumberOfArguments()
- Specified by:
minNumberOfArgumentsin interfaceIPreprocessingFunction
-
maxNumberOfArguments
public int maxNumberOfArguments()
- Specified by:
maxNumberOfArgumentsin interfaceIPreprocessingFunction
-
-