<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_triple( self, subj: Union[URIRef, str], pred: Union[URIRef, str], obj: Union[URIRef, Literal, str] ) -> None: """ Adds triple to rdflib Graph Triple can be of any subject, predicate, and object of the entity without a need for order. Args: subj: Entity subject pred: Entity predicate obj: Entity object Example: In [1]: add_triple( """

        if obj in [None, "", " "]: return # Empty objects are bad practice
        _subj = self.process_subj_or_pred(subj)
        _pred = self.process_subj_or_pred(pred)
        _obj = self.process_obj(obj)
        self.g.add( (_subj, _pred, _obj) )