JSON-LD 类型示例参考手册

JSON-LD 类型使用示例大全

文章目录

本文是针对 JSON-LD 类型的使用示例及其简要介绍与说明。每个类型的示例展示了如何在 JSON-LD 中进行标注,并附带了简要说明,希望对你有所帮助。

JSON-LD 的主要核心类型

主要核心类型包含了 JSON-LD 中一些基础且重要的类型,这些类型是构建更复杂数据结构的基础。

Thing(事物)

Thing 是所有类型的基础类,所有类型都继承自这个类,它是其他具体类型的通用父类。

示例

{
  "@context": "https://schema.org",
  "@type": "Thing",
  "name": "Generic Item"
}

Thing 可以用作其他具体类型的基础类型,通常用于没有明确类别的普通项或事物。

CreativeWork(创作作品)

表示任何创作的作品,如文章、书籍、电影、音乐等。

示例

{
  "@context": "https://schema.org",
  "@type": "CreativeWork",
  "name": "The Great Adventure",
  "author": "John Doe",
  "datePublished": "2025-03-02"
}

CreativeWork 用于表示任何形式的创作作品,包括文学作品、音乐、电影等。

Event(事件)

表示事件,如音乐会、比赛、会议等。

示例

{
  "@context": "https://schema.org",
  "@type": "Event",
  "name": "Tech Conference 2025",
  "startDate": "2025-05-01",
  "location": {
    "@type": "Place",
    "name": "Convention Center, City"
  }
}

Event 用于描述具体的事件,通常包括名称、时间、地点等信息。

Intangible(非实体事物)

表示非实体事物,如品牌、货币、评分等。

示例

{
  "@context": "https://schema.org",
  "@type": "Intangible",
  "name": "XYZ Corporation",
  "brand": "XYZ"
}

Intangible 用于表示无形事物,例如品牌、专利、货币、评分等。

Organization(组织)

表示组织,如公司、非盈利组织、学校等。

示例

{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Acme Corporation",
  "url": "https://www.acme.com"
}

Organization 用于描述一个组织,通常用于公司、政府机构、非政府组织等。

Person(个人)

表示个人或公共人物。

示例

{
  "@context": "https://schema.org",
  "@type": "Person",
  "name": "Jane Smith",
  "birthDate": "1980-01-01"
}

Person 用于表示一个具体的人物,包含基本的个人信息如姓名、生日等。

Place(地点)

表示地点,如城市、商店、景点等。

示例

{
  "@context": "https://schema.org",
  "@type": "Place",
  "name": "Central Park",
  "address": "New York, NY"
}

Place 用于表示某个地点,通常包括地址、名称、地理位置等信息。

Product(产品)

表示产品或服务。

示例

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Smartphone XYZ",
  "price": "499.99",
  "brand": "TechBrand"
}

Product 用于表示具体的产品或服务,包含价格、品牌等相关信息。

Action(行为)

表示用户的行为,如购买、观看、评论等。

示例

{
  "@context": "https://schema.org",
  "@type": "Action",
  "name": "Buy Product",
  "actionStatus": "Active"
}

Action 用于描述用户的行为或活动,包含行为的名称、状态等信息。

文章 & 新闻

“文章 & 新闻”类别下包含了多种用于描述不同类型文章的 JSON-LD 类型,这些类型有助于更准确地标记和分类文章内容。

Article(文章)

文章类型是通用的,可以用于任何形式的文章。适用于博客、新闻网站等。

示例

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "The Importance of Structured Data in SEO",
  "author": {
    "@type": "Person",
    "name": "John Doe"
  },
  "datePublished": "2025-03-02",
  "dateModified": "2025-03-02",
  "publisher": {
    "@type": "Organization",
    "name": "Tech Blog"
  },
  "description": "An in-depth look at the role of structured data in improving SEO rankings."
}

这是一个通用的文章类型,适用于各种不同的文章,无论是新闻、博客还是其他类型的创作。主要字段包括 headline(标题)、author(作者)、datePublished(发布时间)等。

BlogPosting(博客文章)

特指博客文章。适用于博客平台和网站上的文章。

示例

