Package org.apache.jena.riot
Class RDFWriterBuilder
java.lang.Object
org.apache.jena.riot.RDFWriterBuilder
-
Method Summary
Modifier and TypeMethodDescriptionasString()Short form forbuild().asString().build()clone()Set the context for the writer when built.static RDFWriterBuildercreate()Set the output format to aRDFFormat.Set the output language to aLang; this will set the format.voidoutput(OutputStream outputStream) Short form forbuild().output(outputStream).voidShort form forbuild().output(filename).Add a setting to the context for the writer when built.Added a setting to the context for the writer when built.Set the source of writing to the graph argument.Set the source of writing to theDatasetGraphargument.Set the source of writing to the graph argument.source(DatasetGraph dataset) Set the source of writing to theDatasetGraphargument.
-
Method Details
-
create
-
source
Set the source of writing to the graph argument.Any previous source setting is cleared.
- Parameters:
graph- AGraph.- Returns:
- this
-
source
Set the source of writing to the graph argument.Any previous source setting is cleared.
Equivalent to
source(model.getGraph()(s)- Parameters:
model- AModel.- Returns:
- this
-
source
Set the source of writing to theDatasetGraphargument.Any previous source setting is cleared.
- Parameters:
dataset- ADatasetGraph.- Returns:
- this
-
source
Set the source of writing to theDatasetGraphargument.Any previous source setting is cleared.
Equivalent to
source(dataset.asDatasetGraph())- Parameters:
dataset- ADatasetGraph.- Returns:
- this
-
context
Set the context for the writer when built.- Parameters:
context-- Returns:
- this
- See Also:
-
set
Add a setting to the context for the writer when built.- Parameters:
symbol-value-- Returns:
- this
- See Also:
-
set
Added a setting to the context for the writer when built. A value of "null" removes a previous setting.- Parameters:
symbol-value-- Returns:
- this
- See Also:
-
lang
Set the output language to aLang; this will set the format.If
LangandRDFFormatare not set, an attempt is made to guess it from file name or URI on output.If output is to an
OutputStream,LangorRDFFormatmust be set.Any previous setting of
LangorRDFFormatis cleared.- Parameters:
lang-- Returns:
- this
-
format
Set the output format to aRDFFormat.If
LangandRDFFormatare not set, an attempt is made to guess it from file name or URI on output.If output is to an
OutputStream,LangorRDFFormatmust be set.Any previous setting of
LangorRDFFormatis cleared.- Parameters:
format-- Returns:
- this
-
base
-
clone
-
build
-
output
Short form forbuild().output(outputStream).- Parameters:
outputStream-
-
output
Short form forbuild().output(filename).- Parameters:
filename-
-
asString
Short form forbuild().asString().
-