StreamingJSONLDWriter
instead@Deprecated public final class JSONLDWriter extends Object implements RDFWriter
Modifier and Type | Class and Description |
---|---|
static class |
JSONLDWriter.JSONLDWriterFactory
Deprecated.
|
Constructor and Description |
---|
JSONLDWriter(OutputStream theStream,
Options theOptions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
comment(String theComment)
Deprecated.
Write a comment to the output.
|
void |
end()
Deprecated.
Signals the writing process is completed.
|
RDFFormat |
format()
Deprecated.
The
format this writer will serialize output in. |
void |
handle(Statement theStmt)
Deprecated.
Write the given
Statement |
void |
namespace(String thePrefix,
String theIRI)
Deprecated.
Provide a namespace to the writer.
|
void |
start()
Deprecated.
Signals that the RDF writing process is starting.
|
Map<String,Object> |
toObject(com.github.jsonldjava.core.RDFDataset.Node node)
Deprecated.
Duplicated from RDFDataset.Node.toObject which has private access
|
public JSONLDWriter(@Nonnull OutputStream theStream, @Nonnull Options theOptions)
public void comment(@Nonnull String theComment)
started
at this point; comments can be written prior to any actual
serialized RDFpublic void start()
start
in interface RDFHandler
start
in interface RDFWriter
public void handle(@Nonnull Statement theStmt)
Statement
handle
in interface RDFHandler
handle
in interface RDFWriter
theStmt
- the statement to writepublic void namespace(@Nonnull String thePrefix, @Nonnull String theIRI)
started
, in which case, the namespace bindings
are buffered and written when appropriate after writing has begun.namespace
in interface RDFHandler
namespace
in interface RDFWriter
thePrefix
- the namespace prefixtheIRI
- the associated IRIpublic void end()
InputStream
is *not* closed, but the caller
should not call additional methods on this writer as that will normally yield syntax errors in the output.end
in interface RDFHandler
end
in interface RDFWriter
public Map<String,Object> toObject(com.github.jsonldjava.core.RDFDataset.Node node) throws com.github.jsonldjava.core.JsonLdError
com.github.jsonldjava.core.JsonLdError
Copyright © 2010-2016 Stardog Union. All Rights Reserved.