Modifier and Type | Class and Description |
---|---|
static class |
RDFWriters.RDFWriterConfig
Write builder for
RDFWriter |
Modifier and Type | Method and Description |
---|---|
static RDFWriters.RDFWriterConfig |
to(OutputStream theStream) |
static Optional<RDFWriter> |
to(OutputStream theOutput,
RDFFormat theFormat)
|
static Optional<RDFWriter> |
to(OutputStream theOutput,
RDFFormat theFormat,
Iterable<Namespace> theNamespaces)
|
static Optional<RDFWriter> |
to(OutputStream theOutput,
RDFFormat theFormat,
Options theWriterOptions)
|
static String |
toString(Iterable<Statement> theStatements,
RDFFormat theFormat)
|
static String |
toString(Iterable<Statement> theStatements,
RDFFormat theFormat,
Iterable<Namespace> theNamespaces)
|
static long |
write(OutputStream theStream,
RDFFormat theFormat,
Iterable<Statement> theStmts)
Writes the statements similar to
write(RDFWriter, Iterable, Iterable) . |
static long |
write(OutputStream theStream,
RDFFormat theFormat,
Iterable<Statement> theStmts,
Iterable<Namespace> theNamespaces)
Writes the statements similar to
write(RDFWriter, Iterable, Iterable) . |
static long |
write(RDFWriter theWriter,
Iterable<Statement> theStmts)
Write the given statements to the
writer |
static long |
write(RDFWriter theWriter,
Iterable<Statement> theStmts,
Iterable<Namespace> theNamespaces)
Write the given statements and namespaces to the
writer |
static long |
writeGrouped(OutputStream theStream,
RDFFormat theFormat,
Iterable<Statement> theStmts,
Iterable<Namespace> theNamespaces)
Writes the statements similar to
write(RDFWriter, Iterable, Iterable) but first groups the statements
by their subjects and predicates so the output will look better (if the writer supports this kind of optimization). |
static long |
writeGrouped(RDFWriter theWriter,
Iterable<Statement> theStmts,
Iterable<Namespace> theNamespaces)
Writes the statements similar to
write(RDFWriter, Iterable, Iterable) but first groups the statements
by their subjects and predicates so the output will look better (if the writer supports this kind of optimization). |
public static Optional<RDFWriter> to(@Nonnull OutputStream theOutput, @Nonnull RDFFormat theFormat)
theOutput
- the output to write totheFormat
- the format to write inWriterOptions
public static Optional<RDFWriter> to(@Nonnull OutputStream theOutput, @Nonnull RDFFormat theFormat, @Nonnull Iterable<Namespace> theNamespaces)
theOutput
- the output to write totheFormat
- the format to write intheNamespaces
- the namespaces for writingWriterOptions
public static Optional<RDFWriter> to(@Nonnull OutputStream theOutput, @Nonnull RDFFormat theFormat, @Nonnull Options theWriterOptions)
theOutput
- the output to write totheFormat
- the format to write intheWriterOptions
- the options for writingWriterOptions
public static long write(@Nonnull RDFWriter theWriter, @Nonnull Iterable<Statement> theStmts)
writer
public static long write(@Nonnull RDFWriter theWriter, @Nonnull Iterable<Statement> theStmts, @Nonnull Iterable<Namespace> theNamespaces)
writer
public static long write(@Nonnull OutputStream theStream, @Nonnull RDFFormat theFormat, @Nonnull Iterable<Statement> theStmts)
write(RDFWriter, Iterable, Iterable)
.IllegalArgumentException
- if a writer supporting the given format is not foundpublic static long write(@Nonnull OutputStream theStream, @Nonnull RDFFormat theFormat, @Nonnull Iterable<Statement> theStmts, @Nonnull Iterable<Namespace> theNamespaces)
write(RDFWriter, Iterable, Iterable)
.IllegalArgumentException
- if a writer supporting the given format is not foundpublic static long writeGrouped(@Nonnull OutputStream theStream, @Nonnull RDFFormat theFormat, @Nonnull Iterable<Statement> theStmts, @Nonnull Iterable<Namespace> theNamespaces)
write(RDFWriter, Iterable, Iterable)
but first groups the statements
by their subjects and predicates so the output will look better (if the writer supports this kind of optimization).public static long writeGrouped(@Nonnull RDFWriter theWriter, @Nonnull Iterable<Statement> theStmts, @Nonnull Iterable<Namespace> theNamespaces)
write(RDFWriter, Iterable, Iterable)
but first groups the statements
by their subjects and predicates so the output will look better (if the writer supports this kind of optimization).@Nonnull public static String toString(@Nonnull Iterable<Statement> theStatements, @Nonnull RDFFormat theFormat)
theStatements
- the statements to serializetheFormat
- the RDF format to serialize intoRDFFormats
@Nonnull public static String toString(@Nonnull Iterable<Statement> theStatements, @Nonnull RDFFormat theFormat, @Nonnull Iterable<Namespace> theNamespaces)
theStatements
- the statements to serializetheFormat
- the RDF format to serialize intotheNamespaces
- the namespaces to use for converting IRIs to QNamesRDFFormats
public static RDFWriters.RDFWriterConfig to(OutputStream theStream)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.