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.UseStreamingJSONLDWriterinstead- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJSONLDWriter.JSONLDWriterFactoryDeprecated.
-
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 voidcomment(java.lang.String theComment)Deprecated.Write a comment to the output.voidend()Deprecated.Signals the writing process is completed.RDFFormatformat()Deprecated.Theformatthis writer will serialize output in.voidhandle(Statement theStmt)Deprecated.Write the givenStatementvoidnamespace(java.lang.String thePrefix, java.lang.String theIRI)Deprecated.Provide a namespace to the writer.voidstart()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 bestartedat 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:
startin interfaceRDFHandler- Specified by:
startin interfaceRDFWriter
-
handle
public void handle(@Nonnull Statement theStmt)Deprecated.Write the givenStatement- Specified by:
handlein interfaceRDFHandler- Specified by:
handlein 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:
namespacein interfaceRDFHandler- Specified by:
namespacein interfaceRDFWriter- Parameters:
thePrefix- the namespace prefixtheIRI- the associated IRI
-
end
public void end()
Deprecated.Signals the writing process is completed. The underlyingInputStreamis *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:
endin interfaceRDFHandler- Specified by:
endin 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.JsonLdErrorDeprecated.Duplicated from RDFDataset.Node.toObject which has private access- Throws:
com.github.jsonldjava.core.JsonLdError
-
-