Class XMLConfigurationReader
- java.lang.Object
-
- org.aksw.limes.core.io.config.reader.AConfigurationReader
-
- org.aksw.limes.core.io.config.reader.xml.XMLConfigurationReader
-
public class XMLConfigurationReader extends AConfigurationReader
- Version:
- Jul 12, 2016
- Author:
- Mohamed Sherif (sherif@informatik.uni-leipzig.de)
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringACCEPTANCEprotected static StringASprotected static StringENDPOINTprotected static StringENGINEprotected static StringEXECUTIONprotected static StringEXPECTED_SELECTIVITYprotected static StringFILEprotected static StringFUNCTIONprotected static StringGRANULARITYprotected static StringGRAPHprotected static StringIDprotected static StringLABELprotected static StringMAXOFFSETprotected static StringMETRICprotected static StringMINOFFSETprotected static StringMLALGORITHMprotected static StringNAMEprotected static StringNAMESPACEprotected static StringOPTIMIZATION_TIMEprotected static StringOPTIONAL_PROPERTYprotected static StringOUTPUTprotected static StringPAGESIZEprotected static StringPARAMETERprotected static StringPLANNERprotected static StringPREFIXprotected static StringPROPERTYprotected static StringRELATIONprotected static StringRENAMEprotected static StringRESTRICTIONprotected static StringREVIEWprotected static StringREWRITERprotected static StringSOURCEprotected static StringTARGETprotected static StringTHRESHOLDprotected static StringTRAININGprotected static StringTYPEprotected static StringVALUEprotected static StringVAR-
Fields inherited from class org.aksw.limes.core.io.config.reader.AConfigurationReader
configuration, fileNameOrUri
-
-
Constructor Summary
Constructors Constructor Description XMLConfigurationReader(String xmlFile)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet(Configuration configuration)static StringgetText(Node node)Returns the content of a nodevoidmodifyMetricExpression(LinkSpecification spec)voidprocessKBDescription(String kb, NodeList children)static voidprocessOptionalProperty(KBInfo kbinfo, String property)static voidprocessProperty(KBInfo kbinfo, String property)Configurationread()Returns a filled out configuration object if the input complies to the LIMES DTD and contains everything needed.static voidsetComplexFunction(KBInfo info, String function)ConfigurationvalidateAndRead(InputStream input, String filePath)Returns true if the input complies to the LIMES DTD and contains everything needed.-
Methods inherited from class org.aksw.limes.core.io.config.reader.AConfigurationReader
getConfiguration, setConfiguration
-
-
-
-
Field Detail
-
FILE
protected static final String FILE
- See Also:
- Constant Field Values
-
GRANULARITY
protected static final String GRANULARITY
- See Also:
- Constant Field Values
-
TARGET
protected static final String TARGET
- See Also:
- Constant Field Values
-
LABEL
protected static final String LABEL
- See Also:
- Constant Field Values
-
RELATION
protected static final String RELATION
- See Also:
- Constant Field Values
-
THRESHOLD
protected static final String THRESHOLD
- See Also:
- Constant Field Values
-
REVIEW
protected static final String REVIEW
- See Also:
- Constant Field Values
-
ACCEPTANCE
protected static final String ACCEPTANCE
- See Also:
- Constant Field Values
-
EXECUTION
protected static final String EXECUTION
- See Also:
- Constant Field Values
-
OUTPUT
protected static final String OUTPUT
- See Also:
- Constant Field Values
-
TYPE
protected static final String TYPE
- See Also:
- Constant Field Values
-
VAR
protected static final String VAR
- See Also:
- Constant Field Values
-
ID
protected static final String ID
- See Also:
- Constant Field Values
-
SOURCE
protected static final String SOURCE
- See Also:
- Constant Field Values
-
PREFIX
protected static final String PREFIX
- See Also:
- Constant Field Values
-
PAGESIZE
protected static final String PAGESIZE
- See Also:
- Constant Field Values
-
ENDPOINT
protected static final String ENDPOINT
- See Also:
- Constant Field Values
-
GRAPH
protected static final String GRAPH
- See Also:
- Constant Field Values
-
RESTRICTION
protected static final String RESTRICTION
- See Also:
- Constant Field Values
-
PROPERTY
protected static final String PROPERTY
- See Also:
- Constant Field Values
-
OPTIONAL_PROPERTY
protected static final String OPTIONAL_PROPERTY
- See Also:
- Constant Field Values
-
AS
protected static final String AS
- See Also:
- Constant Field Values
-
RENAME
protected static final String RENAME
- See Also:
- Constant Field Values
-
METRIC
protected static final String METRIC
- See Also:
- Constant Field Values
-
NAMESPACE
protected static final String NAMESPACE
- See Also:
- Constant Field Values
-
REWRITER
protected static final String REWRITER
- See Also:
- Constant Field Values
-
PLANNER
protected static final String PLANNER
- See Also:
- Constant Field Values
-
ENGINE
protected static final String ENGINE
- See Also:
- Constant Field Values
-
MLALGORITHM
protected static final String MLALGORITHM
- See Also:
- Constant Field Values
-
NAME
protected static final String NAME
- See Also:
- Constant Field Values
-
TRAINING
protected static final String TRAINING
- See Also:
- Constant Field Values
-
VALUE
protected static final String VALUE
- See Also:
- Constant Field Values
-
PARAMETER
protected static final String PARAMETER
- See Also:
- Constant Field Values
-
MAXOFFSET
protected static final String MAXOFFSET
- See Also:
- Constant Field Values
-
MINOFFSET
protected static final String MINOFFSET
- See Also:
- Constant Field Values
-
FUNCTION
protected static final String FUNCTION
- See Also:
- Constant Field Values
-
OPTIMIZATION_TIME
protected static final String OPTIMIZATION_TIME
- See Also:
- Constant Field Values
-
EXPECTED_SELECTIVITY
protected static final String EXPECTED_SELECTIVITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLConfigurationReader
public XMLConfigurationReader(String xmlFile)
Constructor- Parameters:
xmlFile- The input XML file
-
-
Method Detail
-
getText
public static String getText(Node node)
Returns the content of a node- Parameters:
node- NODE tag with text- Returns:
- The text within the NODE tag
-
read
public Configuration read()
Returns a filled out configuration object if the input complies to the LIMES DTD and contains everything needed. NB: The path to the DTD must be specified in the input file- Specified by:
readin classAConfigurationReader- Returns:
- filled out configuration if parsing was successful, else false
-
afterPropertiesSet
public void afterPropertiesSet(Configuration configuration)
-
validateAndRead
public Configuration validateAndRead(InputStream input, String filePath)
Returns true if the input complies to the LIMES DTD and contains everything needed. NB: The path to the DTD must be specified in the input file- Parameters:
input- The input XML file as StreamfilePath- path of the XML file- Returns:
- true if parsing was successful, else false
-
modifyMetricExpression
public void modifyMetricExpression(LinkSpecification spec)
-
-