wger icon indicating copy to clipboard operation
wger copied to clipboard

Add Wikidata id to exercise objects

Open 12people opened this issue 5 years ago • 4 comments

Wikidata is the world's biggest open-source wiki for structured content. As such, it contains useful structured information about exercises not available in Wger, including links to the relevant Wikipedia articles in all languages.

It'd be useful if a Wikidata id was added as a property to the Exercise class.

12people avatar Dec 26 '19 19:12 12people

Moreover, it would be nice if certain content could be migrated from Wger to Wikidata directly, so that there's one central place to contribute and get this information. The primary and secondary muscles would be a good start, and there's already the attribute target muscle for primary muscles.

Any missing properties could be proposed to Wikidata — the process for that is relatively straightforward.

12people avatar Dec 06 '20 16:12 12people

If I've understood it correctly, this is only for the data structure itself right?

rolandgeider avatar Dec 06 '20 18:12 rolandgeider

@rolandgeider This issue concerns only the data structure of Exercises, yes.

In my newer comment, I'm thinking that perhaps in the future, attributes like primary and secondary muscles could be removed from Exercises and fetched directly from Wikidata. That's more of a possible future, though, and not the main topic of this issue.

12people avatar Dec 06 '20 19:12 12people

ok, then I got it :) We could definitely get some inspiration from wikidata, but I'll put this in the back burner, let's see that we do the sync with the open food database first

rolandgeider avatar Dec 06 '20 20:12 rolandgeider