diff --git a/VERSION b/VERSION index db77e0ee..7b4d9a4f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.10.5 +1.10.6 diff --git a/entity-api-spec.yaml b/entity-api-spec.yaml index 52b5ae03..dc35cbb2 100644 --- a/entity-api-spec.yaml +++ b/entity-api-spec.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: description: 'The SenNet Entity API is a standard RESTful web service with create, update and read operations for the standard SenNet provenance graph entities.' - version: 1.10.5 + version: 1.10.6 title: SenNet Entity API contact: name: SenNet Help Desk diff --git a/src/lib/constraints/sample.py b/src/lib/constraints/sample.py index cd2a69b3..2979bb10 100644 --- a/src/lib/constraints/sample.py +++ b/src/lib/constraints/sample.py @@ -18,6 +18,12 @@ def build_sample_organ_constraints(entity, constraints=None): descendant = build_constraint_unit(Entities.SAMPLE, [SpecimenCategories.SUSPENSION]) constraints.append(build_constraint(ancestor, [descendant])) + # Sample suspension ---> Sample organ of blood (organ_uberon) + ancestor = build_constraint_unit( + entity, [SpecimenCategories.ORGAN], [Ontology.ops(as_data_dict=True, val_key='organ_uberon').organ_types()['BLOOD']] + ) + constraints.append(build_constraint(ancestor, [descendant])) + # Sample block ---> Sample organ ancestor = build_constraint_unit(entity, [SpecimenCategories.ORGAN]) descendant = build_constraint_unit(Entities.SAMPLE, [SpecimenCategories.BLOCK])