public interface EncoderPlugin
Modifier and Type | Method and Description |
---|---|
String |
decodeResourceURI(String code,
Context context)
Decode a resource URI
|
com.hp.hpl.jena.rdf.model.RDFNode |
decodeValue(Object jsonValue,
Decoder decoder,
String type)
Decode an RDF value (object of a statement)
|
String |
encodebNodeId(int id)
Encode a reference to a bNode via a mapped identifier number
|
void |
encodeLiteral(JSONWriterFacade jw,
boolean isStructured,
com.hp.hpl.jena.rdf.model.Literal lit,
ReadContext c)
Encode a literal as a JSON compatible object.
|
String |
encodeResourceURI(String uri)
Encode a resource URI
|
String |
encodeResourceURI(String uri,
ReadContext context,
boolean shortNames)
Encode a resource URI, use relative URIs if possible, use shortnames only if flag is set
|
void |
endResults(JSONWriterFacade jw,
boolean oneResult)
end of results
|
void |
finishNamedGraph(JSONWriterFacade jw)
Finish a specific named graph
|
void |
finishNamedGraphs(JSONWriterFacade jw)
Finish the entire second of named graphs, assumes last graph has been closed
|
String |
getGraphName(org.apache.jena.atlas.json.JsonObject graph,
Context context)
Return the name of a named graph
|
org.apache.jena.atlas.json.JsonArray |
getNamedGraphs(org.apache.jena.atlas.json.JsonObject jobj)
Return the array of encoded graphs from a top level JSON results set, or null if there is none
|
String |
getPNResourceID()
String used as the property name for identifying resources
|
org.apache.jena.atlas.json.JsonArray |
getResults(org.apache.jena.atlas.json.JsonObject jobj)
Extract the results part of a deserialized JSON object
|
void |
startNamedGraph(JSONWriterFacade jw,
String name)
Start a specific named graph
|
void |
startNamedGraphs(JSONWriterFacade jw)
Start a sub-section for outputing named graphs
|
void |
startResults(JSONWriterFacade jw,
boolean oneResult)
Write header for a results/model array object
|
void |
writeHeader(JSONWriterFacade jw)
Write the outer result wrapper.
|
String getPNResourceID()
String encodeResourceURI(String uri, ReadContext context, boolean shortNames)
String encodebNodeId(int id)
void encodeLiteral(JSONWriterFacade jw, boolean isStructured, com.hp.hpl.jena.rdf.model.Literal lit, ReadContext c)
void writeHeader(JSONWriterFacade jw)
void startResults(JSONWriterFacade jw, boolean oneResult)
void endResults(JSONWriterFacade jw, boolean oneResult)
void startNamedGraphs(JSONWriterFacade jw)
void startNamedGraph(JSONWriterFacade jw, String name)
void finishNamedGraph(JSONWriterFacade jw)
void finishNamedGraphs(JSONWriterFacade jw)
org.apache.jena.atlas.json.JsonArray getNamedGraphs(org.apache.jena.atlas.json.JsonObject jobj) throws org.apache.jena.atlas.json.JsonException
org.apache.jena.atlas.json.JsonException
String getGraphName(org.apache.jena.atlas.json.JsonObject graph, Context context) throws org.apache.jena.atlas.json.JsonException
org.apache.jena.atlas.json.JsonException
org.apache.jena.atlas.json.JsonArray getResults(org.apache.jena.atlas.json.JsonObject jobj) throws org.apache.jena.atlas.json.JsonException
org.apache.jena.atlas.json.JsonException
Copyright © 2014. All Rights Reserved.