{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "How to Optimize Your Blog for Search Engines",
  "author": {
    "@type": "Person",
    "name": "Jane Smith"
  },
  "datePublished": "2025-02-28",
  "publisher": {
    "@type": "Organization",
    "name": "Jane's Blog"
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://janesblog.com/optimize-seo"
  }
}

此类型特别适合用于博客文章。包含了 mainEntityOfPage 用于指向文章的具体网页。

NewsArticle(新闻文章)

适用于新闻网站的文章。用于描述新闻报道和时事新闻。

示例

{
  "@context": "https://schema.org",
  "@type": "NewsArticle",
  "headline": "New Tech Company Revolutionizes the Industry",
  "author": {
    "@type": "Person",
    "name": "Alex Green"
  },
  "datePublished": "2025-03-01",
  "publisher": {
    "@type": "Organization",
    "name": "Global News Network"
  },
  "articleBody": "This new startup is changing the way technology is perceived in the modern world."
}

NewsArticle 适用于新闻报道,通常包含 articleBody 来描述文章内容。这使得它与其他文章类型有所区别,专门用于新闻报道。

ScholarlyArticle(学术论文)

学术论文类型,用于表示学术研究或论文,适用于期刊、会议记录等。

示例

{
  "@context": "https://schema.org",
  "@type": "ScholarlyArticle",
  "headline": "Exploring New Methods in Quantum Computing",
  "author": {
    "@type": "Person",
    "name": "Dr. Emily Parker"
  },
  "datePublished": "2025-01-15",
  "journalName": "International Journal of Quantum Physics",
  "volumeNumber": "12",
  "issueNumber": "4",
  "pageStart": "123",
  "pageEnd": "145"
}

用于学术论文,包含期刊信息,如 journalName(期刊名称)、volumeNumber(卷号)、issueNumber(期号)等。

TechArticle(技术文章)

技术文章类型,适用于 API 文档、编程教程等技术内容。

示例

{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "How to Use the New JavaScript Framework",
  "author": {
    "@type": "Person",
    "name": "Michael Brown"
  },
  "datePublished": "2025-02-20",
  "publisher": {
    "@type": "Organization",
    "name": "Tech Insights"
  },
  "articleBody": "In this article, we will walk through the steps of setting up a new JavaScript framework..."
}

用于技术文章,内容涉及技术教程、代码示例等。articleBody 描述文章主体内容,适合技术文章类型。

Report(报告)

报告类型,适用于正式的报告或研究报告。

示例

{
  "@context": "https://schema.org",
  "@type": "Report",
  "headline": "Annual Market Trends Analysis",
  "author": {
    "@type": "Organization",
    "name": "Market Research Ltd."
  },
  "datePublished": "2025-02-01",
  "publisher": {
    "@type": "Organization",
    "name": "Market Research Reports"
  },
  "reportNumber": "2025-001",
  "content": "This report explores the key trends in the market over the past year..."
}

适用于各类报告,如市场研究报告、年度报告等。reportNumber 用于标识报告编号,content 主要描述报告的核心内容。

地点 & 本地业务

“地点 & 本地业务”类别涵盖了用于描述地点和本地商家等相关信息的 JSON-LD 类型,这些类型有助于更准确地呈现和分类相关数据。

Place(地点)

Place 用于表示地点,包括城市、商店、景点等。

示例

{
  "@context": "https://schema.org",
  "@type": "Place",
  "name": "Empire State Building",
  "description": "A famous landmark in New York City.",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "350 5th Ave",
    "addressLocality": "New York",
    "addressRegion": "NY",
    "postalCode": "10118",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": "40.748817",
    "longitude": "-73.985428"
  }
}

此示例表示“帝国大厦”这一地点,包含了地点的名称、描述、地址和地理坐标信息。

LocalBusiness(本地商家)

LocalBusiness 用于表示本地商家,如餐馆、商店等。

示例

{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Joe's Pizza",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Pizza St.",
    "addressLocality": "New York",
    "addressRegion": "NY",
    "postalCode": "10001",
    "addressCountry": "US"
  },
  "telephone": "+1-212-555-1234",
  "openingHours": "Mo-Su 11:00-23:00",
  "sameAs": "http://www.joespizza.com"
}

