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 .