Review within Product or Product within Review? - schema.org

I'm trying to add structured data to reviews of third-party products. Think of the typical little blogger reviewing a camera she just bought, for example.
So the article is a review of a widely available product, with one rating provided solely by the author.
I don't understand if the main itemType should be Product or Review, with the other element nested inside (using the properties review or itemReviewed respecitvely).
I'd say the main type should be Review as the author is not the product manufacturer, but Google says this:
Refer clearly to a specific product or service by nesting the review within the markup of another schema.org type
I'm confused... and very thankful if anyone can shed some light!

On product page X -
Review writer - some person
Long Article is the reviewBody(reviewBody is a Review Property)
reviewRating = 4 of 5
Schema Example from this site:
https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fwww.techradar.com%2Fin%2Freviews%2Fasus-rog-strix-gl-10cs-gaming-desktop
<script type="application/ld+json">
{
"#type":"Product",
"name":"Asus ROG Strix GL 10CS gaming desktop review",
"image":"https://cdn.mos.cms.futurecdn.net/EbueaZpQR6PQFFHqVPfWJD.jpg",
"brand":"asus",
"mainEntityOfPage":{
"#type":"WebPage",
"#id":"https://www.techradar.com/in/reviews/asus-rog-strix-gl-10cs-gaming-desktop"
},
"url":"https://www.techradar.com/in/reviews/asus-rog-strix-gl-10cs-gaming-desktop",
"review":{
"#type":"Review",
"name":"Asus ROG Strix GL 10CS gaming desktop review",
"reviewBody":"Asus ROG Strix GL 10CS is an entry-level gaming desktop by the Taiwanese electronics maker. Made for enthusiasts, the GL 10CS is the first full tower CPU in the Strix series of products with a capacity of 27 liters. The gaming desktop packs in the latest 9th generation Intel processor coupled with NVIDIA’s RTX goodness for a great gaming experience at a budget. It’s upgradable and has illuminating RGB lighting spread across the front that gives the desktop a cosmetic touch. We spent some…",
"headline":"Asus ROG Strix GL 10CS gaming desktop review",
"alternativeHeadline":"Great gaming experience on a budget!",
"datePublished":"2019-08-30T12:22:47Z",
"keywords":[
"Asus ROG gaming desktop",
"newstrack",
"review",
"newstrack",
"review"
],
"thumbnailUrl":"https://cdn.mos.cms.futurecdn.net/EbueaZpQR6PQFFHqVPfWJD-320-80.jpg",
"creator":{
"#type":"Person",
"name":"Siddharth Chauhan"
},
"publisher":{
"#type":"Organization",
"name":"TechRadar",
"url":"https://www.techradar.com",
"logo":{
"#type":"ImageObject",
"url":"https://vanilla.futurecdn.net/techradar/media/img/techradar_logo.png",
"caption":"TechRadar logo"
}
},
"author":{
"#type":"Person",
"name":"Siddharth Chauhan"
},
"reviewRating":{
"#type":"Rating",
"ratingValue":"4",
"bestRating":"5"
}
},
"description":"Great gaming experience on a budget!",
"#context":"http://schema.org"
}
</script>

Your hunch is right. Look at the simple review example and you will see a review containing the item reviews.
Read the rest of your quoted sentence that continues with "or by". It relates to the scenario where the review contains the item reviewed.
or by using a schema.org type as a value for the itemReviewed
property.

Related

How to print Lao to thermal printer using bluetooth_thermal_printer library by Flutter

With this library it is fine printing A-Z English, when i change ticket.text"ABC" to ticket.text"ສະບາຍດີ" in Lao language -> then i got an error as screenshot below, there is other article i have been visited but since those seems to be high level explanation to me 'i still blind how does that work', it would be more informative if solution comes with example project, thanks in advance for your support here - i believe there is not only me stuck with this and i don't believe it is not possible to do that!
enter link description here

Amazon PA API5 - new product link structure for affiliates?

We have been Amazon's affiliate for a little while (not long) and we are now starting implementing PA API 5.0.
Up till now, we used to build our affiliate referral links to the products through our CMS following this structure below:
amazon.com/[product-slug]/dp/[ASIN-code]/ref=nosim&tag=[our-affiliate-tag-code]
(variables between square brackets)
The links that are being fed to us through the PA API 5.0 (via scratch pad for now), however, have a different structure:
amazon.com/dp/[ASIN-code]?tag=[our-affiliate-tag-code]&linkCode=osi&th=1&psc=1
The ASIN and our tag are still there, of course, but what about the other codes? What about the ref=nosim as opposed to the new linkCode=osi&th=1&psc=1 ???
Is the former URL structure still valid? Would it still assign the sale as a valid sale for keeping access to the API? Do we need to replace all our old links?
Please advise. Thanks,
David