此示例表示一家名为“Joe’s Pizza”的本地餐馆,包含了商家的名称、地址、电话、营业时间以及网站链接。

LandmarksOrHistoricalBuildings(地标或历史建筑)

LandmarksOrHistoricalBuildings 用于表示重要的地标或历史建筑。

示例

{
  "@context": "https://schema.org",
  "@type": "LandmarksOrHistoricalBuildings",
  "name": "The Great Wall of China",
  "description": "An ancient fortification built along the northern borders of China.",
  "address": {
    "@type": "PostalAddress",
    "addressLocality": "Beijing",
    "addressCountry": "CN"
  }
}

此示例表示中国的长城,包含了名称、描述和地点信息。

TouristAttraction(旅游景点)

TouristAttraction 用于表示旅游景点,吸引游客参观的地点。

示例

{
  "@context": "https://schema.org",
  "@type": "TouristAttraction",
  "name": "Eiffel Tower",
  "description": "A wrought-iron lattice tower on the Champ de Mars in Paris, France.",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "Champ de Mars",
    "addressLocality": "Paris",
    "addressRegion": "Île-de-France",
    "postalCode": "75007",
    "addressCountry": "FR"
  },
  "touristType": "Adults"
}

此示例表示“埃菲尔铁塔”这一旅游景点,包含了名称、描述、地址和适合的游客类型信息。

Restaurant(餐厅)

Restaurant 用于表示餐厅,提供餐饮服务的地方。

示例

{
  "@context": "https://schema.org",
  "@type": "Restaurant",
  "name": "The French Laundry",
  "cuisine": "French",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "6640 Washington St",
    "addressLocality": "Yountville",
    "addressRegion": "CA",
    "postalCode": "94599",
    "addressCountry": "US"
  },
  "telephone": "+1-707-944-2380",
  "menu": "http://www.frenchlaundry.com/menu",
  "priceRange": "$$$$"
}

此示例表示一家名为“The French Laundry”的餐厅,提供法式菜肴,并包含了餐厅的地址、电话、菜单和价格区间信息。

Hotel(酒店)

Hotel 用于表示酒店,提供住宿服务的地方。

示例

{
  "@context": "https://schema.org",
  "@type": "Hotel",
  "name": "The Ritz-Carlton",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "600 Stockton St",
    "addressLocality": "San Francisco",
    "addressRegion": "CA",
    "postalCode": "94108",
    "addressCountry": "US"
  },
  "telephone": "+1-415-296-7465",
  "starRating": {
    "@type": "Rating",
    "ratingValue": "5",
    "bestRating": "5"
  },
  "amenityFeature": {
    "@type": "LocationFeatureSpecification",
    "name": "Spa",
    "value": "Available"
  }
}

此示例表示“Ritz-Carlton”酒店,包含酒店的名称、地址、电话、星级评分以及提供的设施信息。

媒体 & 娱乐

“媒体 & 娱乐”类别包含了多种用于描述不同形式媒体和娱乐内容的 JSON-LD 类型,这些类型有助于更准确地标记和分类相关内容。

CreativeWork(创作作品)

创作作品是一个广泛的类型,适用于任何形式的创作内容,如文章、书籍、电影、音乐、游戏等。

示例

{
  "@context": "https://schema.org",
  "@type": "CreativeWork",
  "name": "The Great Gatsby",
  "author": "F. Scott Fitzgerald",
  "datePublished": "1925",
  "genre": "Fiction"
}

此类型用于描述任何形式的创作内容,具有名称、创作者、出版日期等属性。适用于所有创作的内容。

Movie(电影)

用于表示电影作品,包括电影名称、导演、主演、发行日期等信息。

示例

{
  "@context": "https://schema.org",
  "@type": "Movie",
  "name": "Inception",
  "director": {
    "@type": "Person",
    "name": "Christopher Nolan"
  },
  "actor": [
    {
      "@type": "Person",
      "name": "Leonardo DiCaprio"
    },
    {
      "@type": "Person",
      "name": "Joseph Gordon-Levitt"
    }
  ],
  "datePublished": "2010-07-16",
  "genre": "Science Fiction"
}

此类型专门用于描述电影作品,包含导演、演员、发布日期等关键字段。

TVSeries(电视剧)

