Profile page: mainEntity supplied by an "id" reference

The mainEntity value is a bare {"id": …} reference to a node defined elsewhere in the @graph. Under the schema.org context id is an alias of @id, so both spellings should validate identically.