MappingTuple
- class MappingTuple(source_prefix: str, source_id: str, source_name: str, relation: str, target_prefix: str, target_identifier: str, target_name: str, type: str, source: str, prediction_type: str | None, prediction_source: str | None, prediction_confidence: float | None)[source]
Bases:
NamedTuple
A named tuple class for mappings.
Create new instance of MappingTuple(source_prefix, source_id, source_name, relation, target_prefix, target_identifier, target_name, type, source, prediction_type, prediction_source, prediction_confidence)
Attributes Summary
Alias for field number 11
Alias for field number 10
Alias for field number 9
Alias for field number 3
Alias for field number 8
Concatenate the source prefix and ID to a CURIE.
Alias for field number 1
Alias for field number 2
Alias for field number 0
Concatenate the target prefix and ID to a CURIE.
Alias for field number 5
Alias for field number 6
Alias for field number 4
Alias for field number 7
Methods Summary
as_dict
()Get the mapping tuple as a dictionary.
from_dict
(mapping)Get the mapping tuple from a dictionary.
Attributes Documentation
- source_curie
Concatenate the source prefix and ID to a CURIE.
- target_curie
Concatenate the target prefix and ID to a CURIE.
Methods Documentation