用于表示电视剧系列,包含剧集、播出日期、演员等信息。

示例

{
  "@context": "https://schema.org",
  "@type": "TVSeries",
  "name": "Stranger Things",
  "actor": {
    "@type": "Person",
    "name": "Millie Bobby Brown"
  },
  "genre": "Science Fiction",
  "datePublished": "2016-07-15"
}

此类型用于电视剧的描述,包括剧名、演员、类型、上映日期等。

MusicAlbum(音乐专辑)

用于表示音乐专辑,包含专辑名称、艺术家、发行日期等信息。

示例

{
  "@context": "https://schema.org",
  "@type": "MusicAlbum",
  "name": "Reputation",
  "byArtist": {
    "@type": "MusicGroup",
    "name": "Taylor Swift"
  },
  "datePublished": "2017-11-10",
  "genre": "Pop"
}

此类型适用于音乐专辑,包含专辑名称、艺术家、类型、发布时间等。

MusicRecording(音乐录制)

用于表示单曲或其他类型的音乐录制内容,通常包括录制的歌曲或音频文件的信息。

示例

{
  "@context": "https://schema.org",
  "@type": "MusicRecording",
  "name": "Shape of You",
  "byArtist": {
    "@type": "MusicGroup",
    "name": "Ed Sheeran"
  },
  "datePublished": "2017-01-06",
  "genre": "Pop"
}

此类型用于描述单个音乐录制,包括歌曲名称、艺术家、发布日期和类型。

VideoGame(电子游戏)

用于表示电子游戏,包括游戏的名称、发行商、发布日期等信息。

示例

{
  "@context": "https://schema.org",
  "@type": "VideoGame",
  "name": "The Legend of Zelda: Breath of the Wild",
  "creator": {
    "@type": "Organization",
    "name": "Nintendo"
  },
  "datePublished": "2017-03-03",
  "genre": "Action-Adventure"
}

此类型用于电子游戏的描述,包含游戏名称、开发者、发行日期和类型等。

PodcastEpisode(播客单集)

用于表示单集播客节目,包含播客名称、主持人、发布日期等信息。

示例

{
  "@context": "https://schema.org",
  "@type": "PodcastEpisode",
  "name": "How to Start a Business",
  "creator": {
    "@type": "Person",
    "name": "John Doe"
  },
  "datePublished": "2023-01-15",
  "audio": {
    "@type": "AudioObject",
    "contentUrl": "https://example.com/podcast/episode1.mp3"
  }
}

此类型适用于播客节目的单集描述,包含节目名称、主持人、音频链接等。

产品 & 电商

“产品 & 电商”类别下的 JSON-LD 类型用于描述产品、报价、评论等电商相关信息,有助于搜索引擎更好地理解和展示电商内容。

Product(产品)

Product 类型用于表示商品、服务或其他可以购买的物品。此类型包含了产品的相关信息,如名称、描述、品牌、价格等。

示例

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Wireless Headphones",
  "image": "https://example.com/photos/1x1/photo.jpg",
  "description": "Noise-cancelling wireless headphones with long battery life.",
  "brand": {
    "@type": "Brand",
    "name": "BrandX"
  },
  "sku": "12345",
  "offers": {
    "@type": "Offer",
    "url": "https://example.com/product/12345",
    "priceCurrency": "USD",
    "price": "99.99",
    "itemCondition": "https://schema.org/NewCondition",
    "availability": "https://schema.org/InStock"
  }
}

此示例展示了一个无线耳机产品的相关信息,包括产品名称、描述、品牌、价格、库存状态等。通过这种结构化数据,可以帮助搜索引擎理解和展示产品信息。

Offer(报价)

Offer 类型用于描述一个或多个报价。它通常与Product一起使用,展示商品的价格、条件以及购买选项。

示例

{
  "@context": "https://schema.org",
  "@type": "Offer",
  "url": "https://example.com/product/12345",
  "priceCurrency": "USD",
  "price": "199.99",
  "priceValidUntil": "2025-03-10",
  "itemCondition": "https://schema.org/NewCondition",
  "availability": "https://schema.org/InStock",
  "seller": {
    "@type": "Organization",
    "name": "Example Store"
  }
}

