Class SemanticSimilarityConverter
java.lang.Object
org.incenp.obofoundry.sssom.compatibility.SemanticSimilarityConverter
- All Implemented Interfaces:
IYAMLPreprocessor
A YAML preprocessor to convert a dictionary containing a
semantic_similarity_score
or semantic_similarity_measure
metadata slot into its standardised equivalent.
Initial versions of the SSSOM specification described a
semantic_similarity_score
metadata slot to hold the similarity score
between the subject and the object. In SSSOM 1.0, this slot was renamed into
similarity_score
. Likewise for semantic_similarity_measure
,
renamed into similarity_measure
.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SemanticSimilarityConverter
public SemanticSimilarityConverter()
-
-
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.
-