SimpleEvidence
- class SimpleEvidence(*, evidence_type: Literal['simple'] = 'simple', justification: NormalizedNamableReference = NormalizedNamableReference(prefix='semapv', identifier='UnspecifiedMapping', name=None), mapping_set: MappingSet, author: NormalizedNamableReference | None = None, confidence: float | None = None)[source]
Bases:
BaseModel,KeyedMixin[(typing.Union[curies.triples.Triple, ForwardRef(‘Mapping’)],),tuple[StrTriple,SimpleEvidenceKey]],EvidenceMixin,ConfidenceMixinEvidence for a mapping.
Ideally, this matches the SSSOM data model.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Attributes Summary
Get a set containing 1 element - this evidence's mapping set's name.
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Methods Summary
Get the confidence from the mapping set.
key(triple)Get a key suitable for hashing the evidence.
Attributes Documentation
- mapping_set_names
Get a set containing 1 element - this evidence’s mapping set’s name.
- model_config = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Methods Documentation