Skip to content

Commit

Permalink
fix: archivedAt in metadata should be uri-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Aug 23, 2023
1 parent 5bda545 commit 3e24a20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osf/metadata/osf_gathering.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
checksum_iri,
format_dcterms_extent,
without_namespace,
smells_like_iri,
)
from osf.utils import workflows as osfworkflows
from osf.utils.outcomes import ArtifactTypes
Expand Down Expand Up @@ -909,7 +910,8 @@ def gather_user_basics(focus):
focustype_iris=[OSF.Registration]
)
def gather_ia_url(focus):
yield (OSF.archivedAt, focus.dbmodel.ia_url)
if smells_like_iri(focus.dbmodel.ia_url):
yield (OSF.archivedAt, rdflib.URIRef(focus.dbmodel.ia_url))


@gather.er(
Expand Down

0 comments on commit 3e24a20

Please sign in to comment.