Class JsonLDConverter
- java.lang.Object
-
- org.incenp.obofoundry.sssom.compatibility.JsonLDConverter
-
- All Implemented Interfaces:
IYAMLPreprocessor
public class JsonLDConverter extends Object implements IYAMLPreprocessor
A YAML preprocessor to convert SSSOM-Py’s JSON-LD output into a normalised form.What SSSOM-Py calls “JSON” output is actually a JSON-LD-based output, where prefix names are declared in the @context dictionary. When such a dictionary is found, we turn it into a curie_map slot.
-
-
Constructor Summary
Constructors Constructor Description JsonLDConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(Map<String,Object> rawMap)Apply a treatment to the specified dictionary.
-
-
-
Method Detail
-
process
public void process(Map<String,Object> rawMap) throws SSSOMFormatException
Description copied from interface:IYAMLPreprocessorApply a treatment to the specified dictionary.- Specified by:
processin interfaceIYAMLPreprocessor- Parameters:
rawMap- The dictionary to process.- Throws:
SSSOMFormatException- If the contents of the dictionary does not match the preprocessor's expectations.
-
-