I guess you could loop through type = "resource", and grab their minable.result?
Seems a bit iffy, but I won't claim to have any clue what I'm doing.
Simpler would be to loop through the item groups looking for things with ore in the name, but that would miss things like my previous example of tenemut that don't.