code: def build_transgenic_lines(self):
          
          allen_namespaces = {
              'JAX': 'http://jaxmice.jax.org/strain/',
              'MMRRC': 'http://www.mmrrc.org/catalog/getSDS.jsp?mmrrc_id=',
              'AIBS': 'http://api.brain-map.org/api/v2/data/TransgenicLine/',
          }
          for prefix, iri in allen_namespaces.items():
              self.g.add_namespace(prefix, iri)
          for cell_line in self.neuron_data[:]:
              for tl in cell_line['donor']['transgenic_lines']:
                  _id = tl['stock_number'] if tl['stock_number'] else tl['id']
                  prefix = tl['transgenic_line_source_name']
                  line_type = tl['transgenic_line_type_name']
                  if prefix not in ['JAX', 'MMRRC', 'AIBS']:
                      continue
                  _class = prefix + ':' + str(_id)
                  self.g.add_class(_class)
                  self.g.add_trip(_class, 'rdfs:label', tl['name'])
                  self.g.add_trip(_class, 'definition:', tl['description'])
                  self.g.add_trip(_class, 'rdfs:subClassOf', 'ilxtr:transgenicLine')
                  self.g.add_trip(_class, 'ilxtr:hasTransgenicType', 'ilxtr:' + line_type + 'Line')
          self.g.write()
docs: init class     |  "transgenic_line_source_name":"stock_number" a Class
          add superClass |  rdfs:subClassOf ilxtr:transgenicLine
          add *order*    |  ilxtr:useObjectProperty ilxtr:<order>
          add name       |  rdfs:label "name"
          add def        |  definition: "description"
          add transtype  |  rdfs:hasTransgenicType "transgenic_line_type_name"