/** * Performs RDF dataset normalization on the given JSON-LD input. The output * is an RDF dataset unless the 'format' option is used. Uses the default * {@link JsonLdOptions}. * * @param input * the JSON-LD input to normalize. * @return The JSON-LD object * @throws JsonLdError * If there is an error normalizing the dataset. */ public static Object normalize(Object input) throws JsonLdError { return normalize(input, new JsonLdOptions("")); }
/** * Performs RDF dataset normalization on the given JSON-LD input. The output * is an RDF dataset unless the 'format' option is used. Uses the default * {@link JsonLdOptions}. * * @param input * the JSON-LD input to normalize. * @return The JSON-LD object * @throws JsonLdError * If there is an error normalizing the dataset. */ public static Object normalize(Object input) throws JsonLdError { return normalize(input, new JsonLdOptions("")); }
/** * Performs RDF dataset normalization on the given JSON-LD input. The output * is an RDF dataset unless the 'format' option is used. Uses the default * {@link JsonLdOptions}. * * @param input * the JSON-LD input to normalize. * @return The JSON-LD object * @throws JsonLdError * If there is an error normalizing the dataset. */ public static Object normalize(Object input) throws JsonLdError { return normalize(input, new JsonLdOptions("")); }
} else if (testType.contains("jld:NormalizeTest")) { options.format = JsonLdConsts.APPLICATION_NQUADS; result = JsonLdProcessor.normalize(input, options); result = ((String) result).trim(); } else {