From f810aa724f13bf1afa9e16c70637092a055b2316 Mon Sep 17 00:00:00 2001 From: "Bruce W. Herr II" Date: Wed, 11 Dec 2024 12:30:18 -0500 Subject: [PATCH] Switch left/right ovary terms from FMA to UBERON --- .../v1/queries/anatomical-systems-tree-model.rq | 4 ++-- src/library/v1/queries/ds-graph-enrichment.rq | 4 ++-- src/library/v1/queries/ontology-tree-model.rq | 17 ++++++++++++++--- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/library/v1/queries/anatomical-systems-tree-model.rq b/src/library/v1/queries/anatomical-systems-tree-model.rq index edd1209..9afdf47 100644 --- a/src/library/v1/queries/anatomical-systems-tree-model.rq +++ b/src/library/v1/queries/anatomical-systems-tree-model.rq @@ -43,8 +43,8 @@ WHERE { ( ) ( ) # Ovary - ( ) - ( ) + ( ) + ( ) # Palatine Tonsil ( ) ( ) diff --git a/src/library/v1/queries/ds-graph-enrichment.rq b/src/library/v1/queries/ds-graph-enrichment.rq index e2e05a5..4d63294 100644 --- a/src/library/v1/queries/ds-graph-enrichment.rq +++ b/src/library/v1/queries/ds-graph-enrichment.rq @@ -71,8 +71,8 @@ WHERE { ( ) ( ) # Ovary - ( ) - ( ) + ( ) + ( ) # Palatine Tonsil ( ) ( ) diff --git a/src/library/v1/queries/ontology-tree-model.rq b/src/library/v1/queries/ontology-tree-model.rq index cb08cb3..a6e3478 100644 --- a/src/library/v1/queries/ontology-tree-model.rq +++ b/src/library/v1/queries/ontology-tree-model.rq @@ -1,6 +1,7 @@ PREFIX rdf: PREFIX rdfs: PREFIX ccf: +PREFIX skos: PREFIX body: PREFIX hasExactSynonym: PREFIX HRA: @@ -46,6 +47,9 @@ WHERE { (27 ) (28 ) (29 ) + (30 ) + (31 ) + (32 ) } } UNION { @@ -68,8 +72,8 @@ WHERE { ( ) ( ) # Ovary - ( ) - ( ) + ( ) + ( ) # Palatine Tonsil ( ) ( ) @@ -84,7 +88,14 @@ WHERE { FILTER(?parent != body:) } - ?child ccf:ccf_pref_label ?label1 . + { + ?child ccf:ccf_pref_label ?label1 . + } + UNION + { + [] a ?child, ccf:SpatialEntity ; skos:prefLabel ?label1 . + } + OPTIONAL { { ?child hasExactSynonym: ?synonymLabel1 .