Package com.stardog.stark.io.jsonld
Class JSONLDWriter
- java.lang.Object
-
- com.stardog.stark.io.jsonld.JSONLDWriter
-
- All Implemented Interfaces:
RDFHandler
,RDFWriter
@Deprecated public final class JSONLDWriter extends java.lang.Object implements RDFWriter
Deprecated.UseStreamingJSONLDWriter
instead- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JSONLDWriter.JSONLDWriterFactory
Deprecated.
-
Constructor Summary
Constructors Constructor Description JSONLDWriter(java.io.OutputStream theStream, Options theOptions)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
comment(java.lang.String theComment)
Deprecated.Write a comment to the output.void
end()
Deprecated.Signals the writing process is completed.RDFFormat
format()
Deprecated.Theformat
this writer will serialize output in.void
handle(Statement theStmt)
Deprecated.Write the givenStatement
void
namespace(java.lang.String thePrefix, java.lang.String theIRI)
Deprecated.Provide a namespace to the writer.void
start()
Deprecated.Signals that the RDF writing process is starting.java.util.Map<java.lang.String,java.lang.Object>
toObject(com.github.jsonldjava.core.RDFDataset.Node node)
Deprecated.Duplicated from RDFDataset.Node.toObject which has private access
-
-
-
Constructor Detail
-
JSONLDWriter
public JSONLDWriter(@Nonnull java.io.OutputStream theStream, @Nonnull Options theOptions)
Deprecated.
-
-
Method Detail
-
comment
public void comment(@Nonnull java.lang.String theComment)
Deprecated.Write a comment to the output. Writing need not bestarted
at this point; comments can be written prior to any actual serialized RDF
-
start
public void start()
Deprecated.Signals that the RDF writing process is starting.- Specified by:
start
in interfaceRDFHandler
- Specified by:
start
in interfaceRDFWriter
-
handle
public void handle(@Nonnull Statement theStmt)
Deprecated.Write the givenStatement
- Specified by:
handle
in interfaceRDFHandler
- Specified by:
handle
in interfaceRDFWriter
- Parameters:
theStmt
- the statement to write
-
namespace
public void namespace(@Nonnull java.lang.String thePrefix, @Nonnull java.lang.String theIRI)
Deprecated.Provide a namespace to the writer. This method can be called before writing hasstarted
, in which case, the namespace bindings are buffered and written when appropriate after writing has begun.- Specified by:
namespace
in interfaceRDFHandler
- Specified by:
namespace
in interfaceRDFWriter
- Parameters:
thePrefix
- the namespace prefixtheIRI
- the associated IRI
-
end
public void end()
Deprecated.Signals the writing process is completed. The underlyingInputStream
is *not* closed, but the caller should not call additional methods on this writer as that will normally yield syntax errors in the output.- Specified by:
end
in interfaceRDFHandler
- Specified by:
end
in interfaceRDFWriter
-
toObject
public java.util.Map<java.lang.String,java.lang.Object> toObject(com.github.jsonldjava.core.RDFDataset.Node node) throws com.github.jsonldjava.core.JsonLdError
Deprecated.Duplicated from RDFDataset.Node.toObject which has private access- Throws:
com.github.jsonldjava.core.JsonLdError
-
-