该示例展示了一个关于产品报价的信息,包括价格、有效期、库存状态以及卖家信息。结构化数据帮助提升电商页面的 SEO。

AggregateOffer(综合报价)

AggregateOffer 类型表示多个报价的集合,常用于展示同一产品的不同价格或从多个卖家处购买的选项。

示例

{
  "@context": "https://schema.org",
  "@type": "AggregateOffer",
  "lowPrice": "89.99",
  "highPrice": "149.99",
  "priceCurrency": "USD",
  "offerCount": "5",
  "offers": [
    {
      "@type": "Offer",
      "price": "99.99",
      "priceCurrency": "USD",
      "seller": {
        "@type": "Organization",
        "name": "Store A"
      }
    },
    {
      "@type": "Offer",
      "price": "129.99",
      "priceCurrency": "USD",
      "seller": {
        "@type": "Organization",
        "name": "Store B"
      }
    }
  ]
}

该示例列出了多个不同卖家的报价。AggregateOffer 聚合了不同价格范围和卖家信息,为消费者提供选择。

Review(评论)

Review 类型用于描述用户对产品或服务的评论,包含评分、评论内容、评论者等信息。

示例

{
  "@context": "https://schema.org",
  "@type": "Review",
  "reviewRating": {
    "@type": "Rating",
    "ratingValue": "4.5",
    "bestRating": "5"
  },
  "author": {
    "@type": "Person",
    "name": "John Doe"
  },
  "reviewBody": "These headphones are excellent for daily use, very comfortable and great sound quality.",
  "datePublished": "2025-02-25",
  "itemReviewed": {
    "@type": "Product",
    "name": "Wireless Headphones"
  }
}

这个示例展示了一条用户评论,包含了评分(4.5/5)、评论内容、评论者姓名以及评论日期。对于电商平台,展示评论有助于提高产品的可信度和吸引力。

Brand(品牌)

Brand 类型表示产品的品牌。它通常与Product类型结合使用,用于描述该产品所属的品牌名称。

示例

{
  "@context": "https://schema.org",
  "@type": "Brand",
  "name": "BrandX",
  "logo": "https://example.com/brandx_logo.jpg"
}

此示例展示了品牌信息,包含了品牌名称和 logo。品牌信息有助于消费者更好地了解产品来源,提高品牌认知度。

Service(服务)

Service 类型用于表示可提供的服务,而非实物产品。此类型适用于如维修、咨询、设计等服务。

示例

{
  "@context": "https://schema.org",
  "@type": "Service",
  "serviceType": "Web Design",
  "provider": {
    "@type": "Organization",
    "name": "DesignAgency"
  },
  "offers": {
    "@type": "Offer",
    "priceCurrency": "USD",
    "price": "500.00",
    "url": "https://example.com/web-design"
  }
}

这个示例展示了一项服务(网页设计服务),包含了服务类型、提供者以及报价。服务的描述帮助潜在客户了解可供选择的服务类型及其价格。

MerchantReturnPolicy(商家退货政策)

MerchantReturnPolicy 类型表示商家的退货政策。它可以帮助消费者了解购买后如何处理退货或退款。

示例

{
  "@context": "https://schema.org",
  "@type": "MerchantReturnPolicy",
  "returnPolicyCategory": "https://schema.org/ReturnOnly",
  "returnPolicyLabel": "30-Day Return Policy",
  "returnPolicySeasonalOverride": "https://schema.org/SeasonalReturnPolicy",
  "url": "https://example.com/return-policy"
}

此示例展示了商家的退货政策,包括退货类别和退货期限。展示此信息有助于增强消费者的信任感,减少购买时的不确定性。

事件(Event)

事件类型(Event)用于表示任何类型的事件,包括会议、音乐会、节日、体育赛事等。通过在结构化数据中标记事件信息,可以帮助搜索引擎更好地理解和展示相关内容。

Event(通用事件类型)

用于表示一般的事件,适用于任何不属于特定子类的活动。

示例:

