de.fuberlin.wiwiss.ng4j
Interface NamedGraphSetWriter

All Known Implementing Classes:
TriGWriter, TriXWriter

public interface NamedGraphSetWriter

Serializes a NamedGraphSet into a Writer or OutputStream. An Implementation will provide support for a single serialization syntax, such as TriX or TriG.

A NamedGraphSetWriter instance can only be used to write one file. To write another file, a new instance must be created.

NamedGraphSetWriters are used through NamedGraphSet's write methods.

Author:
Richard Cyganiak (richard@cyganiak.de)

Method Summary
 void write(NamedGraphSet set, OutputStream out, String baseURI)
          Serializes a NamedGraphSet into an OutputStream.
 void write(NamedGraphSet set, Writer out, String baseURI)
          Serializes a NamedGraphSet into a Writer.
 

Method Detail

write

void write(NamedGraphSet set,
           Writer out,
           String baseURI)
Serializes a NamedGraphSet into a Writer.

Parameters:
set - The NamedGraphSet to be serialized
out - The destination
baseURI - A base URI, or null if none is known or needed

write

void write(NamedGraphSet set,
           OutputStream out,
           String baseURI)
Serializes a NamedGraphSet into an OutputStream.

Parameters:
set - The NamedGraphSet to be serialized
out - The destination
baseURI - A base URI, or null if none is known or needed