Class SemanticSimilarityConverter
- java.lang.Object
-
- org.incenp.obofoundry.sssom.compatibility.SemanticSimilarityConverter
-
- All Implemented Interfaces:
IYAMLPreprocessor
public class SemanticSimilarityConverter extends Object implements IYAMLPreprocessor
A YAML preprocessor to convert a dictionary containing asemantic_similarity_scoreorsemantic_similarity_measuremetadata slot into its standardised equivalent.Initial versions of the SSSOM specification described a
semantic_similarity_scoremetadata slot to hold the similarity score between the subject and the object. In SSSOM 1.0, this slot was renamed intosimilarity_score. Likewise forsemantic_similarity_measure, renamed intosimilarity_measure.
-
-
Constructor Summary
Constructors Constructor Description SemanticSimilarityConverter()
-
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.
-
-