{
  "@context": "http://schema.org",
  "@type": "Event",
  "name": "Spring Festival",
  "startDate": "2025-04-10T19:00:00",
  "endDate": "2025-04-10T23:59:59",
  "location": {
    "@type": "Place",
    "name": "City Park",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "123 Park Avenue",
      "addressLocality": "Shenzhen",
      "addressRegion": "Guangdong",
      "postalCode": "518000",
      "addressCountry": "CN"
    }
  },
  "description": "A celebration of the traditional Spring Festival with music, food, and fun activities for all ages."
}

这个示例表示一个春季节日活动,包含了活动名称、开始和结束时间、活动地点以及详细的地址信息。

Festival(节日、嘉年华)

用于标记节日或嘉年华类的活动,如音乐节、文化节等。

示例:

{
  "@context": "http://schema.org",
  "@type": "Festival",
  "name": "Shenzhen Music Festival",
  "startDate": "2025-06-20T18:00:00",
  "endDate": "2025-06-22T23:00:00",
  "location": {
    "@type": "Place",
    "name": "Shenzhen Convention Center",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "1 Convention Road",
      "addressLocality": "Shenzhen",
      "addressRegion": "Guangdong",
      "postalCode": "518100",
      "addressCountry": "CN"
    }
  },
  "description": "An annual music festival bringing together artists from all over the world."
}

这是一个音乐节活动的示例,具体描述了音乐节的时间、地点和活动内容。

SportsEvent(体育赛事)

用于表示体育赛事,如足球比赛、篮球比赛等。

示例:

{
  "@context": "http://schema.org",
  "@type": "SportsEvent",
  "name": "Shenzhen Open Tennis Tournament",
  "startDate": "2025-07-15T09:00:00",
  "endDate": "2025-07-20T18:00:00",
  "location": {
    "@type": "Place",
    "name": "Shenzhen Tennis Center",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "789 Sports Road",
      "addressLocality": "Shenzhen",
      "addressRegion": "Guangdong",
      "postalCode": "518001",
      "addressCountry": "CN"
    }
  },
  "description": "A prestigious tennis tournament attracting top international players."
}

该示例展示了一个体育赛事——深圳网球公开赛,标明了比赛的时间、地点及赛事详情。

BusinessEvent(商业活动)

用于表示商业相关的活动,例如会议、行业展览、发布会等。

示例:

{
  "@context": "http://schema.org",
  "@type": "BusinessEvent",
  "name": "Global Business Expo",
  "startDate": "2025-05-05T10:00:00",
  "endDate": "2025-05-07T17:00:00",
  "location": {
    "@type": "Place",
    "name": "Shenzhen International Exhibition Center",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "200 Exhibition Road",
      "addressLocality": "Shenzhen",
      "addressRegion": "Guangdong",
      "postalCode": "518500",
      "addressCountry": "CN"
    }
  },
  "description": "A global business expo showcasing the latest innovations in technology and entrepreneurship."
}

这是一个全球商业博览会的例子,重点展示了会议的时间、地点以及活动性质。

MusicEvent(音乐会)

用于表示音乐相关的事件,如演唱会、音乐节等。

示例:

{
  "@context": "http://schema.org",
  "@type": "MusicEvent",
  "name": "Shenzhen Symphony Orchestra Concert",
  "startDate": "2025-08-01T20:00:00",
  "endDate": "2025-08-01T22:00:00",
  "location": {
    "@type": "Place",
    "name": "Shenzhen Concert Hall",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "456 Music Road",
      "addressLocality": "Shenzhen",
      "addressRegion": "Guangdong",
      "postalCode": "518200",
      "addressCountry": "CN"
    }
  },
  "description": "A classical music concert by the Shenzhen Symphony Orchestra featuring Beethoven's 9th Symphony."
}

该示例展示了一场深圳交响乐团的音乐会,包含了演出时间、地点以及音乐内容。

TheaterEvent(话剧演出)

用于表示话剧或戏剧演出。

示例:

{
  "@context": "http://schema.org",
  "@type": "TheaterEvent",
  "name": "Shenzhen Broadway Musical",
  "startDate": "2025-09-10T19:30:00",
  "endDate": "2025-09-12T22:00:00",
  "location": {
    "@type": "Place",
    "name": "Shenzhen Drama Theater",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "101 Drama Street",
      "addressLocality": "Shenzhen",
      "addressRegion": "Guangdong",
      "postalCode": "518300",
      "addressCountry": "CN"
    }
  },
  "description": "A Broadway-style musical performance featuring classic show tunes."
}

