Skip to content

Commit

Permalink
Compress isni in relations as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Feb 5, 2024
1 parent 8364132 commit 7ef4314
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/indra_cogex/sources/wikidata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ def get_relations(self) -> Iterable[Relation]:
source_ns="NLM",
source_id=nlm_id,
target_ns="ISNI",
target_id=publisher_isni,
# Strip the whitespace inside the ISNI
target_id=publisher_isni.replace(" ", ""),
rel_type="published_by",
data={},
)
Expand Down

0 comments on commit 7ef4314

Please sign in to comment.