A newer version of the Gradio SDK is available:
6.1.0
Bug Fix: AdminMetadata Not Being Added
The Problem
Your sample RDF was missing language, content, and adminMetadata, but the rapid fix was only adding language and content β NOT adminMetadata.
Root Cause
Bug in line 250 of app.py:
elif prop_lower in INSTANT_FIXES and f"<bf:{prop}" not in content:
fixes.append(INSTANT_FIXES[prop_lower]) # β BUG!
The code was:
- Converting property names to lowercase:
prop_lower = prop.lower() - Checking if lowercase key exists:
prop_lower in INSTANT_FIXES - But INSTANT_FIXES dict had mixed-case keys:
"adminMetadata"(capital M) - So
"adminmetadata" in INSTANT_FIXESβ False β
The Fix
Changed to use original case from regex capture:
elif prop in INSTANT_FIXES and f"<bf:{prop}" not in content:
fixes.append(INSTANT_FIXES[prop]) # β FIXED!
Since the regex captures adminMetadata with capital M, and INSTANT_FIXES has "adminMetadata" with capital M, they now match correctly.
Test Results
Before Fix:
β
Added bf:language
β
Added bf:content
β Missing bf:adminMetadata β BUG!
After Fix:
β
Added bf:language
β
Added bf:content
β
Added bf:adminMetadata
β
AdminMetadata includes bf:assigner
Why This Matters
When validation reports missing adminMetadata, the rapid fix now:
- Detects it's missing
- Adds the complete adminMetadata block
- Block already includes
bf:assigner(so no secondary error)
This means your sample invalid RDF will now be fixed in < 5 seconds instead of 2 minutes! π
Additional Improvements
Also added comprehensive debug logging so you can see:
- Which properties were detected as missing
- Which properties are being added
- Whether AdminMetadata exists before/after
- Whether assigner injection occurred
- Re-validation results
Enable "Show steps" checkbox in the UI to see the full trace!