public abstract class AbstractNIFDocumentParser extends Object implements NIFDocumentParser
| Modifier and Type | Field and Description |
|---|---|
private String |
httpContentType |
private static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractNIFDocumentParser(String httpContentType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
correctAnnotationPositions(Document resultDocument)
The positions in NIF are measured in codepoints, while Java counts in
terms of characters.
|
protected Document |
createAnnotatedDocument(com.hp.hpl.jena.rdf.model.Model nifModel) |
Document |
getDocumentFromNIFReader(Reader reader) |
Document |
getDocumentFromNIFString(String nifString) |
String |
getHttpContentType() |
protected abstract com.hp.hpl.jena.rdf.model.Model |
parseNIFModelFromReader(Reader reader) |
private static final org.slf4j.Logger LOGGER
private String httpContentType
public AbstractNIFDocumentParser(String httpContentType)
public Document getDocumentFromNIFString(String nifString) throws Exception
getDocumentFromNIFString in interface NIFDocumentParserExceptionpublic Document getDocumentFromNIFReader(Reader reader) throws Exception
getDocumentFromNIFReader in interface NIFDocumentParserExceptionprotected abstract com.hp.hpl.jena.rdf.model.Model parseNIFModelFromReader(Reader reader) throws Exception
Exceptionprotected Document createAnnotatedDocument(com.hp.hpl.jena.rdf.model.Model nifModel) throws Exception
Exceptionprotected void correctAnnotationPositions(Document resultDocument)
resultDocument - public String getHttpContentType()
getHttpContentType in interface NIFDocumentParserCopyright © 2014. All rights reserved.