公寓站点的语义标记 [英] Semantic markup for an apartment site

查看:75
本文介绍了公寓站点的语义标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们即将启动一个网站,用户可以在其中搜索租赁公寓.为了取悦Google搜索引擎,我想用一些语义标记来标记我所有与公寓有关的HTML元素.

We are about to launch a website where users can search for rental apartments. To please the Google search engine I want to mark all of my apartment related HTML elements with some semantic markup.

我一直在研究Schema.org和FOAF,以找到一些可以使用的好词汇.但是我似乎找不到支持公寓信息的词汇表.

I have been looking at Schema.org and FOAF to find some good vocabs to use. But I can't seem to find vocabs that support apartment informations.

示例:

2间卧室
300平方英尺
停车场

2 bedroom
300 square feet
Parkingspot

以此类推.现在,我使用typeof="ApartmentComplex"-但我想对上面的内容进行标记.

And so on. Right now I use typeof="ApartmentComplex" - but I want to markup the above.

谁能给我一个提示,提示我如何标记这些信息,以使Google能够将其显示为Rich Snippets并增加页面排名?

Can anyone give me a hint on how I would mark up such information in a way that enables Google to display them as Rich Snippets and increase pageranking?

推荐答案

Schema.org的 ApartmentComplex 不会如果您想为一间公寓加价,这似乎是不合适的.因此,应改用父类型 Residence .但是,这些Place类型没有用于标记您要查找的内容的属性.

Schema.org’s ApartmentComplex doesn’t seem to be appropriate if you want to markup a single apartment. So the parent type Residence should be used instead. However, these Place types don’t have properties for marking up the things you are looking for.

Product / Offer 也可以使用,但是它们当然也没有特定于公寓的属性(请参阅我的

Product/Offer could also be used, but they also don’t have apartment-specific properties, of course (see my answer about using Offer for renting apartments).

因此,由于您似乎只对Google及其Rich代码段感兴趣(除了某些微格式和已弃用的data-vocabulary.org支持之外,您必须使用Schema.org),答案是:目前不可能.

So, as you seem to be interested only in Google and their Rich Snippets (and apart from some Microformats and deprecated data-vocabulary.org support, you’d have to use Schema.org), the answer is: Currently not possible.

在Schema.org的最新版本v3.1中,酒店和其他形式的类型和属性的住宿" .

In the last Schema.org version, v3.1, types and properties for "hotels and other forms of accommodations" were introduced.

现在,您可以使用 Apartment 类型,并使用 floorSize amenityFeature 属性.

Now you can use the Apartment type, and provide your data with the numberOfRooms, floorSize, and amenityFeature properties.

但是Google搜索似乎仍然没有提供任何相关的搜索结果功能.

But Google Search still doesn’t seem to offer any related search result features.

这篇关于公寓站点的语义标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