The Gender, Sex, and Sexual Orientation (GSSO) ontology has terms for annotating interdisciplinary information concerning gender, sex, and sexual orientation for primary usage in the biomedical and adjacent sciences.
GSSO on BioPortal: https://bioportal.bioontology.org/ontologies/GSSO