Structured Data and Semantics: An example of correct JSON-LD

JSON-LD (JavaScript Object Notation for Linked Data) is a lightweight data interchange format that is easy for humans to read and write and easy for machines to parse and generate. It is a way to structure data using the JSON format while also incorporating the principles of Linked Data. JSON-LD is often used to provide context and meaning to data on the web.

Here are key aspects of JSON-LD and why it is necessary for a website:

  1. Structured Data and Semantics: JSON-LD allows you to embed structured data directly into the HTML of a web page. This structured data is marked up with semantic information, providing a clear understanding of the meaning of the data. This is particularly important for search engines and other applications that want to extract and understand the content of a web page.
  2. Search Engine Optimization (SEO): Search engines like Google, Bing, and others use structured data to better understand the content of a webpage. By using JSON-LD to provide information about entities, relationships, and attributes, you can improve the chances of your content being correctly interpreted by search engines. This, in turn, can enhance the visibility of your site in search engine results pages (SERPs) through rich snippets, knowledge graphs, and other search features.
  3. Linked Data: JSON-LD is designed to express relationships between entities and link data across the web. It follows the principles of Linked Data, allowing different pieces of information to be connected in a meaningful way. This is important for creating a web of interconnected data, enabling better data discovery and integration.
  4. Interoperability: JSON-LD promotes interoperability by providing a standardized way to represent structured data. This makes it easier for different systems and applications to exchange and understand data. It can be particularly useful in scenarios where data needs to be shared and consumed by various platforms.
  5. Accessibility and Inclusion: JSON-LD can be used to make web content more accessible by providing additional information about the content and its context. This can be beneficial for assistive technologies, allowing them to better interpret and convey the information to users with disabilities.

In summary, JSON-LD is necessary for a website because it facilitates the structuring of data in a way that is both human-readable and machine-understandable. It enhances the visibility of content in search engines, promotes interoperability, and contributes to the creation of a more connected and accessible web.

 

An example of correct micro-markup on a real estate website:

#JSON-LD Template for a Real Estate Listing
#for more info please check this entity based SEO case study for real estates
https://schemantra.com/blog/2022/12/22/entity-based-seo-case-study/
#You can easily create this schema or any other JSON-LD schema using [Schemantra](https://schemantra.com/)

<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "WebPage",
"@id": "web1",
"mainEntity": {
"@id": "apartment1"
},
"potentialAction": {
"@id": "action"
},
"about": {
"@id": "contact"
}
}
</script>
<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "Action",
"@id": "action",
"description": "contact form",
"name": "contact form",
"target": {
"@id": "target"
}
}
</script>
<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "EntryPoint",
"@id": "target",
"description": "contact form"
}
</script>
<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "ContactPoint",
"@id": "contact",
"description": "Real Estate agent",
"name": "name of agent",
"telephone": "phone number of agent",
"url": "page of agent",
"potentialAction": {
"@id": "call"
}
}
</script>
<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "CommunicateAction",
"@id": "call",
"description": "phone call"
}
</script>
<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "Apartment",
"@id": "apartment1",
"address": "192 st",
"numberOfFullBathrooms": "2",
"numberOfRooms": "3",
"yearBuilt": "2022",
"image": "url",
"specialOpeningHoursSpecification": {
"@id": "opening_hours"
}
}
</script>
<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "OpeningHoursSpecification",
"@id": "opening_hours",
"opens": "12:00",
"closes": "16:30",
"validFrom": "2022-10-21",
"validThrough": "2022-10-31"
}
</script>
<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "Product",
"@id": "apartment1",
"offers": {
"@id": "offer"
}
}
</script>
<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "Offer",
"@id": "offer",
"price": "100,000",
"priceCurrency":"USD",
"offeredBy": {
"@id": "realtor1"
}
}
</script>
<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "RealEstateAgent",
"@id": "realtor1",
"name":"The Realtor Company",
"AreaServed": "Chico, NE, CA"
}
</script>
<script type="application/ld+json" class="schemantra.com">
{
"@context": "https://schema.org",
"@type": "RealEstateListing",
"@id": "apartment1"
}
</script>

AUTHOR

Sofiia Dolia

Content Marketer at Seoplay