Minecraft wiki entry for Argument_types, associated text: item_id is required, and it should be in the format of resource location (if namespace isn't set it defaults to minecraft:).
It can also be the resource location of a block tag or item tag with the prefix of #, such as #minecraft:planks.
Data tags are inside {}. It's optional.
When clear or test for item, only the states provided are tested.