diff --git a/examples/configurations/nexus-resolver/term-to-resource-mapping.hjson b/examples/configurations/nexus-resolver/term-to-resource-mapping.hjson index 68c41c9d..4c5fe3ef 100644 --- a/examples/configurations/nexus-resolver/term-to-resource-mapping.hjson +++ b/examples/configurations/nexus-resolver/term-to-resource-mapping.hjson @@ -13,7 +13,8 @@ delineatedBy: x.delineatedBy if hasattr(x, "delineatedBy") else None hasLayerLocationPhenotype: x.hasLayerLocationPhenotype if hasattr(x, "hasLayerLocationPhenotype") else None representedInAnnotation: x.representedInAnnotation if hasattr(x, "representedInAnnotation") else None + hasLeafRegionPart: x.hasLeafRegionPart if hasattr(x, "hasLeafRegionPart") else None isPartOf: x.isPartOf if hasattr(x, "isPartOf") else None isLayerPartOf: x.isLayerPartOf if hasattr(x, "isLayerPartOf") else None units: x.units if hasattr(x, "units") else None -} \ No newline at end of file +} diff --git a/kgforge/specializations/resolvers/ontology_resolver.py b/kgforge/specializations/resolvers/ontology_resolver.py index 82a2ac2c..0ee77f20 100644 --- a/kgforge/specializations/resolvers/ontology_resolver.py +++ b/kgforge/specializations/resolvers/ontology_resolver.py @@ -61,6 +61,7 @@ def _resolve(self, text: Union[str, List[str]], target: Optional[str], type: Opt delineatedBy ?delineatedBy ; hasLayerLocationPhenotype ?hasLayerLocationPhenotype ; representedInAnnotation ?representedInAnnotation ; + hasLeafRegionPart ?hasLeafRegionPart ; isPartOf ?isPartOf ; isLayerPartOf ?isLayerPartOf . }} WHERE {{ @@ -104,6 +105,9 @@ def _resolve(self, text: Union[str, List[str]], target: Optional[str], type: Opt ?id representedInAnnotation ?representedInAnnotation . }} OPTIONAL {{ + ?id hasLeafRegionPart ?hasLeafRegionPart . + }} + OPTIONAL {{ ?id isPartOf ?isPartOf . }} OPTIONAL {{