Skip to content

Commit bd67d1b

Browse files
committed
resource id as str instead of str
1 parent 3fe86ad commit bd67d1b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

kgforge/specializations/models/rdf/rdf_model_service_from_store.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def recursive_resolve(self, context: Union[Dict, List, str]) -> Dict:
136136
document.update(context)
137137
return document
138138

139-
def _load_shape(self, resource_id: URIRef):
139+
def _load_shape(self, resource_id: str):
140140
if resource_id not in self._imported:
141141
try:
142142
shape = self.context_store.retrieve(resource_id, version=None, cross_bucket=False)
@@ -162,12 +162,12 @@ def _load_and_get_type_shape(self, iri: URIRef) -> ShapeWrapper:
162162
try:
163163
return self._shapes_graph.lookup_shape_from_node(iri)
164164
except KeyError:
165-
shape_resource_id = self.shape_to_source[iri]
165+
shape_resource_id: str = self.shape_to_source[iri]
166166
self._load_shape_and_reload_shapes_graph(shape_resource_id)
167167
return self._shapes_graph.lookup_shape_from_node(iri)
168168

169-
def _load_shape_and_reload_shapes_graph(self, iri: URIRef):
170-
self._load_shape(iri)
169+
def _load_shape_and_reload_shapes_graph(self, resource_id: str):
170+
self._load_shape(resource_id)
171171
# reloads the shapes graph
172172
self._shapes_graph = ShapesGraphWrapper(self._graph)
173173

0 commit comments

Comments
 (0)