Tag: Linked Data

tree-200795_1920
Linked DataRESOschema.org

Real Estate Data on the Web: Agents, Teams and Offices

Part 3 in a series on putting real estate data on the web with JSON-LD and schema.org vocabulary.

Note to agent, team or brokers: This post explains how to get raw contact data about your business on your website.  However, at the moment, this is not enough to get your business working google location search.   To get your business to show up in google’s location search, you have to verify your business with google at http://business.google.com.

schema:RealEstateAgent

schema:RealEstateAgent is the class for real estate agents, teams, offices and brokers.

Here’s an example mapping a reso:Member resource to schema:RealEstateAgent.

{
 "@context"  : "http://schema.org",
 "@type"     : "RealEstateAgent",
 "name"      : MemberFullName,
 "url"       : SocialMediaWebsiteUrlOrId,
 "telephone" : MemberPreferredPhone,
 "faxNumber" : MemberFax,
 "email"     : MemberEmail,
 "sameAs"    : [ SocialMediaGooglePlusUrlOrId ],
 "address"   : {
   "@type" : "PostalAddress",
   "streetAddress" : [ MemberAddress1, MemberAddress2 ],
   "addressLocality" : MemberCity,
   "addressRegion" : MemberStateOrProvince,
   "postalCode" : MemberPostalCode
 }
}

To declare a RealEstateAgent’s as a member of a team or office, use schema:memberOf which expects a value of type  schema:Organization.

{
  "memberOf" : [
    {
      "@type": "RealEstateAgent",
      "url": "http://example.com/offices/gypsy_lane"
    }
  ]
}

A few useful properties in schema:RealEstateAgent with no equivalent in RDD v1.5 are:

openingHours – The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ‘,’ separating each day. Day or time ranges are specified using a hyphen ‘-‘..

{
  "openingHours" : "Mo,Tu,We,Th,Fr 09:00-16:00"
}

image  – photos or videos of a subject. Values can be objects (schema:ImageObject, schema:VideoObject) or a plain text URL reference to an image or video.

{
  "image" : ["/agents/daveDuran/image/0"]
}

sameAs – links to any other pages about the subject such as a personal website or a Facebook page go here.

{
  "sameAs"       : [
    "https://facebook.com/daveduran", 
    "https://plus.google.com/+daveduran"
  ]
}