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
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
class_name | str | <optional> | Schema.ALL_CLASSES | The class name to load, or Schema.ALL_CLASSES to load every non-base class found across all datasets. |
from_dir_path | Union[str, Path] | <optional> | '' | Directory containing <ClassName>.json files. |
file_path | Union[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