Skip to content

Commit

Permalink
rm retrieve schema specialized call after extension of delta's retrie…
Browse files Browse the repository at this point in the history
…ve resource endpoint
  • Loading branch information
ssssarah committed Aug 15, 2024
1 parent 9e5ce92 commit fdde9fd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions kgforge/specializations/models/rdf/store_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,11 @@ def recursive_resolve(self, context: Union[Dict, List, str]) -> Dict:
return document

def load_resource_graph_from_source(self, graph_id: str, schema_id: str) -> Graph:

try:
schema_resource = self.context_store.retrieve_schema(schema_id)
except RetrievalError as e:
try:
schema_resource = self.context_store.retrieve(schema_id, cross_bucket=False, version=None)
except RetrievalError as e2:
raise ValueError(f"Failed to retrieve {schema_id}: {str(e2)}") from e2
schema_resource = self.context_store.retrieve(schema_id, cross_bucket=False, version=None)
except RetrievalError as e2:
raise ValueError(f"Failed to retrieve {schema_id}: {str(e2)}") from e2

json_dict = as_jsonld(
schema_resource,
Expand Down

0 comments on commit fdde9fd

Please sign in to comment.