net.fortytwo.sesametools.rdfjson
Class RDFJSONParser
java.lang.Object
net.fortytwo.sesametools.rdfjson.RDFJSONParser
- All Implemented Interfaces:
- org.openrdf.rio.RDFParser
public class RDFJSONParser
- extends Object
- implements org.openrdf.rio.RDFParser
RDFParser 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
| Nested classes/interfaces inherited from interface org.openrdf.rio.RDFParser |
org.openrdf.rio.RDFParser.DatatypeHandling |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RDFJSONParser
public RDFJSONParser()
getRDFFormat
public org.openrdf.rio.RDFFormat getRDFFormat()
- Specified by:
getRDFFormat in interface org.openrdf.rio.RDFParser
setValueFactory
public void setValueFactory(org.openrdf.model.ValueFactory valueFactory)
- Specified by:
setValueFactory in interface org.openrdf.rio.RDFParser
setRDFHandler
public void setRDFHandler(org.openrdf.rio.RDFHandler handler)
- Specified by:
setRDFHandler in interface org.openrdf.rio.RDFParser
setParseErrorListener
public void setParseErrorListener(org.openrdf.rio.ParseErrorListener listener)
- Specified by:
setParseErrorListener in interface org.openrdf.rio.RDFParser
setParseLocationListener
public void setParseLocationListener(org.openrdf.rio.ParseLocationListener listener)
- Specified by:
setParseLocationListener in interface org.openrdf.rio.RDFParser
setParserConfig
public void setParserConfig(org.openrdf.rio.ParserConfig config)
- Specified by:
setParserConfig in interface org.openrdf.rio.RDFParser
getParserConfig
public org.openrdf.rio.ParserConfig getParserConfig()
- Specified by:
getParserConfig in interface org.openrdf.rio.RDFParser
setVerifyData
public void setVerifyData(boolean verifyData)
- Specified by:
setVerifyData in interface org.openrdf.rio.RDFParser
setPreserveBNodeIDs
public void setPreserveBNodeIDs(boolean preserveBNodeIDs)
- Specified by:
setPreserveBNodeIDs in interface org.openrdf.rio.RDFParser
setStopAtFirstError
public void setStopAtFirstError(boolean stopAtFirstError)
- Specified by:
setStopAtFirstError in interface org.openrdf.rio.RDFParser
setDatatypeHandling
public void setDatatypeHandling(org.openrdf.rio.RDFParser.DatatypeHandling datatypeHandling)
- Specified by:
setDatatypeHandling in interface org.openrdf.rio.RDFParser
parse
public void parse(InputStream in,
String baseURI)
throws IOException,
org.openrdf.rio.RDFParseException,
org.openrdf.rio.RDFHandlerException
- Specified by:
parse in interface org.openrdf.rio.RDFParser
- Throws:
IOException
org.openrdf.rio.RDFParseException
org.openrdf.rio.RDFHandlerException
parse
public void parse(Reader reader,
String baseURI)
throws IOException,
org.openrdf.rio.RDFParseException,
org.openrdf.rio.RDFHandlerException
- Specified by:
parse in interface org.openrdf.rio.RDFParser
- Throws:
IOException
org.openrdf.rio.RDFParseException
org.openrdf.rio.RDFHandlerException
Copyright © 2013. All Rights Reserved.