json-ld

Implement structured schema in HTML website

╄→尐↘猪︶ㄣ 提交于 2021-02-20 02:55:08
问题 I am implementing structured data (schema.org) for my website. I am stuck at putting in ratingValue and reviewCount , everything else I am able to put in dynamically. "review": [ { "@type": "Review", "reviewRating":{ "@type": "Rating", "ratingValue": "4", "bestRating": "5" }, "author":{ "@type": "Organization", "name": "xyz" } } ], "aggregateRating": { "@type": "AggregateRating", "ratingValue": "3.7", "reviewCount": "15" } Where I can put reviewCount and ratingValue ? We are not asking our

Including “siesta” in Schema.org OpeningHoursSpecification in JSON-LD

拈花ヽ惹草 提交于 2021-02-10 05:49:31
问题 I'm using Schema.org OpeningHoursSpecification in JSON-LD in such a way: [{"@type":"OpeningHoursSpecification","dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"],"open":"08:00","closes":"20:00"},{"@type":"OpeningHoursSpecification","dayOfWeek":["Saturday"],"open":"08:00","closes":"14:00"},{"@type":"OpeningHoursSpecification","dayOfWeek":["Sunday"],"open":"00:00","closes":"00:00"}] I couldn't find any example for adapting this specification to include "siesta" - a situation when

How to use Google Tag Manager with Multiple Schema Product reviews using JSON-LD and Variables

可紊 提交于 2021-02-08 20:52:49
问题 So I'm using Google Tag Manager to add Schema JSON-LD Product reviews to some pages and I'm stuck and unable to find any resources on the issue. The issue that I'm having is how can I tell GTM there are multiple elements and they should be repeated in JSON-LD each with their unique values. The method I'm using to get the values is using CSS selectors which are not unique because on some pages they can appear 20 times and on others 30 times. The variables are obtained by Google GTM. Using

How to use Google Tag Manager with Multiple Schema Product reviews using JSON-LD and Variables

荒凉一梦 提交于 2021-02-08 20:51:09
问题 So I'm using Google Tag Manager to add Schema JSON-LD Product reviews to some pages and I'm stuck and unable to find any resources on the issue. The issue that I'm having is how can I tell GTM there are multiple elements and they should be repeated in JSON-LD each with their unique values. The method I'm using to get the values is using CSS selectors which are not unique because on some pages they can appear 20 times and on others 30 times. The variables are obtained by Google GTM. Using

application/ld+json and javascript data exchange

拜拜、爱过 提交于 2021-01-27 17:26:53
问题 I have some jQuery code which constructs an array called myList[] . This array appears in the console like this: ["2 items", "3items", "so on"] , so this part goes well. <script type="text/javascript"> var myList = []; function buld myList(){ ... } I need to pass myList[] to the application/ld+json like <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Recipe", "recipeIngredients": myList, //this one doesn't work } .. How can I pass the values from javascript

application/ld+json and javascript data exchange

拥有回忆 提交于 2021-01-27 17:24:02
问题 I have some jQuery code which constructs an array called myList[] . This array appears in the console like this: ["2 items", "3items", "so on"] , so this part goes well. <script type="text/javascript"> var myList = []; function buld myList(){ ... } I need to pass myList[] to the application/ld+json like <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Recipe", "recipeIngredients": myList, //this one doesn't work } .. How can I pass the values from javascript

Adding JSON-LD with JavaScript

坚强是说给别人听的谎言 提交于 2021-01-27 05:27:26
问题 I am trying to implement structure data using JSON-LD. What I am doing is dynamically get content using jQuery and making JSON format and appending inside the head element. <script id="dynamicJSONLD"></script> $(document).ready(function(){ var product_name = $(.product-pg .product-name).text(); data = { "@context": "https://schema.org", "@type": "Product", "url": "https://www.example.com/productone", "name": product_name }; //creating the script element and storing the JSON-LD var script =

How to import JSON-LD into Virtuoso

孤者浪人 提交于 2020-08-08 12:01:59
问题 I'm using Virtuoso at AWS. I want to get JSON-LD Data using SPARQL query. Because I'm making opendata that is JSON-LD Content-type. But, I can not import JSON-LD file into Virtuoso Conductor. So, do you know how to import JSON-LD into Virtuoso? 回答1: To import JSON-LD into Virtuoso you need to install the Virtuoso Sponger Middleware module. Once installed, you can use Sponger pragmas and/or URL patterns to facilitate imports from documents comprised of JSON-LD content. SPARQL pragma example:

How to import JSON-LD into Virtuoso

£可爱£侵袭症+ 提交于 2020-08-08 12:01:47
问题 I'm using Virtuoso at AWS. I want to get JSON-LD Data using SPARQL query. Because I'm making opendata that is JSON-LD Content-type. But, I can not import JSON-LD file into Virtuoso Conductor. So, do you know how to import JSON-LD into Virtuoso? 回答1: To import JSON-LD into Virtuoso you need to install the Virtuoso Sponger Middleware module. Once installed, you can use Sponger pragmas and/or URL patterns to facilitate imports from documents comprised of JSON-LD content. SPARQL pragma example:

How to import JSON-LD into Virtuoso

懵懂的女人 提交于 2020-08-08 12:01:38
问题 I'm using Virtuoso at AWS. I want to get JSON-LD Data using SPARQL query. Because I'm making opendata that is JSON-LD Content-type. But, I can not import JSON-LD file into Virtuoso Conductor. So, do you know how to import JSON-LD into Virtuoso? 回答1: To import JSON-LD into Virtuoso you need to install the Virtuoso Sponger Middleware module. Once installed, you can use Sponger pragmas and/or URL patterns to facilitate imports from documents comprised of JSON-LD content. SPARQL pragma example: