docs: def getMetadata(self, objectId=None, **filters):
          """ Request metadata about a text or a collection
  
          :param objectId: Object Identifier to filter on
          :type objectId: str
          :param filters: Kwargs parameters.
          :type filters: dict
          :return: Collection
          """
          if objectId is None:
              return self.inventory
          elif objectId in self.inventory.children.keys():
              return self.inventory[objectId]
          texts, _, _ = self.__getTextMetadata__(urn=objectId)
  
          # We store inventory names and if there is only one we recreate the inventory
          inv_names = [text.parent.parent.parent.id for text in texts]
          if len(set(inv_names)) == 1:
              inventory = self.classes["inventory"](name=inv_names[0])
          else:
              inventory = self.classes["inventory"]()
  
          # For each text we found using the filter
          for text in texts:
              tg_urn = str(text.parent.parent.urn)
              wk_urn = str(text.parent.urn)
              txt_urn = str(text.urn)
              # If we need to generate a textgroup object
              if tg_urn not in inventory.textgroups:
                  self.classes["textgroup"](urn=tg_urn, parent=inventory)
              # If we need to generate a work object
              if wk_urn not in inventory.textgroups[tg_urn].works:
                  self.classes["work"](urn=wk_urn, parent=inventory.textgroups[tg_urn])
  
              if isinstance(text, CtsEditionMetadata):
                  x = self.classes["edition"](urn=txt_urn, parent=inventory.textgroups[tg_urn].works[wk_urn])
                  x.citation = text.citation
              elif isinstance(text, CtsTranslationMetadata):
                  x = self.classes["translation"](urn=txt_urn, parent=inventory.textgroups[tg_urn].works[wk_urn], lang=text.lang)
                  x.citation = text.citation
              elif isinstance(text, CtsCommentaryMetadata):
                  x = self.classes["commentary"](urn=txt_urn, parent=inventory.textgroups[tg_urn].works[wk_urn], lang=text.lang)
                  x.citation = text.citation
  
          return inventory[objectId]