Class JsonLDConverter
java.lang.Object
org.incenp.obofoundry.sssom.compatibility.JsonLDConverter
- All Implemented Interfaces:
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 -
Method Summary
-
Constructor Details
-
JsonLDConverter
public JsonLDConverter()
-
-
Method Details
-
process
Description copied from interface:IYAMLPreprocessor
Apply a treatment to the specified dictionary.- Specified by:
process
in interfaceIYAMLPreprocessor
- Parameters:
rawMap
- The dictionary to process.- Throws:
SSSOMFormatException
- If the contents of the dictionary does not match the preprocessor's expectations.
-