Class OAEIMappingParser
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.aksw.limes.core.evaluation.evaluationDataLoader.OAEIMappingParser
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class OAEIMappingParser extends DefaultHandler
This class is responsible for parsing the mappings generated in the OAEI tests- Since:
- 1.0
- Version:
- 1.0
- Author:
- klaus, Mofeed Hassan (mounir@informatik.uni-leipzig.de)
-
-
Constructor Summary
Constructors Constructor Description OAEIMappingParser(String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ac, int i, int j)voidendElement(String s, String s1, String element)AMappingparseDocument()voidstartElement(String s, String s1, String elementName, Attributes attributes)-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
OAEIMappingParser
public OAEIMappingParser(String file)
-
-
Method Detail
-
parseDocument
public AMapping parseDocument()
- Returns:
- AMapping-The mapping of the two datasets
-
startElement
public void startElement(String s, String s1, String elementName, Attributes attributes) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
public void endElement(String s, String s1, String element) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
public void characters(char[] ac, int i, int j) throws SAXException- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
-