QC for duplicate labels/exact synonyms in EFO#2628
Merged
aleixpuigb merged 3 commits intomasterfrom Feb 19, 2026
Merged
Conversation
Add a new QC step to detect duplicate lexical strings across rdfs:label and oboInOwl:hasExactSynonym. Introduces a SPARQL extraction (label-synonym-dup-extract.sparql), a Python detector script (detect_label_synonym_duplicates.py) that normalizes values and writes a TSV report, and hooks the check into the Makefile (label_synonym_dup_check) so it's run as part of qc. Adds LABEL_DUP_EXPERIMENTAL Makefile flag to run in non-failing experimental mode and generates intermediate label-synonym-data.tsv via ROBOT.
Remove the LABEL_DUP_EXPERIMENTAL variable and the LABEL_DUP_ARGS conditional block, and hardcode the output path for the detect_label_synonym_duplicates.py invocation. The label_synonym_dup_check target now calls the script with an explicit -o reports/label-synonym-duplicates.tsv, simplifying the Makefile and removing the experimental flag handling.
zoependlington
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new quality control (QC) check to detect duplicate lexical strings across
rdfs:labelandoboInOwl:hasExactSynonymproperties in ontology terms. The check is integrated into the build process and produces a report highlighting potential collisions, helping to improve ontology consistency and avoid ambiguous naming.SPARQL extraction for label/synonym data:
label-synonym-dup-extract.sparqlto extract allrdfs:labelandoboInOwl:hasExactSynonymvalues from ontology classes, filtering out deprecated and blank nodes.New duplicate detection QC integration:
label_synonym_dup_checktarget to theqcrule in theMakefile, ensuring the duplicate check runs as part of QC and GitHub Actions workflows.detect_label_synonym_duplicates.pythat processes a ROBOT-generated TSV file, normalizes label/synonym values, identifies duplicate clusters across distinct terms, and writes a wide-format TSV report.