docs: def export(self, nidm_version, export_dir, prepend_path):
          """
          Copy file over of export_dir and create corresponding triples
          """
          if self.path is not None:
              if export_dir is not None:
                  # Copy file only if export_dir is not None
                  new_file = os.path.join(export_dir, self.filename)
                  if not self.path == new_file:
                      if prepend_path.endswith('.zip'):
                          with zipfile.ZipFile(prepend_path) as z:
                              extracted = z.extract(str(self.path), export_dir)
                              shutil.move(extracted, new_file)
                      else:
                          if prepend_path:
                              file_copied = os.path.join(prepend_path, self.path)
                          else:
                              file_copied = self.path
                          shutil.copy(file_copied, new_file)
  
                      if self.temporary:
                          os.remove(self.path)
              else:
                  new_file = self.path
  
          if nidm_version['num'] in ["1.0.0", "1.1.0"]:
              loc = Identifier("file://./" + self.filename)
          else:
              loc = Identifier(self.filename)
  
          self.add_attributes([(NFO['fileName'], self.filename)])
  
          if export_dir:
              self.add_attributes([(PROV['atLocation'], loc)])
  
          if nidm_version['num'] in ("1.0.0", "1.1.0"):
              path, org_filename = os.path.split(self.path)
              if (org_filename is not self.filename) \
                      and (not self.temporary):
                  self.add_attributes([(NFO['fileName'], org_filename)])
  
          if self.is_nifti():
              if self.sha is None:
                  self.sha = self.get_sha_sum(new_file)
              if self.fmt is None:
                  self.fmt = "image/nifti"
  
              self.add_attributes([
                  (CRYPTO['sha512'], self.sha),
                  (DCT['format'], self.fmt)
              ])