Get in touch
Get in touch

Load data from JSON files into the DataGraphs project

load_data(class_name, from_dir_path, file_path) {dict}

Load data from JSON files into the DataGraphs project. Base classes (those with subclasses) are automatically skipped when loading all classes.
Properties
NameTypeAttributesDefaultDescription
class_namestr<optional>Schema.ALL_CLASSESThe class name to load, or Schema.ALL_CLASSES to load every non-base class found across all datasets.
from_dir_pathUnion[str, Path]<optional>''Directory containing <ClassName>.json files.
file_pathUnion[str, Path]<optional>''Explicit path to a single JSON file (used when loading a specific *class_name*).
Returns:
A dict with loaded and skipped counts.
Type
dict