public interface NIFParser
Document instances from this
data.| Modifier and Type | Method and Description |
|---|---|
DocumentListParser |
getDocumentListParser()
Returns the
DocumentListParser used by this parser. |
String |
getHttpContentType()
This method should return the HTTP content type string for the data that
can be handled by this reader.
|
List<Document> |
parseNIF(InputStream is)
Parses the NIF data read from the given InputStream and returns the list
of documents that could be found.
|
List<Document> |
parseNIF(InputStream is,
org.apache.jena.rdf.model.Model model)
Like
parseNIF(InputStream), this method parses the NIF data
inside the given String and returns the list of documents that could be
found. |
List<Document> |
parseNIF(Reader reader)
Parses the NIF data read from the given Reader and returns the list of
documents that could be found.
|
List<Document> |
parseNIF(Reader reader,
org.apache.jena.rdf.model.Model model)
Like
parseNIF(Reader), this method parses the NIF data inside
the given String and returns the list of documents that could be found. |
List<Document> |
parseNIF(String nifString)
Parses the NIF data inside the given String and returns the list of
documents that could be found.
|
List<Document> |
parseNIF(String nifString,
org.apache.jena.rdf.model.Model model)
Like
parseNIF(String), this method parses the NIF data inside
the given String and returns the list of documents that could be found. |
void |
setDocumentListParser(DocumentListParser listParser)
Sets the
DocumentListParser used by this parser. |
List<Document> parseNIF(String nifString)
nifString - a String containing the NIF dataDocument instances found in the given NIFList<Document> parseNIF(Reader reader)
Note that following the recommendations of the Jena framework we
highly recommend to use parseNIF(InputStream) instead of using a
Reader since the InputStream is not relying on a specific
encoding.
List<Document> parseNIF(InputStream is)
is - an InputStream from which the NIF data is readDocument instances found in the given NIFList<Document> parseNIF(String nifString, org.apache.jena.rdf.model.Model model)
parseNIF(String), this method parses the NIF data inside
the given String and returns the list of documents that could be found.
But it uses the given model to store this information.
Note that the parser will use and change the data that is already inside the given model.
The aim of this method is to take a reference to a model (that might be
empty) and store all additional information that has been read but could
not be added to the created Document instances.
nifString - a String containing the NIF datamodel - a model which is used to store the NIF dataDocument instances found in the given NIFList<Document> parseNIF(Reader reader, org.apache.jena.rdf.model.Model model)
parseNIF(Reader), this method parses the NIF data inside
the given String and returns the list of documents that could be found.
But it uses the given model to store this information.
Note that following the recommendations of the Jena framework we
highly recommend to use parseNIF(InputStream, Model) instead of
using a Reader since the InputStream is not relying on a
specific encoding.
Note that the parser will use and change the data that is already inside the given model.
The aim of this method is to take a reference to a model (that might be
empty) and store all additional information that has been read but could
not be added to the created Document instances.
List<Document> parseNIF(InputStream is, org.apache.jena.rdf.model.Model model)
parseNIF(InputStream), this method parses the NIF data
inside the given String and returns the list of documents that could be
found. But it uses the given model to store this information.
Note that the parser will use and change the data that is already inside the given model.
The aim of this method is to take a reference to a model (that might be
empty) and store all additional information that has been read but could
not be added to the created Document instances.
is - an InputStream from which the NIF data is readmodel - a model which is used to store the NIF dataDocument instances found in the given NIFString getHttpContentType()
DocumentListParser getDocumentListParser()
DocumentListParser used by this parser.DocumentListParser used by this parservoid setDocumentListParser(DocumentListParser listParser)
DocumentListParser used by this parser.listParser - the DocumentListParser used by this parserCopyright © 2018. All rights reserved.