schema.org

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 do I relate Job (jobTitle) to Organization (worksFor) in Schema.org markup?

依然范特西╮ 提交于 2021-02-07 06:08:20
问题 Under a Person schema, I want to associate each job title with its respective organization. This is in a resume-like setting, so there are many jobs and many organizations. Here's an actual example of some code from my project (content clipped + changed): <div itemscope itemtype="http://schema.org/Person"> … <p><!--list of jobs--> <span itemprop="jobTitle">Job 1</span>, <span itemprop="jobTitle">Job 2</span>, and <span itemprop="jobTitle">Job 3</span> </p> <p><!--list of places worked for-->

How do I relate Job (jobTitle) to Organization (worksFor) in Schema.org markup?

会有一股神秘感。 提交于 2021-02-07 06:05:37
问题 Under a Person schema, I want to associate each job title with its respective organization. This is in a resume-like setting, so there are many jobs and many organizations. Here's an actual example of some code from my project (content clipped + changed): <div itemscope itemtype="http://schema.org/Person"> … <p><!--list of jobs--> <span itemprop="jobTitle">Job 1</span>, <span itemprop="jobTitle">Job 2</span>, and <span itemprop="jobTitle">Job 3</span> </p> <p><!--list of places worked for-->

How do I relate Job (jobTitle) to Organization (worksFor) in Schema.org markup?

不羁岁月 提交于 2021-02-07 06:03:03
问题 Under a Person schema, I want to associate each job title with its respective organization. This is in a resume-like setting, so there are many jobs and many organizations. Here's an actual example of some code from my project (content clipped + changed): <div itemscope itemtype="http://schema.org/Person"> … <p><!--list of jobs--> <span itemprop="jobTitle">Job 1</span>, <span itemprop="jobTitle">Job 2</span>, and <span itemprop="jobTitle">Job 3</span> </p> <p><!--list of places worked for-->

Node 如何在 Controller 层进行数据校验

倖福魔咒の 提交于 2020-09-26 12:19:52
幽默风趣的后端程序员一般自嘲为 CURD Boy。CURD, 也就是对某一存储资源的增删改查,这完全是面向数据编程啊。 真好呀,面向数据编程,往往会对业务理解地更加透彻,从而写出更高质量的代码,造出更少的 BUG。既然是面向数据编程那更需要避免脏数据的出现,加强数据校验。否则,难道要相信前端的数据校验吗,毕竟前端数据校验直达用户,是为了 UI 层更友好的用户反馈。 数据校验层 后端由于重业务逻辑以及待处理各种数据,以致于分成各种各样的层级,以我经历过的后端项目就有分为 Controller、Service、Model、Helper、Entity 等各种命名的层,五花八门。但这里肯定有一个层称为 Controller,站在后端最上层直接接收客户端传输数据。 由于 Controller 层是服务器端中与客户端数据交互的最顶层,秉承着 Fail Fast的原则,肩负着数据过滤器的功能,对于不合法数据直接打回去,如同秦琼与尉迟恭门神般威严。 数据校验同时衍生了一个半文档化的副产品,你只需要看一眼数据校验层,便知道要传哪些字段,都是些什么格式。 以下都是常见的数据校验,本文讲述如何对它们进行校验: required/optional 基本的数据校验,如 number、string、timestamp 及值需要满足的条件 复杂的数据校验,如 IP、手机号、邮箱与域名 const body =

创建第一个AMP页面【英译AMP】

假装没事ソ 提交于 2020-08-10 16:27:38
想创建您的第一个AMP页面又不知道如何开始?在本教程中,您将学习如何创建一个基本的AMP HTML页面,如何对其进行设置并验证它是否与AMP兼容,以及如何为发布和分发做好准备。 Create your first AMP page Not sure how to get started? In this tutorial, you’ll learn how to create a basic AMP HTML page, how to stage it and validate that it’s AMP compliant, and finally how to get it ready for publication and distribution. 下面的代码是一个不错的amp样板,可以做为学习的开始。复制并将其保存到扩展名为.html的文件中。 <!doctype html> <html amp lang="en"> <head> <meta charset="utf-8"> <script async src="https://cdn.ampproject.org/v0.js"></script> <title>Hello, AMPs</title> <link rel="canonical" href="https://amp.dev/documentation

Schema.org for category page that lists articles

笑着哭i 提交于 2020-05-28 06:48:21
问题 I'm tagging my website with Microdata and questionning myself about tagging article's listing. On category page I got a a big article which is tagged but I don't know if I should also tagged the listing. <article itemscope itemtype="http://schema.org/NewsArticle" itemref="author publisher"> <header class="entry-header"> <h3 class="entry-title" itemprop="headline"><a href="/article1" rel="bookmark">article 1/a></h3> <link itemprop="sameAs mainEntityOfPage" href=/article1"> </header> <div> <a

Schema.org and object hierarchy

好久不见. 提交于 2020-02-25 07:00:46
问题 Actually I have a lack of understanding of how Schema.org objects are "composed" out of the given specification. Unfortunately I found no clear explanation so far. Let’s take the JSON-LD example given at https://schema.org/SoldOut. In "Example 1" we have given a property offers of type Offer . Within the only Offer , there is a price property specified ("13.00"). But if I look at the specification of object Offer given at https://schema.org/Offer there is no price property specified at all.

Schema.org and object hierarchy

有些话、适合烂在心里 提交于 2020-02-25 07:00:07
问题 Actually I have a lack of understanding of how Schema.org objects are "composed" out of the given specification. Unfortunately I found no clear explanation so far. Let’s take the JSON-LD example given at https://schema.org/SoldOut. In "Example 1" we have given a property offers of type Offer . Within the only Offer , there is a price property specified ("13.00"). But if I look at the specification of object Offer given at https://schema.org/Offer there is no price property specified at all.