:Wedding rdf:type bruh:Ocurrence
This is the declaration of an instance, with IRI :Wedding
.
:Wedding rdf:type owl:Class
This is the declaration of a class, with IRI :Wedding
.
This is called punning (i.e., using the same IRI for different categories of entities. As mentioned by @ssz in the comment, this is allowed in OWL 2 DL (classes and individuals can share an IRI, but not properties - a data property and an object property cannot share an IRI, this would make the ontology OWL 2 Full).
However, you should expect these to appear as separate axioms (the subclassof property won't appear on the XML element describing the instance, it will appear on the class).
Note that punned individuals and classes are not related logically, they just happen to have the same name. So, it is important to know why you wish to pun them - you're not mentioning this in the question, so I wonder if you are trying to pun the entities or just trying to describe one of the two - the class or the individual.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…