openfun / richie

:pencil: An opensource CMS to build education portals
https://richie.education
MIT License
263 stars 85 forks source link

RDFa schema.org Course issues on Google Search Console #2444

Open igobranco opened 4 months ago

igobranco commented 4 months ago

Bug Report

Problematic Behavior The Google Search Console complains about missing some information.

image

Errors / problems:

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. image

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. image

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.

igobranco commented 4 months ago

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.