use of com.github.jsonldjava.core.JsonLdOptions in project stanbol by apache.
the class JsonLdSerializingProvider method activate.
@Activate
protected void activate(ComponentContext ctx) {
opts = new JsonLdOptions();
@SuppressWarnings("unchecked") Dictionary<String, Object> config = ctx.getProperties();
//boolean properties
opts.setUseRdfType(getState(config.get(PROP_USE_RDF_TYPE), false));
opts.setUseNativeTypes(getState(config.get(PROP_USE_NATIVE_TYPES), false));
prettyPrint = getState(config.get(PROP_PRETTY_PRINT), true);
//parse the string mode
Object value = config.get(PROP_MODE);
mode = value == null ? null : value.toString();
}
Aggregations