ruff fix
This commit is contained in:
parent
6c576883b9
commit
6d55da00af
2 changed files with 13 additions and 7 deletions
|
|
@ -39,7 +39,9 @@ class RDFLibOntologyResolver(BaseOntologyResolver):
|
|||
elif isinstance(ontology_file, list):
|
||||
files_to_load = ontology_file
|
||||
else:
|
||||
raise ValueError(f"ontology_file must be a string, list of strings, or None. Got: {type(ontology_file)}")
|
||||
raise ValueError(
|
||||
f"ontology_file must be a string, list of strings, or None. Got: {type(ontology_file)}"
|
||||
)
|
||||
|
||||
if files_to_load:
|
||||
self.graph = Graph()
|
||||
|
|
@ -56,12 +58,16 @@ class RDFLibOntologyResolver(BaseOntologyResolver):
|
|||
)
|
||||
|
||||
if not loaded_files:
|
||||
logger.info("No valid ontology files found. No owl ontology will be attached to the graph.")
|
||||
logger.info(
|
||||
"No valid ontology files found. No owl ontology will be attached to the graph."
|
||||
)
|
||||
self.graph = None
|
||||
else:
|
||||
logger.info("Total ontology files loaded: %d", len(loaded_files))
|
||||
else:
|
||||
logger.info("No ontology file provided. No owl ontology will be attached to the graph.")
|
||||
logger.info(
|
||||
"No ontology file provided. No owl ontology will be attached to the graph."
|
||||
)
|
||||
self.graph = None
|
||||
|
||||
self.build_lookup()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue