public abstract class AbstractNIFDataset extends AbstractDataset implements RdfModelContainingDataset, InitializableDataset
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractNIFDataset.LocalNIFParser |
granter| Constructor and Description |
|---|
AbstractNIFDataset(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeInputStream(InputStream inputStream)
This method is called for closing the input stream that has been returned
by
getDataAsInputStream().If there are other resources related
to this stream that have to be closed, this method can be overwritten to
free these resources, too. |
protected abstract InputStream |
getDataAsInputStream()
This method returns an opened InputStream from which the NIF data will be
read.
|
protected abstract org.apache.jena.riot.Lang |
getDataLanguage()
This method returns the language of the NIF data, e.g.,
Lang.TURTLE. |
List<org.aksw.gerbil.transfer.nif.Document> |
getInstances() |
String |
getName() |
org.apache.jena.rdf.model.Model |
getRdfModel() |
void |
init() |
int |
size() |
close, performClose, setClosePermitionGranter, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetClosePermitionGranter, setNamepublic AbstractNIFDataset(String name)
protected abstract InputStream getDataAsInputStream()
closeInputStream(InputStream) is called. If there are other
resources related to this stream that have to be closed, this method can
be overwritten to free these resources, too.protected abstract org.apache.jena.riot.Lang getDataLanguage()
Lang.TURTLE.protected void closeInputStream(InputStream inputStream)
getDataAsInputStream().If there are other resources related
to this stream that have to be closed, this method can be overwritten to
free these resources, too.inputStream - the input stream which should be closedpublic void init()
throws GerbilException
init in interface InitializableDatasetGerbilExceptionpublic String getName()
getName in interface DatasetgetName in class AbstractDatasetpublic List<org.aksw.gerbil.transfer.nif.Document> getInstances()
getInstances in interface Datasetpublic org.apache.jena.rdf.model.Model getRdfModel()
getRdfModel in interface RdfModelContainingDatasetCopyright © 2014–2017. All rights reserved.