def get_related_mappings_with_version_information(expressions): related_mappings = [] for expression in expressions: if is_concept(expression): concepts = CollectionReference.get_concept_heads_from_expression(expression) for concept in concepts: related_mappings += concept.get_latest_unidirectional_mappings() return [mapping.uri for mapping in related_mappings]
def get_related_mappings_with_version_information(self, instance, expressions): related_mappings = [] for expression in expressions: if is_concept(expression): concepts = CollectionReference.get_concept_heads_from_expression( expression) for concept in concepts: related_mappings += concept.get_unidirectional_mappings() return self.get_version_information_of_related_mappings( instance, related_mappings)