RDFa schema.org Course issues on Google Search Console
Bug Report
Problematic Behavior The Google Search Console complains about missing some information.
Errors / problems:
- [ ] Missing field 'offers'
- [ ] Missing field 'hasCourseInstance'
- [ ] Either 'courseWorkload' or 'courseSchedule' should be specified (in 'hasCourseInstance')
Using https://search.google.com/test/rich-results/result online tool to validate and view the details of RDFa fields crawled by Google.
Expected behavior/code Missing the courseSchedule https://schema.org/CourseInstance or a courseWorkload.
CourseSchedule
Testing a different MOOC platform using course page link on https://search.google.com/test/rich-results/result:
it shows CourseSchedule example data.
offers
Testing a different MOOC platform using course page link on https://search.google.com/test/rich-results/result:
It shows an offers example data.
Missing field hasCourseInstance The archived couse pages didn't contains a hasCourseInstance tag.
Steps to Reproduce Use https://search.google.com/test/rich-results/result tool.
Google recommends the use of JSON-LD instead of using RDFa, reference: https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data
I also think that generating this information on python would be easier than managing it on tags at the middle of the page. But this change would be a major change.
Currently we still have issues on the 'offers'. After the merge of https://github.com/openfun/richie/pull/2549 then we just need to fix the 'offers'.