fuddl / wd

a browser extension for wikidata
https://wikidata.org/wiki/Wikidata:Tools/Wikidata_for_Firefox
GNU General Public License v3.0
36 stars 6 forks source link

Add review score by when adding a tripadvisor ID #122

Closed RayBB closed 1 year ago

RayBB commented 1 year ago

I had to manually say that the review score it imported was by tripadvisor https://www.wikidata.org/w/index.php?title=Q6940515&action=history

Thanks again for maintaining this great project :)

fuddl commented 1 year ago

You mean to say, that the extension should add the qualifier review score by to any review score statement?

Unfortunatly the tripadvisor website does not hold information on who made the review score. I'm simply reading out the AggregateRating property:

The AggregateRating property of Chinatown San Francisco Chinatown Sctrutured data

In theory a website could include aggregate ratings from several other websites or sources. In practice I'm not aware anyone doing that.

Do you have suggestion based on what heuristic, the review score by qualifier should be added?

RayBB commented 1 year ago

I thought that the review score by would be TripAdvisor but I think you're saying that review score by shouldn't be trip advisor because it is an aggregated rating. I don't really know the topic so well but I've seen for example: https://www.wikidata.org/wiki/Q8694 has: review score: 3.4/5 (Average) review score by: Trustpilot number of reviews/ratings: 25,527 user review point in time: 20 March 2020

I'm not sure if there's a similar usage somewhere by Trip Advisor reviews but I think they're similar.

Anyway, I don't know too well how wikidata should be in regards to this. I only brought it up because there was a warning on the wikidata page that said review scores should have a review score by. If that's not the case here then I won't worry about it.

Cheers

fuddl commented 1 year ago

I thought that the review score by would be TripAdvisor but I think you're saying that review score by shouldn't be trip advisor because it is an aggregated rating.

No, that's not what I tried to say. Let me try it like this:

I try to avoid writing website specific code. I'd rather like a way for the extension to figure out everything by itself. In order to figure out what the value of review score by should be, It could be for instance like this:

  1. the website was matched by TripAdvisor ID (P3134)
  2. Tripadvisor (Q1770710) has Wikidata property (P1687) TripAdvisor ID (P3134)
  3. Tripadvisor (Q1770710) as has quality (P1552) user rating (Q80700183)

so we could assume Tripadvisor (Q1770710) might be a good value for the review score by qualifier, If we find AggregateRatings on this website.

If we follow this procedure, other websites like Trustpilot and IMDB as well as websites I don't personally know and that don't exist yet will be able to provide a value for review score by.

fuddl commented 1 year ago

@RayBB or here is a much simpler idea: If the rating was found on one of these websites the review score by property will be set to the corresponding item. How's that?

RayBB commented 1 year ago

That seems pretty reasonable to me!

fuddl commented 1 year ago

@RayBB should work on tripadvisor. If it doesn't work on other sites, make sure to add at least one statement with review score by property pointing to the site's item. Reopen if problems occour.

RayBB commented 1 year ago

Working very well. Thanks! :)