File Utilities
create_path(path)
Create a path recursively.
Source code in src/deeponto/utils/file_utils.py
29 30 31 |
|
save_file(obj, save_path, sort_keys=False)
Save an object to a certain format.
Source code in src/deeponto/utils/file_utils.py
34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
load_file(save_path)
Load an object of a certain format.
Source code in src/deeponto/utils/file_utils.py
49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
copy2(source, destination)
Copy a file from source to destination.
Source code in src/deeponto/utils/file_utils.py
64 65 66 67 68 69 70 |
|
read_table(table_file_path)
Read csv
or tsv
file as pandas dataframe without treating "NULL"
, "null"
, and "n/a"
as an empty string.
Source code in src/deeponto/utils/file_utils.py
73 74 75 76 77 78 |
|
read_jsonl(file_path)
Read .jsonl
file (list of json) introduced in the BLINK project.
Source code in src/deeponto/utils/file_utils.py
81 82 83 84 85 86 87 88 89 90 91 92 |
|
read_oaei_mappings(rdf_file)
To read mapping files in the OAEI rdf format.
Source code in src/deeponto/utils/file_utils.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
|
run_jar(jar_command, timeout=3600)
Run jar command using subprocess.
Source code in src/deeponto/utils/file_utils.py
130 131 132 133 134 135 136 137 138 139 |
|
Last update:
February 1, 2023
Created: January 14, 2023
Created: January 14, 2023
GitHub: