OpenRefine / OpenRefine

OpenRefine is a free, open source power tool for working with messy data and improving it
https://openrefine.org/
BSD 3-Clause "New" or "Revised" License
10.85k stars 1.94k forks source link

wikibase: Render property names in issue reports #6768

Closed wetneb closed 2 days ago

wetneb commented 2 months ago

Sometimes OpenRefine generates Wikibase issues of this form:

male population (P1540) is missing a P585 qualifier. Statements using male population (P1540) such as the one on Katowice (Q588) are missing a mandatory P585 qualifier.

Note the fact that "P585" is written without the corresponding name ("point in time" as of today, in English). This happens for properties which are mentioned in constraints but are not present in the candidate edits or project data. For instance, the "male population (P1540)" property was input in the schema, so OpenRefine knows its label without having to fetch it from Wikidata, which is why it is already included in the generated issue.

Proposed solution

It would be much more user-friendly if those properties could also be rendered with the label. This could be done either in the backend (by fetching the names for the missing properties when generating the issues) or on the frontend-side (by making an API call to the Wikibase instance to fetch them when rendering). In both cases, it would be good to cache this information for the duration of the work session (such as, the lifetime of the OpenRefine web interface) to avoid re-fetching those too often from the Wikibase instance.

Alternatives considered

Status quo

Additional context

Follow-up from the OpenRefine-Wikidata training at Wikimania

sunilnatraj commented 1 week ago

@wetneb Can you confirm if this is the expected working.

Screenshot 2024-10-07 at 2 08 35 PM
wetneb commented 1 week ago

@sunilnatraj this looks great!

sunilnatraj commented 1 week ago

Thanks @wetneb Can you assign this to me.