It is currently not possible to collect resources using an abstract resource collector. There are two way that you can attempt to collect an abstract resource, and they both fail with compiler errors:
Resource[$type] <| tag == 'some_tag' |> -> Package['some_package']
This fails with a syntax error `Could not parse for environment root: Illegal expression. A '' expression is unacceptable as type name in a Virtual Query`.
I also tried:
Resource <| tag == 'some_tag' |> -> Package['some_package']
This causes an error:
Evaluation Error: Error while evaluating a Virtual Query, Resource type resource doesn't exist
The example code I used that prompted this finding is here: