public abstract class AbstractNIFDocumentCreator extends Object implements NIFDocumentCreator
| Modifier and Type | Field and Description |
|---|---|
private String |
httpContentType |
| Constructor and Description |
|---|
AbstractNIFDocumentCreator(String httpContentType) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addAnnotation(com.hp.hpl.jena.rdf.model.Model nifModel,
com.hp.hpl.jena.rdf.model.Resource documentAsResource,
String documentURI,
Annotation annotation,
int annotationId) |
private void |
addMarking(com.hp.hpl.jena.rdf.model.Model nifModel,
com.hp.hpl.jena.rdf.model.Resource documentAsResource,
String text,
String documentURI,
Marking marking,
int markingId) |
protected void |
addSpan(com.hp.hpl.jena.rdf.model.Model nifModel,
com.hp.hpl.jena.rdf.model.Resource documentAsResource,
String text,
String documentURI,
Span span) |
protected com.hp.hpl.jena.rdf.model.Model |
createNIFModel(Document document) |
protected abstract String |
generateNIFStringFromModel(com.hp.hpl.jena.rdf.model.Model nifModel) |
String |
getDocumentAsNIFString(Document document) |
String |
getHttpContentType() |
private String httpContentType
public AbstractNIFDocumentCreator(String httpContentType)
public String getDocumentAsNIFString(Document document)
getDocumentAsNIFString in interface NIFDocumentCreatorprotected abstract String generateNIFStringFromModel(com.hp.hpl.jena.rdf.model.Model nifModel)
protected com.hp.hpl.jena.rdf.model.Model createNIFModel(Document document)
private void addMarking(com.hp.hpl.jena.rdf.model.Model nifModel,
com.hp.hpl.jena.rdf.model.Resource documentAsResource,
String text,
String documentURI,
Marking marking,
int markingId)
private void addAnnotation(com.hp.hpl.jena.rdf.model.Model nifModel,
com.hp.hpl.jena.rdf.model.Resource documentAsResource,
String documentURI,
Annotation annotation,
int annotationId)
protected void addSpan(com.hp.hpl.jena.rdf.model.Model nifModel,
com.hp.hpl.jena.rdf.model.Resource documentAsResource,
String text,
String documentURI,
Span span)
public String getHttpContentType()
getHttpContentType in interface NIFDocumentCreatorCopyright © 2014. All rights reserved.