:py:mod:`validator.modules.utils_graph` ======================================= .. py:module:: validator.modules.utils_graph .. autoapi-nested-parse:: Util functions related to graphs. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: validator.modules.utils_graph.load_graph_safely .. py:function:: 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. :param ontology_file: Path to the ontology file to be loaded into the working memory. :type ontology_file: str :param file_format: Optional argument. Format of the file to be loaded. :type file_format: str :return: RDFLib graph loaded as object. :rtype: Graph