code: def activity_has_provenance(self, activity, prov_ids):
          # type: (str, List[Identifier]) -> None
          
          # NOTE: The below will only work if the corresponding metadata/provenance arcp URI
          # is a pre-registered namespace in the PROV Document
          attribs = [(PROV["has_provenance"], prov_id) for prov_id in prov_ids]
          self.document.activity(activity, other_attributes=attribs)
          # Tip: we can't use https://www.w3.org/TR/prov-links/#term-mention
          # as prov:mentionOf() is only for entities, not activities
          uris = [i.uri for i in prov_ids]
          self.research_object.add_annotation(activity, uris, PROV["has_provenance"].uri)
docs: Add http://www.w3.org/TR/prov-aq/ relations to nested PROV files.