Skip to content

Commit

Permalink
fix: guarantee iri for every institution
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Aug 21, 2023
1 parent f4d026b commit 862b708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osf/metadata/osf_gathering.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,8 @@ def gather_affiliated_institutions(focus):
institution_iri = rdflib.URIRef(osf_institution.ror_uri)
elif osf_institution.identifier_domain: # if not ROR, at least URI
institution_iri = rdflib.URIRef(osf_institution.identifier_domain)
else: # fallback to a blank node
institution_iri = rdflib.BNode()
else: # fallback to a url on osf
institution_iri = rdflib.URIRef(osf_institution.absolute_url)
yield (OSF.affiliation, institution_iri)
yield (institution_iri, RDF.type, DCTERMS.Agent)
yield (institution_iri, RDF.type, FOAF.Organization)
Expand Down

0 comments on commit 862b708

Please sign in to comment.