Google Action Development using Python

I've been building an alexa apps of alexa using skills kit sdk, python and aws Lambda Functions but I'm new to developing google home apps. There are many sample projects on github but they all are on node.js. I'm a python developer so I need to build google home app using python and google cloud functions. Just like in Alexa, where there is a Developer portal and intent there matches the intent written on console portal using aws Lambda functions and we mapped both portals using Skill ID and arn #.
Just like, alexa's color skill kit using sdk sample (below link)
https://github.com/alexa/skill-sample-python-colorpicker/blob/master/lambda/py/lambda_function.py
Is there any sample code for it or anything one can help me with. It'll be highly appreciated.
There is currently no official Python library for Actions on Google. You may find unofficial ones.
You alternatively can just return JSON directly instead of using a library to wrap the JSON in easier to read methods.
For example, a simple response in Node.js:
conv.ask(new SimpleResponse({
speech: 'Howdy, this is GeekNum. I can tell you fun facts about almost any number, my favorite is 42. What number do you have in mind?',
text: 'Howdy! I can tell you fun facts about almost any number. What do you have in mind?',
}));
is equivalent to the following Dialogflow webhook JSON:
{
"payload": {
"google": {
"expectUserResponse": true,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Howdy! I can tell you fun facts about almost any number, like 42. What do you have in mind?",
"displayText": "Howdy! I can tell you fun facts about almost any number, like 42. What do you have in mind?"
}
}
]
}
}
}
}

Need Mulesoft Development Fundamentals training material

Does anyone have the Mulesoft Development Fundamentals course ppt?
This is the course link : https://training.mulesoft.com/instructor-led-training/mulesoftu-fundamentals
I had completed it, but I want to refer to the ppts once. The course content ppts..
Thanks,
Narasimhan.
goto this link : https://training.mulesoft.com/instructor-led-training/mulesoftu-fundamentals
this is an 8 weeks program and you can do certification and claim points from champions program

YUI3 autocomplete

I think I would like to make the switch from Scriptaculous to YUI. So, the first thing I am trying to do is an autocomplete feature on the front page of my application demo. Every single search I do for this, refers me to YUI2 examples and instructions. These use YAHOO objects instead of YUI objects, and I just don't trust that this is the right way to do it.
If I was already familiar with 2.x, it may not be too hard, but I'm coming from a different set of libraries. Does anyone have instructions how to implement an autocomplete feature using YUI 3? Any help would be appreciated.
Thanks, Dave
The official YUI 3 AutoComplete widget was released in YUI 3.3.0: http://developer.yahoo.com/yui/3/autocomplete/
Some initial work was done on AutoComplete in YUI 3. Due to resource issues, it was moved to the Gallery for the time being so implementers would have access to it until it is fully fleshed out, documented, and examples written for official release.
http://yuilibrary.com/gallery/show/autocomplete
A lot of the widgets haven't been ported from 2.x to 3.x yet. If you're really opposed to using YUI 2.x, you could probably port the widget yourself; YUI is on GitHub.
This is example of implementing YUI3 AutoComplete (with a bonus implementation of GAE autocomplete services for both XHR and JSONP style URLs).
Here's an example from Apache Roller using Y.DataSource.IO to retrieve data using JSON (I also include a testing line "ds2" using a local array, that I've since removed from the code.) As I understand, Y.DataSource.Get should be used instead if you're using JSONP.
This autocomplete is for the "tags" field that people use to type in 0 or more tags (topics) for a blog entry. It queries previously used tags for other blog entries as suggestions for the user, based on the user input (as the user types in more letters "b..a... etc., fewer items appear.) If helpful for understanding the sample, here's a sample of the JSON returned:
{ "prefix": "ba",
"weblog": "gmazza",
"tagcounts": [
{ "tag" : "bahamas", "count" : 1 },
{ "tag" : "baltimore", "count" : 3 },
{ "tag" : "baseball", "count" : 3 }]
}
My recommendation is to first get the autocomplete working with a local hardcoded array as the source (my ds2 in the example above.) Once done, then focus on getting the datasource operative and having the autocomplete correctly read from it instead of the array.