public class Decoder extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<Integer,com.hp.hpl.jena.rdf.model.Resource> |
bNodes |
protected static int |
BUFLEN |
protected Context |
context |
protected static EncoderPlugin |
encoder |
protected org.apache.jena.atlas.json.JsonObject |
j |
protected com.hp.hpl.jena.rdf.model.Model |
model |
Constructor and Description |
---|
Decoder(Context context,
org.apache.jena.atlas.json.JsonObject jObj) |
Modifier and Type | Method and Description |
---|---|
com.hp.hpl.jena.rdf.model.Resource |
bNodeForID(int id) |
com.hp.hpl.jena.rdf.model.Resource |
bNodeForID(String id) |
static List<com.hp.hpl.jena.rdf.model.Resource> |
decode(Context context,
Reader reader)
Decode a JSON object from the reader into a set of resources within
a reconstructed RDF Model.
|
static com.hp.hpl.jena.query.Dataset |
decodeGraphs(Context context,
Reader reader)
Decode a JSON object from the reader into collection of named graphs
|
protected com.hp.hpl.jena.rdf.model.RDFNode |
decodeList(org.apache.jena.atlas.json.JsonArray array) |
static com.hp.hpl.jena.rdf.model.Model |
decodeModel(Context context,
Reader reader)
Decode a JSON object from the reader into a model.
|
protected com.hp.hpl.jena.rdf.model.RDFNode |
decodeNode(Object val,
String type) |
List<com.hp.hpl.jena.rdf.model.Resource> |
decodeResources() |
protected static String |
readFull(Reader reader) |
com.hp.hpl.jena.rdf.model.Resource |
resourceForURI(String uri) |
protected static EncoderPlugin encoder
protected static final int BUFLEN
protected Context context
protected org.apache.jena.atlas.json.JsonObject j
protected com.hp.hpl.jena.rdf.model.Model model
public Decoder(Context context, org.apache.jena.atlas.json.JsonObject jObj)
public static List<com.hp.hpl.jena.rdf.model.Resource> decode(Context context, Reader reader)
EncodingException
- if there is a jsonrdf level error or JSON errorprotected static String readFull(Reader reader) throws IOException
IOException
public static com.hp.hpl.jena.rdf.model.Model decodeModel(Context context, Reader reader)
EncodingException
- if there is a jsonrdf level error or JSON errorpublic static com.hp.hpl.jena.query.Dataset decodeGraphs(Context context, Reader reader)
EncodingException
- if there is a jsonrdf level error or JSON errorpublic List<com.hp.hpl.jena.rdf.model.Resource> decodeResources() throws org.apache.jena.atlas.json.JsonException
org.apache.jena.atlas.json.JsonException
protected com.hp.hpl.jena.rdf.model.RDFNode decodeNode(Object val, String type) throws org.apache.jena.atlas.json.JsonException
org.apache.jena.atlas.json.JsonException
protected com.hp.hpl.jena.rdf.model.RDFNode decodeList(org.apache.jena.atlas.json.JsonArray array) throws org.apache.jena.atlas.json.JsonException
org.apache.jena.atlas.json.JsonException
public com.hp.hpl.jena.rdf.model.Resource bNodeForID(String id)
public com.hp.hpl.jena.rdf.model.Resource bNodeForID(int id)
public com.hp.hpl.jena.rdf.model.Resource resourceForURI(String uri)
Copyright © 2014. All Rights Reserved.