Skip to content

Commit

Permalink
stop putting osfmap types on legacy data
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Aug 15, 2023
1 parent 0b8b5df commit fd596fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion trove/derive/sharev2_elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def deriver_iri() -> str:
# abstract method from IndexcardDeriver
def should_skip(self) -> bool:
_allowed_focustype_iris = {
SHAREv2.AbstractCreativeWork,
SHAREv2.CreativeWork,
OSFMAP.Project,
OSFMAP.ProjectComponent,
OSFMAP.Registration,
Expand Down
14 changes: 0 additions & 14 deletions trove/extract/legacy_sharev2.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,20 +190,6 @@ def _focustype_iris(mnode: MutableNode) -> typing.Iterable[str]:
}
for _typename in _typenames:
yield SHAREv2[_typename]
if 'Preprint' in _typenames:
yield OSFMAP.Preprint
if 'Project' in _typenames:
if _has_parent(mnode):
yield OSFMAP.ProjectComponent
else:
yield OSFMAP.Project
if 'Registration' in _typenames:
if _has_parent(mnode):
yield OSFMAP.RegistrationComponent
else:
yield OSFMAP.Registration
if 'Agent' in _typenames:
yield DCTERMS.Agent


def _agentwork_relation_iri(agentwork_relation: MutableNode):
Expand Down

0 comments on commit fd596fb

Please sign in to comment.