Viewing metadata compartments in general view diagrams

Im wanting to view metadata for an occurrence def in the general view. Currently, when I toggle on metadata under the compartments section my occurrence def element doesnt show the metadata compartment. Am I using metadata incorrectly?

 

metadata def StandardReference {

        attribute standardCode : String;

        attribute publicationDate : DateTime;

    }

abstract occurrence def Asset {

        @StandardReference {

  :>> standardCode = "ISO/IEC 30173";

  :>> publicationDate = 2023;

        }

}