这是一个话剧演出的示例,具体描述了演出时间、地点及表演内容。

EducationEvent(教育类活动)

用于表示教育相关的活动,如研讨会、讲座、培训等。

示例:

{
  "@context": "http://schema.org",
  "@type": "EducationEvent",
  "name": "AI & Machine Learning Workshop",
  "startDate": "2025-10-15T10:00:00",
  "endDate": "2025-10-15T16:00:00",
  "location": {
    "@type": "Place",
    "name": "Shenzhen Technology Institute",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "321 Innovation Avenue",
      "addressLocality": "Shenzhen",
      "addressRegion": "Guangdong",
      "postalCode": "518400",
      "addressCountry": "CN"
    }
  },
  "description": "A one-day workshop focused on the basics of AI and machine learning, with hands-on coding sessions."
}

这个示例表示一场教育类的活动——AI 与机器学习工作坊,详细描述了活动的时间、地点和教育内容。

结构化数据 & 搜索优化

“结构化数据 & 搜索优化”类别下的 JSON-LD 类型有助于提升网页在搜索引擎中的展示效果,通过结构化标记使搜索引擎更好地理解页面内容。

用于展示页面的路径,帮助搜索引擎理解页面的层次结构,有助于提升 SEO 效果。

示例

{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "首页",
      "item": "https://www.example.com/"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "产品",
      "item": "https://www.example.com/products"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "智能手机",
      "item": "https://www.example.com/products/smartphones"
    }
  ]
}

该示例展示了一个页面的层级结构,从首页到智能手机页面的面包屑导航。

FAQPage(FAQ 页面)

用于标记 FAQ(常见问题)页面,通过结构化数据提升 Google 搜索结果的丰富度。

示例

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "如何注册账户?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "您可以点击网站右上角的“注册”按钮,然后填写您的个人信息完成注册。"
      }
    },
    {
      "@type": "Question",
      "name": "如何重置密码?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "点击“忘记密码”,输入您的注册邮箱后,我们会发送重置链接到您的邮箱。"
      }
    }
  ]
}

该示例标记了一个 FAQ 页面,包含了关于如何注册和重置密码的常见问题和答案。

HowTo(指南)

用于展示如何执行某个任务的步骤,通常用于指南或教程类内容。

示例

{
  "@context": "https://schema.org",
  "@type": "HowTo",
  "name": "如何更换轮胎",
  "step": [
    {
      "@type": "HowToStep",
      "name": "抬起汽车",
      "text": "使用千斤顶将汽车抬起,确保车轮完全离开地面。"
    },
    {
      "@type": "HowToStep",
      "name": "拆卸旧轮胎",
      "text": "使用扳手拆下固定轮胎的螺丝,取下旧轮胎。"
    },
    {
      "@type": "HowToStep",
      "name": "安装新轮胎",
      "text": "将新轮胎放上去,并用螺丝固定。"
    }
  ]
}

该示例展示了一个“如何更换轮胎”的指南,包含了具体的步骤和操作描述。

QAPage(问答页面)

适用于论坛、问答网站或任何基于问答的内容,帮助提高页面在搜索中的可见性。

示例

{
  "@context": "https://schema.org",
  "@type": "QAPage",
  "mainEntity": {
    "@type": "Question",
    "name": "如何学习Python编程语言?",
    "acceptedAnswer": {
      "@type": "Answer",
      "text": "要学习Python编程语言,您可以从在线教程、书籍或参加课程开始,实践是掌握Python的关键。"
    }
  }
}

该示例展示了一个问答页面,问题是“如何学习 Python 编程语言?”并附带了推荐的答案。

Rating(评分)

用于对产品、服务或其他事项的评分,通常与用户评价一起使用。

示例

{
  "@context": "https://schema.org",
  "@type": "Rating",
  "ratingValue": "4.5",
  "bestRating": "5",
  "worstRating": "1"
}

该示例展示了一个评分数据,其中评分值为 4.5,最大评分为 5,最小评分为 1。

AggregateRating(综合评分)

用于表示多个用户评分的综合结果,通常用于产品或服务的评分系统中。

示例

