Update RDFLibOntologyResolver.py
This commit is contained in:
parent
61e47c0b2f
commit
6c576883b9
1 changed files with 0 additions and 2 deletions
|
|
@ -32,7 +32,6 @@ class RDFLibOntologyResolver(BaseOntologyResolver):
|
||||||
super().__init__(matching_strategy)
|
super().__init__(matching_strategy)
|
||||||
self.ontology_file = ontology_file
|
self.ontology_file = ontology_file
|
||||||
try:
|
try:
|
||||||
# Convert single file to list for uniform processing
|
|
||||||
files_to_load = []
|
files_to_load = []
|
||||||
if ontology_file is not None:
|
if ontology_file is not None:
|
||||||
if isinstance(ontology_file, str):
|
if isinstance(ontology_file, str):
|
||||||
|
|
@ -42,7 +41,6 @@ class RDFLibOntologyResolver(BaseOntologyResolver):
|
||||||
else:
|
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)}")
|
||||||
|
|
||||||
# Load ontology files into a single graph
|
|
||||||
if files_to_load:
|
if files_to_load:
|
||||||
self.graph = Graph()
|
self.graph = Graph()
|
||||||
loaded_files = []
|
loaded_files = []
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue