| com.hp.hpl.jena.rdf.model.RDFReader
All known Subclasses: com.hp.hpl.jena.rdf.model.impl.NTripleReader, com.hp.hpl.jena.n3.JenaReaderBase, com.hp.hpl.jena.rdf.arp.JenaReader,
RDFReader | public interface RDFReader (Code) | | An RDFReader reads a serialized represenation of RDF,
e.g. RDF/XML, n-triple or n3 and adds the statements to a model.
author: bwm version: $Revision: 1.12 $ |
Method Summary | |
public void | read(Model model, Reader r, String base) It is usually a mistake to use this method.
Read serialized RDF from a Reader and add the statements to a
Model . | public void | read(Model model, InputStream r, String base) Read serialized RDF from an InputStream and add the statements
to a Model . | public void | read(Model model, String url) Read serialized RDF from a url and add the statements to a model. | public RDFErrorHandler | setErrorHandler(RDFErrorHandler errHandler) | public Object | setProperty(String propName, Object propValue) 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. |
read | public void read(Model model, Reader r, String base)(Code) | | It is usually a mistake to use this method.
Read serialized RDF from a Reader and add the statements to a
Model . It is generally better to use an InputStream if
possible.
RDFReader.read(Model,InputStream,String) , otherwise there is a
danger of a mismatch between the character encoding of say the FileReader
and the character encoding of the data in the file.
Parameters: model - The model to which statements are added. Parameters: r - the reader from which to read Parameters: base - The base to use when converting relative to absolute URI's.The base URI may be null if there are no relative URIs to convert.A base URI of "" may permit relative URIs to be used in themodel unconverted. |
read | public void read(Model model, InputStream r, String base)(Code) | | Read serialized RDF from an InputStream and add the statements
to a Model .
Parameters: model - The model to which statements are added. Parameters: r - The InputStream from which to read Parameters: base - The base to use when converting relative to absolute URI's.The base URI may be null if there are no relative URIs to convert.A base URI of "" may permit relative URIs to be used in themodel unconverted. |
read | public void read(Model model, String url)(Code) | | Read serialized RDF from a url and add the statements to a model.
Parameters: model - the model to which statements should be added Parameters: url - the url, as a string, from which the serialized RDFshould be read. |
setErrorHandler | public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)(Code) | | Set an error handler for the reader
Parameters: errHandler - the new error handler the previous error handler |
setProperty | public Object setProperty(String propName, Object propValue)(Code) | | 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 built-in RDFReaders have properties as defined by:
- N3
- N-TRIPLE
- No properties.
- RDF/XML
- RDF/XML-ABBREV
- See
com.hp.hpl.jena.rdf.arp.JenaReader.setProperty(StringObject)
Parameters: propName - the name of the property Parameters: propValue - the value of the property the previous value of the property, or null if there wasn't one |
|
|