com.hp.hpl.jena.sparql.resultset
Class JSONInput

java.lang.Object
  extended by com.hp.hpl.jena.sparql.resultset.SPARQLResult
      extended by com.hp.hpl.jena.sparql.resultset.JSONInput

public class JSONInput
extends SPARQLResult

Code that reads a JSON Result Set and builds the ARQ structure for the same. Originally from Elias Torres <elias@torrez.us> Updated to not use org.json code : Andy Seaborne (2010)


Nested Class Summary
static class JSONInput.JSONResultSet
           
 
Constructor Summary
JSONInput(InputStream in)
           
JSONInput(InputStream in, com.hp.hpl.jena.rdf.model.Model model)
           
 
Method Summary
static boolean booleanFromXML(InputStream in)
           
static ResultSet fromJSON(InputStream in)
           
static ResultSet fromJSON(InputStream in, com.hp.hpl.jena.rdf.model.Model model)
           
static SPARQLResult make(InputStream in, com.hp.hpl.jena.rdf.model.Model model)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.resultset.SPARQLResult
getBooleanResult, getModel, getResultSet, isBoolean, isGraph, isHasBeenSet, isModel, isResultSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONInput

public JSONInput(InputStream in)

JSONInput

public JSONInput(InputStream in,
                 com.hp.hpl.jena.rdf.model.Model model)
Method Detail

fromJSON

public static ResultSet fromJSON(InputStream in)

fromJSON

public static ResultSet fromJSON(InputStream in,
                                 com.hp.hpl.jena.rdf.model.Model model)

booleanFromXML

public static boolean booleanFromXML(InputStream in)

make

public static SPARQLResult make(InputStream in,
                                com.hp.hpl.jena.rdf.model.Model model)


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010 Epimorphics Ltd.