{
  "@context": "https://schema.org",
  "@type": "AggregateRating",
  "ratingValue": "4.5",
  "reviewCount": "150"
}

该示例展示了一个综合评分数据,其中产品或服务的平均评分为 4.5,收到的总评价数量为 150 条。

其他子类别

“其他子类别”包含了一些用于描述网站、网页、搜索操作、教育职业项目和招聘信息等的 JSON-LD 类型,丰富了结构化数据的应用场景。

WebSite(网站)

WebSite 类型用于定义整个网站的元数据,包括网站名称、主页链接、描述等。此类型适用于网站层级的结构数据。

示例

{
  "@context": "https://schema.org",
  "@type": "WebSite",
  "name": "赛可心理测试",
  "url": "https://www.psyctest.cn",
  "description": "赛可心理测试官网,提供各种心理学测试工具,帮助用户了解自我,提升心理健康。",
  "publisher": {
    "@type": "Organization",
    "name": "赛可心理公司"
  }
}

这是用于描述整个网站的基本信息,例如名称、URL 和描述,以及发布者信息。

WebPage(网页)

WebPage 类型用于定义特定网页的元数据。每个单独的网页都可以使用此类型。

示例

{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "name": "心理测试分析",
  "url": "https://www.psyctest.cn/test-analysis",
  "description": "提供心理测试结果的详细分析,帮助用户更好地理解自己的心理特征。",
  "mainEntityOfPage": "https://www.psyctest.cn"
}

适用于单个网页的描述,可以包括该页面的标题、URL、描述等元数据。

SearchAction(搜索操作)

SearchAction 类型用于定义网站的搜索操作,可以在网页中嵌入搜索框或功能。

示例

{
  "@context": "https://schema.org",
  "@type": "SearchAction",
  "target": "https://www.psyctest.cn/search?q={search_term}",
  "query-input": "required name=search_term"
}

此类型描述了一个搜索操作,包括搜索请求的 URL 和搜索词的占位符。

EducationalOccupationalProgram(教育职业项目)

EducationalOccupationalProgram 类型用于定义教育和职业培训项目的元数据。

示例

{
  "@context": "https://schema.org",
  "@type": "EducationalOccupationalProgram",
  "name": "数据分析培训课程",
  "educationalCredentialAwarded": "数据分析师证书",
  "provider": {
    "@type": "Organization",
    "name": "赛可教育机构"
  },
  "educationalCredentialAwarded": "证书",
  "educationalCredentialLevel": "中级"
}

此类型用于描述提供的教育或职业培训课程,通常包括课程名称、证书类型和提供者等信息。

JobPosting(职位发布)

JobPosting 类型用于定义招聘信息,可以在职位描述、招聘公司等方面提供结构化数据。

示例

{
  "@context": "https://schema.org",
  "@type": "JobPosting",
  "title": "数据分析师",
  "description": "负责分析公司数据,提供决策支持。",
  "datePosted": "2025-03-01",
  "hiringOrganization": {
    "@type": "Organization",
    "name": "赛可科技公司",
    "sameAs": "https://www.psyctest.cn"
  },
  "jobLocation": {
    "@type": "Place",
    "address": {
      "@type": "PostalAddress",
      "streetAddress": "深圳市南山区科技园",
      "addressLocality": "深圳",
      "addressRegion": "广东",
      "postalCode": "518000"
    }
  }
}

此类型用于描述一个职位的招聘信息,包含职位名称、公司、工作描述、招聘时间和工作地点等信息。

结语

以上就是关于 JSON-LD 类型的各种使用示例、介绍及说明。通过合理运用这些不同类型的 JSON-LD 结构化数据,可以使网页内容在搜索引擎中得到更准确、更丰富的展示,从而提高网站的可见性和用户体验。无论是对于内容创作者、网站开发者还是电商从业者,了解和掌握 JSON-LD 类型的使用都具有重要的意义。随着搜索引擎算法的不断发展和完善,对结构化数据的支持和重视程度也在不断提高。因此,持续关注 JSON-LD 相关标准和规范的更新,及时调整和优化网站的结构化数据,将有助于保持网站在搜索结果中的竞争力。

更多 JSON-LD 相关内容请参考:


也可以看看