Skip to content

Commit

Permalink
Fix resolver context (#361)
Browse files Browse the repository at this point in the history
* Add model context

* Fix resolving store contex

* Clean line
  • Loading branch information
crisely09 authored Nov 28, 2023
1 parent bcc6b33 commit 758a887
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kgforge/core/forge.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ def prepare_resolver(config: Dict, store_config: Dict) -> Tuple[str, Resolver]:
"endpoint",
"token",
"bucket",
# "model_context",
"model",
"searchendpoints",
"vocabulary",
],
Expand Down
2 changes: 1 addition & 1 deletion kgforge/specializations/resolvers/store_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def validate_target(self, target):

def get_context(self, resolving_context, target, filters):
if not resolving_context:
context = self.sources[target].model_context if target in self.sources else None
context = self.sources[target].model_context() if target in self.sources else None
if not context and filters:
raise ValueError("No JSONLD context were provided. When resolving filters are set, a JSONLD context is needed.")

Expand Down

0 comments on commit 758a887

Please sign in to comment.