|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hp.hpl.mesa.rdf.jena.common.NTripleReader
N-Triple Reader
Method Summary | |
void |
read(Model model,
java.io.Reader reader,
java.lang.String base)
Read serialized RDF from a Reader and add the statements
to a Model |
void |
read(Model model,
java.lang.String url)
Read serialized RDF from a url and add the statements to a model. |
RDFNode |
readNode()
|
Resource |
readResource()
|
RDFErrorHandler |
setErrorHandler(RDFErrorHandler errHandler)
Set an error handler for the reader |
java.lang.Object |
setProperty(java.lang.String propName,
java.lang.Object propValue)
Set the value of a reader property. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void read(Model model, java.io.Reader reader, java.lang.String base) throws RDFException
RDFReader
Reader
and add the statements
to a Model
read
in interface RDFReader
com.hp.hpl.mesa.rdf.jena.model.RDFReader
model
- The model to which statements are added.r
- the reader from which to readpublic void read(Model model, java.lang.String url) throws RDFException
RDFReader
read
in interface RDFReader
com.hp.hpl.mesa.rdf.jena.model.RDFReader
model
- the model to which statements should be addedurl
- the url, as a string, from which the serialized RDF
should be read.public java.lang.Object setProperty(java.lang.String propName, java.lang.Object propValue) throws RDFException
RDFReader
The behaviour of a reader may be influenced by setting property values. The properties and there effects may depend on the individual reader implementation.
An RDFReader's behaviour can be influenced by defining property values interpreted by that particular reader class. The values for such properties can be changed by calling this method.
No standard properties are defined. For the properties recognised by any particular reader implementation, see the the documentation for that implementation. The properties recognised by readers provided in the standard distribution can be found in the description of their setProperty method. Consult the list of implementors of this interface given above.
setProperty
in interface RDFReader
com.hp.hpl.mesa.rdf.jena.model.RDFReader
propName
- the name of the propertypropValue
- the value of the propertynull
if there wasn't onepublic RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)
RDFReader
setErrorHandler
in interface RDFReader
com.hp.hpl.mesa.rdf.jena.model.RDFReader
errHandler
- the new error handlerpublic Resource readResource() throws RDFException
public RDFNode readNode() throws RDFException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |