Hidden in some T223792 replies was a short discussion about creating a new MediaInfo-specific Lua library (rather than using Wikibase default)
Judging by https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/544204 and related activity, Lexeme is already doing so.
I'm not sure we need anything different or in addition to what Wikibase already provides at this point, so... let's start with the just the default wikibase methods, and figure out if and what else we might need later on?