net.fortytwo.sesametools.rdfjson
Class RDFJSONParser

java.lang.Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.openrdf.rio.RDFParser
org.openrdf.rio.RDFParser.DatatypeHandling
 
Constructor Summary
RDFJSONParser()
           
 
Method Summary
 org.openrdf.rio.ParserConfig getParserConfig()
           
 org.openrdf.rio.RDFFormat getRDFFormat()
           
 void parse(InputStream in, String baseURI)
           
 void parse(Reader reader, String baseURI)
           
 void setDatatypeHandling(org.openrdf.rio.RDFParser.DatatypeHandling datatypeHandling)
           
 void setParseErrorListener(org.openrdf.rio.ParseErrorListener listener)
           
 void setParseLocationListener(org.openrdf.rio.ParseLocationListener listener)
           
 void setParserConfig(org.openrdf.rio.ParserConfig config)
           
 void setPreserveBNodeIDs(boolean preserveBNodeIDs)
           
 void setRDFHandler(org.openrdf.rio.RDFHandler handler)
           
 void setStopAtFirstError(boolean stopAtFirstError)
           
 void setValueFactory(org.openrdf.model.ValueFactory valueFactory)
           
 void setVerifyData(boolean verifyData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFJSONParser

public RDFJSONParser()
Method Detail

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.