Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create a converter to convert the given standard from mooc [1] to lom [2] #4

Open
utnapischtim opened this issue Jan 19, 2022 · 1 comment

Comments

@utnapischtim
Copy link
Contributor

The MOOC platform defines a schema [1] to export the metadata. We have to create a converter to convert metadata described with this schema to LOM. This converter should be implemented with the visitor pattern like [3] and [4]. Start by implementing the [5] converter methods. Those methods should then look like "convert_image(self, value, record)". The real mapping will then be discussed

SideNote: don't use the @tc.typecheck decorator. this will be removed in the final version of this branch

[1] https://github.com/MOOChub/schema/
[2] https://en.wikipedia.org/wiki/Learning_object_metadata
[3] https://github.com/utnapischtim/invenio-rdm-pure/blob/9f46084341b86f1cd8a99064963cd215bbc98fc7/invenio_rdm_pure/converter.py#L16
[4] https://github.com/utnapischtim/invenio-rdm-pure/blob/9f46084341b86f1cd8a99064963cd215bbc98fc7/invenio_rdm_pure/converter.py#L44
[5] https://github.com/utnapischtim/invenio-rdm-pure/blob/9f46084341b86f1cd8a99064963cd215bbc98fc7/invenio_rdm_pure/converter.py#L48

@utnapischtim
Copy link
Contributor Author

utnapischtim commented Feb 7, 2022

mapping MOOC -> LOM

name -> general.title
courseCode
courseMode
abstract -> general.description[]
description -> general.description[]
languages -> general.language[]
startDate
availableUntil
endDate
image -> custom.thumbnail
video ->
instructors -> metametadata.contribute
learningobjectives -> educational.description
duration -> technical.duration
partnerInstitute -> metametadata.contribute
moocProvider
url -> technical.location
workload
courseLicenses -> rights.copyrightandotherrestrictions
access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant