docs: def json(self):
          """str: the ontology serialized in json format.
          """
          return json.dumps(self.terms, indent=4, sort_keys=True,
                            default=operator.attrgetter("__deref__"))