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 RDFWriterBuilder
create()
Set the output format to aRDFFormat
.Set the output language to aLang
; this will set the format.void
output
(OutputStream outputStream) Short form forbuild().output(outputStream)
.void
Short 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 theDatasetGraph
argument.Set the source of writing to the graph argument.source
(DatasetGraph dataset) Set the source of writing to theDatasetGraph
argument.
-
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 theDatasetGraph
argument.Any previous source setting is cleared.
- Parameters:
dataset
- ADatasetGraph
.- Returns:
- this
-
source
Set the source of writing to theDatasetGraph
argument.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
Lang
andRDFFormat
are not set, an attempt is made to guess it from file name or URI on output.If output is to an
OutputStream
,Lang
orRDFFormat
must be set.Any previous setting of
Lang
orRDFFormat
is cleared.- Parameters:
lang
-- Returns:
- this
-
format
Set the output format to aRDFFormat
.If
Lang
andRDFFormat
are not set, an attempt is made to guess it from file name or URI on output.If output is to an
OutputStream
,Lang
orRDFFormat
must be set.Any previous setting of
Lang
orRDFFormat
is 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()
.
-