code: def _process_pubs(self, limit):
          
          if self.test_mode:
              graph = self.testgraph
          else:
              graph = self.graph
          model = Model(graph)
          line_counter = 0
  
          raw = '/'.join((self.rawdir, 'pub'))
          LOG.info("building labels for pubs")
          with open(raw, 'r') as f:
              f.readline()  # read the header row; skip
              filereader = csv.reader(f, delimiter='\t', quotechar='\"')
              for line in filereader:
                  (pub_id, title, volumetitle, volume, series_name, issue, pyear,
                   pages, miniref, type_id, is_obsolete, publisher, pubplace,
                   uniquename) = line
  # 2       12153979        1       2       FBst0000002     w[*]; betaTub60D[2] Kr[If-1]/CyO        10670
                  # if self.test_mode is True:
                  #     if int(object_key) not in self.test_keys.get('genotype'):
                  #         continue
  
                  pub_num = pub_id
                  pub_id = 'FlyBase:'+uniquename.strip()
                  self.idhash['publication'][pub_num] = pub_id
  
                  # TODO figure out the type of pub by type_id
                  if not re.match(r'(FBrf|multi)', uniquename):
                      continue
                  line_counter += 1
  
                  reference = Reference(graph, pub_id)
                  if title != '':
                      reference.setTitle(title)
                  if pyear != '':
                      reference.setYear(str(pyear))
                  if miniref != '':
                      reference.setShortCitation(miniref)
  
                  if not self.test_mode and limit is not None and line_counter > limit:
                      pass
                  else:
                      if self.test_mode and int(pub_num) not in self.test_keys['pub']:
                          continue
  
                      if is_obsolete == 't':
                          model.addDeprecatedIndividual(pub_id)
                      else:
                          reference.addRefToGraph()
          return
docs: Flybase publications.
  
          :param limit:
          :return: