Skip to content

Commit

Permalink
stop mis-mapping dateWithdrawn
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Aug 11, 2023
1 parent 7679de6 commit 97690b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trove/extract/legacy_sharev2.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def _gather_work(focus, *, mnode, source_config):
yield (DCTERMS.conformsTo, frozenset((
(FOAF.name, primitive_rdf.text(mnode['registration_type'])),
)))
yield (OSFMAP.dateWithdrawn, primitive_rdf.text(mnode['withdrawn'])) # TODO: is boolean, not date
if mnode['withdrawn']:
yield (OSFMAP.dateWithdrawn, _date_or_none(mnode['date_updated']))
yield (OSFMAP.withdrawalJustification, primitive_rdf.text(mnode['justification'])) # TODO: not in OSFMAP
for _tag in mnode['tags']:
yield (OSFMAP.keyword, primitive_rdf.text(_tag['name']))
Expand Down

0 comments on commit 97690b8

Please sign in to comment.