Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix: KeyError on mondo_label #775

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/sparql/synonyms-scope-type-xref.sparql
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ PREFIX oio: <http://www.geneontology.org/formats/oboInOwl#>
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>

SELECT
?cls_id ?dbXref ?synonym_scope ?synonym (GROUP_CONCAT(DISTINCT STR(?synonym_type_curie); separator="|") as ?synonym_type)
?cls_id ?cls_label ?dbXref ?synonym_scope ?synonym (GROUP_CONCAT(DISTINCT STR(?synonym_type_curie); separator="|") as ?synonym_type)
WHERE {
?cls a owl:Class ;
?synonymPropertyUri ?synonym .

OPTIONAL { ?cls rdfs:label ?cls_label }

OPTIONAL {
?axiom owl:annotatedSource ?cls ;
owl:annotatedProperty ?synonymPropertyUri ;
Expand All @@ -34,4 +36,4 @@ WHERE {
# OAK uses oio, so we're doing that here for consistency because we'll be comparing this with OAK output.
BIND(REPLACE(STR(?synonymPropertyUri), "http://www.geneontology.org/formats/oboInOwl#", "oio:") AS ?synonym_scope)
}
GROUP BY ?cls_id ?dbXref ?synonym_scope ?synonym
GROUP BY ?cls_id ?cls_label ?dbXref ?synonym_scope ?synonym