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

Feature: schema.org (Rating & AggregateRating) #16

Closed
Metis77 opened this issue Aug 31, 2023 · 5 comments
Closed

Feature: schema.org (Rating & AggregateRating) #16

Metis77 opened this issue Aug 31, 2023 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed stale Outdated issues
Milestone

Comments

@Metis77
Copy link

Metis77 commented Aug 31, 2023

Is there any way to generate an aggregated ratings view?

@zoglo
Copy link
Member

zoglo commented Sep 11, 2023

@Metis77
There is no way to generate an aggregated ratings view as of now.
It was requested in this issue: oveleon/contao-google-recommendation-bundle#4.

We did not plan to add one right now, but you are welcome to open a pull request if you would like to add it.

@zoglo zoglo added enhancement New feature or request help wanted Extra attention is needed labels Sep 11, 2023
@zoglo zoglo removed their assignment Sep 11, 2023
@Metis77
Copy link
Author

Metis77 commented Sep 11, 2023

I prepared a template for us, that I could contribute of course.
But as the aggregated items needs to be related to another item (product, organization, ...) I am not sure, if a generic solution is possible.

@Metis77 Metis77 closed this as completed Sep 11, 2023
@zoglo
Copy link
Member

zoglo commented Sep 11, 2023

@Metis77 They could be related to the recommendation archive, couldn't it?
Or are we talking about something similar to a product review?

@doishub added an auto-item feature that makes product ratings possible since version 1.4.0 via the auto item parameter. https://github.com/oveleon/contao-recommendation-bundle/releases/tag/1.4.0

-> 80dc9b7

@zoglo zoglo reopened this Sep 11, 2023
@Metis77
Copy link
Author

Metis77 commented Sep 11, 2023

Aggregated ratings need to relate to item (thing) that is being reviewed/rated:
https://schema.org/AggregateRating

Those things can be anything:
CreativeWork
Event
Intangible
MedicalEntity
Organization
Person
Place
Product
...

therefore I dont think a generic solution is possible.

In our specific case I made the rating relate to a product, which could look like this:

{
  "@context": "http://schema.org/",
  "@graph": [
    {
      "@type": "Product",
      "name": "Granvogl - Spezialist für bedrucktes Porzellan& Glas",
      "description": "Bearbeitung hochwertiger Produkte aus Porzellan, Glas oder Edelstahl",
      "image": "https://granvogl.com/files/theme/img/PNG/logo_blue.png",
      "sku": "0000",
      "mpn": "0000",
      "brand": {
        "@type": "Brand",
        "name": "Granvogl"
      },
      "offers": {
        "@type": "Offer",
        "availability": "https://schema.org/InStock",
        "price": "10.00",
        "priceCurrency": "EUR",
        "url": "https://granvogl.com/Produkte"
      },
      "review": {
        "@type": "Review",
        "author": {
          "@type": "Person",
          "name": "Anonym"
        }
      },
      "aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "5",
        "bestRating": "5",
        "ratingCount": "51"
      }
    }
  ]
}

Relating to an event or organization would look totally differen.
So I think there is no generic solution

@zoglo zoglo changed the title Aggregated Ratings Feature: schema.org (Rating &AggregateRating) Nov 16, 2023
@zoglo
Copy link
Member

zoglo commented Nov 16, 2023

See:

My approach for ratings would be implementing it via addSchemaOrg and create a new module for aggregated ratings that allows the usage of an archive.

@zoglo zoglo self-assigned this Nov 16, 2023
@zoglo zoglo added this to the 1.5 milestone Nov 16, 2023
@zoglo zoglo changed the title Feature: schema.org (Rating &AggregateRating) Feature: schema.org (Rating & AggregateRating) Nov 16, 2023
@zoglo zoglo removed their assignment Apr 5, 2024
@zoglo zoglo added the stale Outdated issues label Apr 5, 2024
@zoglo zoglo closed this as completed Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed stale Outdated issues
Projects
None yet
Development

No branches or pull requests

2 participants