validator.modules.utils_graph
Util functions related to graphs.
Module Contents
Functions
|
Safely load graph from file to working memory using arguments provided by the user, which are the file path and (optionally) the file type. |
- validator.modules.utils_graph.load_graph_safely(ontology_file, file_format='not_provided')
Safely load graph from file to working memory using arguments provided by the user, which are the file path and (optionally) the file type.
- Parameters:
-
ontology_file (str) – Path to the ontology file to be loaded into the working memory.
file_format (str) – Optional argument. Format of the file to be loaded.
- Returns:
RDFLib graph loaded as object.
- Return type:
Graph