我们可以为任何类型的实体制作结构化页面数据吗? [英] Can we make structured page data for any type of entities?
问题描述
我有一个植物护理(花卉、树木、蔬菜等)的百科全书网站.每个工厂都有一张环境要求表,例如:
I have an encyclopedia website for plants care (flowers, trees, vegetables etc.). Each plant has a table of environment requirements like:
每天需要多少光
how much light need per day
需要什么样的土壤
需要多少水分和水分
可以增长的温度范围
我可以制作结构化页面以在 Google 搜索上显示此表格吗?
Can I make an structured page to show this table on Google Search?
像这样:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Plant",
"plantCare": {"@type": "PlantCare","sun": "medium","soil": "alkaline soil - a mixture of leaf and forest soil","moisture": "slightly humid","temperature": "25 ° C"},"image": "http://nargil.ir/plant/images/plants/Euphorbia Pulcherrima.jpg","scientificName": "EUPHORBIA PULCHERRIMA","family": "EUPHORBIACEAE","genus": "EUPHORBIA ","native": "Mexsico"
}
</script>
推荐答案
没有针对此类事物(花、树、蔬菜等)的词汇.
There is no vocabulary for this type of thing (flowers, trees, vegetables, etc).
当然,您不能发明对象类型和属性.
Of course, you cannot invent object types and properties.
https://schema.org/Plant
(未找到返回 404).
(Return 404 Not Found).
选择与您的数据相关的最具体的模式(现在再次没有植物模式 - 模式的好主意 - 顺便说一下).https://schema.org/docs/full.html
Select the most specific schema related to your data (Again for now no schema for plants - nice idea for schema - by the way). https://schema.org/docs/full.html
另外,目前,谷歌不支持这个丰富的片段.
Also, for now, google not supporting this rich snippet.
http://www.productontology.org/
此服务提供约.300,000 种类型的精确定义扩展 schema.org 和 GoodRelations 的产品或服务电子商务标记标准,例如
This service provides ca. 300,000 precise definitions for types of product or services that extend the schema.org and GoodRelations standards for e-commerce markup, e.g.
苹果示例:
<script type='application/ld+json'>
{
"@context": "https://www.schema.org",
"@type": "product",
"additionalType": "http://www.productontology.org/id/Apple",
"name": "Apple",
"category": "Fruits",
"image": "http://www.example.com/apple.jpg",
"description": "An apple is a sweet, edible fruit produced by an apple tree (Malus Domestica)."
}
</script>
schema.org Github 问题相关:
schema.org 中的 Fruits 词汇是什么以及如何实现它?"
请注意,您始终可以使用来自 www.productontology.org 的类型对任何植物或物种进行更精确的标记.www.productontology.org 将提供一个有效的类定义任何有维基百科条目的东西,这很可能是任何地球上被科学接受的植物或物种.
Note that you can always use the types from www.productontology.org for more precise markup for any plant or species. www.productontology.org will provide a valid class definition for anything that has a Wikipedia entry, and this is likely any scientifically accepted plant or species on earth.
这篇关于我们可以为任何类型的实体制作结构化页面数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!