Class LiteralProfileConverter
- java.lang.Object
-
- org.incenp.obofoundry.sssom.compatibility.LiteralProfileConverter
-
- All Implemented Interfaces:
IYAMLPreprocessor
public class LiteralProfileConverter extends Object implements IYAMLPreprocessor
A YAML preprocessor to convertliteral*slots.For a time, the SSSOM specification half-defined a "literal profile", intended for mappings between a literal and an entity. That profile has several literal-specific slots. In SSSOM 1.0, this profile has been removed and replaced by a convention that literal subjects are represented by storing the literal in the
subject_labelslot and setting thesubject_typeslot tordfs literal.
-
-
Constructor Summary
Constructors Constructor Description LiteralProfileConverter()
-
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.
-
-