Package org.apache.any23.writer
Class JSONWriter
- java.lang.Object
-
- org.apache.any23.writer.TripleWriterHandler
-
- org.apache.any23.writer.JSONWriter
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.any23.writer.FormatWriter
,org.apache.any23.writer.TripleHandler
,org.apache.any23.writer.TripleWriter
@Deprecated public class JSONWriter extends TripleWriterHandler implements org.apache.any23.writer.FormatWriter
Deprecated.since 2.3. UseJSONLDWriter
instead.Implementation of JSONTripleWriter
.- Author:
- Michele Mostarda (mostarda@fbk.eu)
-
-
Constructor Summary
Constructors Constructor Description JSONWriter(OutputStream os)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.void
endDocument(org.eclipse.rdf4j.model.IRI documentIRI)
Deprecated.Writers may override this method to handle an "endDocument" extraction event.boolean
isAnnotated()
Deprecated.void
setAnnotated(boolean f)
Deprecated.void
startDocument(org.eclipse.rdf4j.model.IRI documentIRI)
Deprecated.Writers may override this method to handle a "startDocument" extraction event.void
writeNamespace(String prefix, String uri)
Deprecated.void
writeTriple(org.eclipse.rdf4j.model.Resource s, org.eclipse.rdf4j.model.IRI p, org.eclipse.rdf4j.model.Value o, org.eclipse.rdf4j.model.Resource g)
Deprecated.-
Methods inherited from class org.apache.any23.writer.TripleWriterHandler
closeContext, openContext, receiveNamespace, receiveTriple, setContentLength
-
-
-
-
Constructor Detail
-
JSONWriter
public JSONWriter(OutputStream os)
Deprecated.
-
-
Method Detail
-
startDocument
public void startDocument(org.eclipse.rdf4j.model.IRI documentIRI) throws org.apache.any23.writer.TripleHandlerException
Deprecated.Description copied from class:TripleWriterHandler
Writers may override this method to handle a "startDocument" extraction event. The default implementation does nothing.- Specified by:
startDocument
in interfaceorg.apache.any23.writer.TripleHandler
- Overrides:
startDocument
in classTripleWriterHandler
- Parameters:
documentIRI
- the name of the document that was started- Throws:
org.apache.any23.writer.TripleHandlerException
- if an error occurred while responding to a "startDocument" extraction event.
-
writeTriple
public void writeTriple(org.eclipse.rdf4j.model.Resource s, org.eclipse.rdf4j.model.IRI p, org.eclipse.rdf4j.model.Value o, org.eclipse.rdf4j.model.Resource g) throws org.apache.any23.writer.TripleHandlerException
Deprecated.- Specified by:
writeTriple
in interfaceorg.apache.any23.writer.TripleWriter
- Throws:
org.apache.any23.writer.TripleHandlerException
-
writeNamespace
public void writeNamespace(String prefix, String uri) throws org.apache.any23.writer.TripleHandlerException
Deprecated.- Specified by:
writeNamespace
in interfaceorg.apache.any23.writer.TripleWriter
- Throws:
org.apache.any23.writer.TripleHandlerException
-
endDocument
public void endDocument(org.eclipse.rdf4j.model.IRI documentIRI) throws org.apache.any23.writer.TripleHandlerException
Deprecated.Description copied from class:TripleWriterHandler
Writers may override this method to handle an "endDocument" extraction event. The default implementation does nothing.- Specified by:
endDocument
in interfaceorg.apache.any23.writer.TripleHandler
- Overrides:
endDocument
in classTripleWriterHandler
- Parameters:
documentIRI
- the document IRI.- Throws:
org.apache.any23.writer.TripleHandlerException
- if an error occurred while responding to a "endDocument" extraction event.
-
close
public void close() throws org.apache.any23.writer.TripleHandlerException
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceorg.apache.any23.writer.TripleHandler
- Specified by:
close
in interfaceorg.apache.any23.writer.TripleWriter
- Throws:
org.apache.any23.writer.TripleHandlerException
-
isAnnotated
public boolean isAnnotated()
Deprecated.- Specified by:
isAnnotated
in interfaceorg.apache.any23.writer.FormatWriter
-
setAnnotated
public void setAnnotated(boolean f)
Deprecated.- Specified by:
setAnnotated
in interfaceorg.apache.any23.writer.FormatWriter
-
-