docs: def _load_data(self, reset=False):
          ''' loads the RDF/turtle application data to the triplestore
  
          args:
              reset(bool): True will delete the definition dataset and reload
                      all of the datafiles.
          '''
  
          log = logging.getLogger("%s.%s" % (self.log_name,
                                             inspect.stack()[0][3]))
          log.setLevel(self.log_level)
          for attr, obj in self.datafile_obj.items():
              if reset or obj['latest_mod'] > obj['last_json_mod']:
                  conn = obj['conn']
                  sparql = "DROP ALL;"
                  if os.path.isdir(obj['cache_path']):
                      shutil.rmtree(obj['cache_path'], ignore_errors=True)
                  os.makedirs(obj['cache_path'])
                  drop_extensions = conn.update_query(sparql)
                  rdf_resource_templates = []
                  rdf_data = []
                  for path, files in obj['files'].items():
                      for file in files:
                          file_path = os.path.join(path, file)
                          # data = open(file_path).read()
                          # log.info(" uploading file: %s | namespace: %s",
                          #          file,
                          #          conn.namespace)
                          # data_type = file.split('.')[-1]
                          result = conn.load_data(file_path,
                                                  #datatype=data_type,
                                                  graph=str(getattr(NSM.kdr,
                                                                    file)),
                                                  is_file=True)
                          if result.status_code > 399:
                              raise ValueError("Cannot load '{}' into {}".format(
                                  file_name, conn))