From efa0dd07aa6acf1af7241fcd2b119e6991f20b5f Mon Sep 17 00:00:00 2001 From: Nico Matentzoglu Date: Mon, 12 Feb 2024 18:14:16 +0200 Subject: [PATCH] Extend source sparql for diff data --- src/sparql/reports/release-report.sparql | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/sparql/reports/release-report.sparql b/src/sparql/reports/release-report.sparql index 74a9906be5..ae001835a7 100644 --- a/src/sparql/reports/release-report.sparql +++ b/src/sparql/reports/release-report.sparql @@ -6,7 +6,7 @@ PREFIX definition: PREFIX obsoletion_candidate: PREFIX in_subset: -SELECT ?mondo_term ?label ?definition ?obsoletion_candidate ?obsolete WHERE { +SELECT ?mondo_term ?label ?definition ?obsoletion_candidate ?obsolete ?xref WHERE { ?mondo_term a owl:Class . OPTIONAL { ?mondo_term rdfs:label ?label . @@ -17,6 +17,16 @@ SELECT ?mondo_term ?label ?definition ?obsoletion_candidate ?obsolete WHERE { OPTIONAL { ?mondo_term owl:deprecated ?obsolete_value . } + OPTIONAL { + ?mondo_term oboInOwl:hasDbXref ?xref . + } + OPTIONAL { + ?mondo_term oboInOwl:hasDbXref ?xref . + ?xref_anno owl:annotatedSource ?mondo_term ; + owl:annotatedProperty oboInOwl:hasDbXref ; + owl:annotatedTarget ?xref ; + oboInOwl:source ?source . + } OPTIONAL { VALUES ?subset {obsoletion_candidate:} . ?mondo_term in_subset: ?subset .