add a function to print all kgtk file names
@@ -171,3 +171,15 @@ class ConfigureKGTK(object):
kypher_command += " --limit 3"
print(kypher_command)
print(subprocess.getoutput(kypher_command))
+
+ def print_kgtk_file_names(self, file_name=None):
+ if file_name is not None:
+ if file_name not in self.graph_files:
+ print(f"Unknown file name: {file_name}. Here is a list of known file names")
+ self.print_kgtk_file_names()
+ else:
+ print(f"{file_name}: {self.graph_files[file_name]}")
+ else:
+ print("Printing a list of known KGTK file names...")
+ for key in self.graph_files:
+ print(f"{key}: {self.graph_files[key]}")
