public class JSONLDFormatter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JSONLDFormatter.DocType |
| Modifier and Type | Field and Description |
|---|---|
static String |
ANC_PREFIX_SHORT |
static String |
ANN_PREFIX_SHORT |
static Map<String,Object> |
annContextObject |
static String |
annoContext |
static Map<String,Object> |
bdoContextObject |
static String |
BDR |
static Map<JSONLDFormatter.DocType,Object> |
docTypeToContextObject |
static Map<JSONLDFormatter.DocType,Object> |
docTypeToSimpleContext |
static com.github.jsonldjava.core.JsonLdOptions |
jsonLdOptions |
static String |
ldpContext |
static org.slf4j.Logger |
log |
static String |
oaContext |
static Map<String,Object> |
oaContextObject |
static boolean |
prettyPrint |
static String |
simpleContext |
static Map<String,JSONLDFormatter.DocType> |
typeToDocType |
protected static Map<JSONLDFormatter.DocType,Object> |
typeToFrameObject |
static Map<JSONLDFormatter.DocType,Object> |
typeToRootShortUri |
| Constructor and Description |
|---|
JSONLDFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
getAnnMergedContext() |
static Map<String,Object> |
getBDOContext() |
static JSONLDFormatter.DocType |
getDocType(org.apache.jena.rdf.model.Model m,
String mainResourceUri) |
static Object |
getFrameObject(JSONLDFormatter.DocType type,
String mainResourceUri) |
static Map<String,Object> |
getOaMergedContext() |
protected static void |
insertRec(String k,
Object v,
SortedMap<String,Object> tm) |
static void |
jsonObjectToOutputStream(Object jsonObject,
OutputStream out) |
static Map<String,Object> |
modelToJsonObject(org.apache.jena.rdf.model.Model m,
JSONLDFormatter.DocType type,
String mainResourceUri,
org.apache.jena.riot.RDFFormat format,
boolean reorder) |
static Map<String,Object> |
modelToJsonObject(org.apache.jena.rdf.model.Model m,
String mainResourceUri,
JSONLDFormatter.DocType type) |
protected static Map<String,Object> |
orderEntries(Map<String,Object> input) |
static void |
writeModelAsCompact(org.apache.jena.rdf.model.Model m,
OutputStream out) |
protected static final Map<JSONLDFormatter.DocType,Object> typeToFrameObject
public static final String BDR
public static final org.slf4j.Logger log
public static final String simpleContext
public static final String annoContext
public static final String oaContext
public static final String ldpContext
public static boolean prettyPrint
public static final com.github.jsonldjava.core.JsonLdOptions jsonLdOptions
public static final String ANN_PREFIX_SHORT
public static final String ANC_PREFIX_SHORT
public static final Map<JSONLDFormatter.DocType,Object> docTypeToSimpleContext
public static final Map<JSONLDFormatter.DocType,Object> docTypeToContextObject
public static final Map<String,JSONLDFormatter.DocType> typeToDocType
public static final Map<JSONLDFormatter.DocType,Object> typeToRootShortUri
public static Object getFrameObject(JSONLDFormatter.DocType type, String mainResourceUri)
protected static void insertRec(String k, Object v, SortedMap<String,Object> tm) throws IllegalArgumentException
IllegalArgumentExceptionprotected static Map<String,Object> orderEntries(Map<String,Object> input) throws IllegalArgumentException
IllegalArgumentExceptionpublic static JSONLDFormatter.DocType getDocType(org.apache.jena.rdf.model.Model m, String mainResourceUri)
public static Map<String,Object> modelToJsonObject(org.apache.jena.rdf.model.Model m, String mainResourceUri, JSONLDFormatter.DocType type)
public static Map<String,Object> modelToJsonObject(org.apache.jena.rdf.model.Model m, JSONLDFormatter.DocType type, String mainResourceUri, org.apache.jena.riot.RDFFormat format, boolean reorder)
public static void jsonObjectToOutputStream(Object jsonObject, OutputStream out)
public static void writeModelAsCompact(org.apache.jena.rdf.model.Model m,
OutputStream out)
Copyright © 2019. All rights reserved.