Skip to content

Commit

Permalink
Merge pull request #299 from biolink/fix-get-all-prefixes-call
Browse files Browse the repository at this point in the history
Fix get all prefixes call
  • Loading branch information
sierra-moxon authored Jun 21, 2021
2 parents 68b5e0f + 9900b1d commit 7d8ad61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kgx/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ def get_all_prefixes(jsonld: Optional[Dict] = None) -> set:
if not jsonld:
jsonld = get_jsonld_context()
prefixes: Set = set(
k for k, v in jsonld.items()
if isinstance(v, str) or
(isinstance(v, dict) and v.setdefault('@prefix', False))
k for k, v in jsonld.items()
if isinstance(v, str) or
(isinstance(v, dict) and v.setdefault('@prefix', False))
) # @type: ignored
if 'biolink' not in prefixes:
prefixes.add('biolink')
Expand Down

0 comments on commit 7d8ad61

Please sign in to comment.