com.hp.hpl.mesa.rdf.jena.common
Class NTripleReader

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.NTripleReader
All Implemented Interfaces:
RDFReader

public class NTripleReader
extends java.lang.Object
implements RDFReader

N-Triple Reader

Version:
Release=$Name: $ Date=$Date: 2001/09/10 16:17:38 $
Author:
bwm

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

read

public void read(Model model,
                 java.io.Reader reader,
                 java.lang.String base)
          throws RDFException
Description copied from interface: RDFReader
Read serialized RDF from a Reader and add the statements to a Model
Specified by:
read in interface RDFReader
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.RDFReader
Parameters:
model - The model to which statements are added.
r - the reader from which to read

read

public void read(Model model,
                 java.lang.String url)
          throws RDFException
Description copied from interface: RDFReader
Read serialized RDF from a url and add the statements to a model.
Specified by:
read in interface RDFReader
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.RDFReader
Parameters:
model - the model to which statements should be added
url - the url, as a string, from which the serialized RDF should be read.

setProperty

public java.lang.Object setProperty(java.lang.String propName,
                                    java.lang.Object propValue)
                             throws RDFException
Description copied from interface: RDFReader
Set the value of a reader property.

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.

Specified by:
setProperty in interface RDFReader
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.RDFReader
Parameters:
propName - the name of the property
propValue - the value of the property
Returns:
the previous value of the property, or null if there wasn't one

setErrorHandler

public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)
Description copied from interface: RDFReader
Set an error handler for the reader
Specified by:
setErrorHandler in interface RDFReader
Following copied from interface: com.hp.hpl.mesa.rdf.jena.model.RDFReader
Parameters:
errHandler - the new error handler
Returns:
the previous error handler

readResource

public Resource readResource()
                      throws RDFException

readNode

public RDFNode readNode()
                 throws RDFException


Copyright © 2001 Hewlett-Packard. All Rights Reserved.