| com.hp.hpl.jena.rdf.model.RDFWriter
All known Subclasses: com.hp.hpl.jena.n3.N3JenaWriterCommon, com.hp.hpl.jena.n3.N3JenaWriter, com.hp.hpl.jena.rdf.model.impl.NTripleWriter,
RDFWriter | public interface RDFWriter (Code) | | RDFWriter is an interface to RDF serializers.
An RDFWriter is a class which serializes an RDF model
to some RDF serializaion language. RDF/XML, n-triple and n3 are
examples of serialization languages.
author: bwm version: $Revision: 1.13 $ |
Method Summary | |
public RDFErrorHandler | setErrorHandler(RDFErrorHandler errHandler) Set an error handler.
Parameters: errHandler - The new error handler to be used. | public Object | setProperty(String propName, Object propValue) Set a property to control the behaviour of this writer.
An RDFWriter's behaviour can be influenced by defining property values
interpreted by that particular writer class. | public void | write(Model model, Writer out, String base) Caution: Serialize Model model to Writer out .
It is often better to use an OutputStream and permit Jena
to choose the character encoding. | public void | write(Model model, OutputStream out, String base) Serialize Model model to OutputStream out.
The implementation chooses the character encoding, utf-8 is preferred.
Parameters: out - The OutputStream to which the serialization should be sent. Parameters: model - The model to be written. Parameters: base - the base URI for relative URI calculations. |
NSPREFIXPROPBASE | final public static String NSPREFIXPROPBASE(Code) | | |
setErrorHandler | public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)(Code) | | Set an error handler.
Parameters: errHandler - The new error handler to be used. the old error handler |
setProperty | public Object setProperty(String propName, Object propValue)(Code) | | Set a property to control the behaviour of this writer.
An RDFWriter's behaviour can be influenced by defining property values
interpreted by that particular writer 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 writer implementation, see the the documentation for
that implementation.
The built-in RDFWriters have properties as defined by:
- N3
- N-TRIPLE
- No properties.
- RDF/XML
- RDF/XML-ABBREV
the old value for this property, or null if no value was set. Parameters: propName - The name of the property. Parameters: propValue - The new value of the property |
write | public void write(Model model, Writer out, String base)(Code) | | Caution: Serialize Model model to Writer out .
It is often better to use an OutputStream and permit Jena
to choose the character encoding. The charset restrictions
on the Writer are defined by the different implementations
of this interface. Typically using an OutputStreamWriter (e.g.
a FileWriter) at least permits the implementation to
examine the encoding. With an arbitrary Writer implementations
assume a utf-8 encoding.
Parameters: out - The Writer to which the serialization shouldbe sent. Parameters: model - The model to be written. Parameters: base - the base URI for relative URI calculations. null means use only absolute URI's. |
write | public void write(Model model, OutputStream out, String base)(Code) | | Serialize Model model to OutputStream out.
The implementation chooses the character encoding, utf-8 is preferred.
Parameters: out - The OutputStream to which the serialization should be sent. Parameters: model - The model to be written. Parameters: base - the base URI for relative URI calculations. null means use only absolute URI's. This is used for relativeURIs that would be resolved against the document retrieval URL.Particular writers may include this value in the output. |
|
|