Package com.stardog.stark.io.jsonld
Class JSONLDWriter
java.lang.Object
com.stardog.stark.io.jsonld.JSONLDWriter
- All Implemented Interfaces:
RDFHandler,RDFWriter
Deprecated.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Write a comment to the output.voidend()Deprecated.Signals the writing process is completed.format()Deprecated.Theformatthis writer will serialize output in.voidDeprecated.Write the givenStatementvoidDeprecated.Provide a namespace to the writer.voidstart()Deprecated.Signals that the RDF writing process is starting.toObject(com.github.jsonldjava.core.RDFDataset.Node node) Deprecated.Duplicated from RDFDataset.Node.toObject which has private access
-
Constructor Details
-
JSONLDWriter
Deprecated.
-
-
Method Details
-
comment
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
Deprecated.Write the givenStatement- Specified by:
handlein interfaceRDFHandler- Specified by:
handlein interfaceRDFWriter- Parameters:
theStmt- the statement to write
-
namespace
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 Map<String,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
-
format
Deprecated.Theformatthis writer will serialize output in.
-
StreamingJSONLDWriterinstead