From 5fcdb41a478c3d5886e6e8f89269f5aecd4a661a Mon Sep 17 00:00:00 2001 From: Bartek Foltyn Date: Tue, 14 Nov 2023 21:13:39 +0100 Subject: [PATCH] EFO: make axiom_source required in xref_sources query --- nxontology_data/efo/queries/xref_sources.rq | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nxontology_data/efo/queries/xref_sources.rq b/nxontology_data/efo/queries/xref_sources.rq index 8aa3b9e..3aa03bd 100644 --- a/nxontology_data/efo/queries/xref_sources.rq +++ b/nxontology_data/efo/queries/xref_sources.rq @@ -9,7 +9,8 @@ WHERE { ?axiom owl:annotatedProperty oboInOwl:hasDbXref. ?axiom owl:annotatedTarget ?xref. - OPTIONAL { ?axiom oboInOwl:source ?axiom_source }. + # Require axiom source. OPTIONAL would include extra results where axiom source is not present + ?axiom oboInOwl:source ?axiom_source. BIND( REPLACE( STR(?source), "^http.+/([^:]+)_(.+)$", "$1:$2" ) AS ?efo_id ) }