/** * Expansion Algorithm * * http://json-ld.org/spec/latest/json-ld-api/#expansion-algorithm * * @param activeCtx * The Active Context * @param element * The current element * @return The expanded JSON-LD object. * @throws JsonLdError * If there was an error during expansion. */ public Object expand(Context activeCtx, Object element) throws JsonLdError { return expand(activeCtx, null, element); }
/** * Expansion Algorithm * * http://json-ld.org/spec/latest/json-ld-api/#expansion-algorithm * * @param activeCtx * The Active Context * @param element * The current element * @return The expanded JSON-LD object. * @throws JsonLdError * If there was an error during expansion. */ public Object expand(Context activeCtx, Object element) throws JsonLdError { return expand(activeCtx, null, element); }
/** * Expansion Algorithm * * http://json-ld.org/spec/latest/json-ld-api/#expansion-algorithm * * @param activeCtx * The Active Context * @param element * The current element * @return The expanded JSON-LD object. * @throws JsonLdError * If there was an error during expansion. */ public Object expand(Context activeCtx, Object element) throws JsonLdError { return expand(activeCtx, null, element); }
Object expanded = new JsonLdApi().expand(context, jsonMap); String result = ((Map<String, Object>) expanded).keySet().iterator().next(); if (result != null) {
jsonObject = new JsonLdApi().expand(getContext(), jsonObject); String jsonString = JsonUtils.toString(jsonObject); Model model = ModelFactory.createDefaultModel();
Object expanded = new JsonLdApi(opts).expand(activeCtx, input);
final Object v = expand(activeCtx, activeProperty, item); expandedValue = expand(activeCtx, JsonLdConsts.GRAPH, value); expandedValue = expand(activeCtx, activeProperty, value); expandedValue = expand(activeCtx, activeProperty, value); expandedValue = expand(activeCtx, JsonLdConsts.REVERSE, value); || JsonLdConsts.EMBED_CHILDREN.equals(expandedProperty) || JsonLdConsts.OMIT_DEFAULT.equals(expandedProperty))) { expandedValue = expand(activeCtx, expandedProperty, value); indexValue = expand(activeCtx, key, indexValue); expandedValue = expand(activeCtx, key, value);
final Object v = expand(activeCtx, activeProperty, item); expandedValue = expand(activeCtx, "@graph", value); expandedValue = expand(activeCtx, activeProperty, value); expandedValue = expand(activeCtx, activeProperty, value); expandedValue = expand(activeCtx, "@reverse", value); || "@embedChildren".equals(expandedProperty) || "@omitDefault".equals(expandedProperty)) { expandedValue = expand(activeCtx, expandedProperty, value); indexValue = expand(activeCtx, key, indexValue); expandedValue = expand(activeCtx, key, value);
Object expanded = new JsonLdApi(opts).expand(activeCtx, input);
final Object v = expand(activeCtx, activeProperty, item); expandedValue = expand(activeCtx, JsonLdConsts.GRAPH, value); expandedValue = expand(activeCtx, activeProperty, value); expandedValue = expand(activeCtx, activeProperty, value); expandedValue = expand(activeCtx, JsonLdConsts.REVERSE, value); || JsonLdConsts.EMBED_CHILDREN.equals(expandedProperty) || JsonLdConsts.OMIT_DEFAULT.equals(expandedProperty))) { expandedValue = expand(activeCtx, expandedProperty, value); indexValue = expand(activeCtx, key, indexValue); expandedValue = expand(activeCtx, key, value);
Object expanded = new JsonLdApi(opts).expand(activeCtx, input);