net.fortytwo.sesametools.rdfjson
Class RDFJSONWriter
java.lang.Object
net.fortytwo.sesametools.rdfjson.RDFJSONWriter
- All Implemented Interfaces:
- org.openrdf.rio.RDFHandler, org.openrdf.rio.RDFWriter
public class RDFJSONWriter
- extends Object
- implements org.openrdf.rio.RDFWriter
RDFWriter implementation for the proposed RDF/JSON format (see http://n2.talis.com/wiki/RDF_JSON_Specification)
- Author:
- Joshua Shinavier (http://fortytwo.net). Builds on code by Hannes Ebner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDFJSONWriter
public RDFJSONWriter(OutputStream out)
RDFJSONWriter
public RDFJSONWriter(Writer writer)
getRDFFormat
public org.openrdf.rio.RDFFormat getRDFFormat()
- Specified by:
getRDFFormat in interface org.openrdf.rio.RDFWriter
startRDF
public void startRDF()
throws org.openrdf.rio.RDFHandlerException
- Specified by:
startRDF in interface org.openrdf.rio.RDFHandler
- Throws:
org.openrdf.rio.RDFHandlerException
endRDF
public void endRDF()
throws org.openrdf.rio.RDFHandlerException
- Specified by:
endRDF in interface org.openrdf.rio.RDFHandler
- Throws:
org.openrdf.rio.RDFHandlerException
handleNamespace
public void handleNamespace(String prefix,
String uri)
throws org.openrdf.rio.RDFHandlerException
- Specified by:
handleNamespace in interface org.openrdf.rio.RDFHandler
- Throws:
org.openrdf.rio.RDFHandlerException
handleStatement
public void handleStatement(org.openrdf.model.Statement statement)
throws org.openrdf.rio.RDFHandlerException
- Specified by:
handleStatement in interface org.openrdf.rio.RDFHandler
- Throws:
org.openrdf.rio.RDFHandlerException
handleComment
public void handleComment(String comment)
throws org.openrdf.rio.RDFHandlerException
- Specified by:
handleComment in interface org.openrdf.rio.RDFHandler
- Throws:
org.openrdf.rio.RDFHandlerException
Copyright © 2013. All Rights Reserved.