<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def infer_best_title(self):
 """Selects something usable as a title for an ontospy graph"""

        if self.ontospy_graph.all_ontologies:
            return self.ontospy_graph.all_ontologies[0].uri
        elif self.ontospy_graph.sources:
            return self.ontospy_graph.sources[0]
        else:
            return "Untitled"