Semantic markup for an apartment site

你。 提交于 2020-01-17 04:23:27

问题


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.

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.

Example:

2 bedroom
300 square feet
Parkingspot

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

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?


回答1:


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 could also be used, but they also don’t have apartment-specific properties, of course (see my answer about using Offer for renting apartments).

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.


Update 2016

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

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

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



来源:https://stackoverflow.com/questions/25157117/semantic-markup-for-an-apartment-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!