Verwenden JSON-LD für linked Daten und SEO
JSON-LD (Linked Daten) serializes RDF triples in JSON, enabling search engines in understand entity relationships. Verwendet für Schema.org structured Daten.
- 1
JSON-LD represents linked data as JSON with a @context that maps terms to IRIs. It is the recommended format for Schema.org structured data in HTML. Search engines (Google, Bing) parse JSON-LD to understand your content — articles, products, events, reviews — and display rich results.
- 2 JSON-Formatierer →
Formatieren your JSON-LD to ensure valid syntax. The @context, @type, and property names must be correct. Common types: Article, Product, Event, Organization, Person, BreadcrumbList. Format to catch typos and structural errors.
- 3 JSON-Validator →
Validieren the JSON-LD structure. Check that @context is a valid URL (typically "https://schema.org"), @type is a known Schema.org type, and required properties are present. Missing required properties can cause Google to ignore the structured data.
- 4
Embed JSON-LD in HTML as a <script type="application/ld+json"> block in the <head>. Use Google's Rich Results Test to verify. Common patterns: Article (headline, author, datePublished), Product (name, price, availability), BreadcrumbList (for navigation). Use @graph for multiple entities on one page.
Häufige Fragen
- JSON-LD vs Microdata vs RDFa?
- Google recommends JSON-LD — it is the easiest to implement and maintain. Microdata and RDFa embed structured data in HTML attributes, which is harder to manage. JSON-LD is a separate script block that can be generated server-side and injected.
- What is @graph?
- @graph is used when a page contains multiple entities. Instead of a single object, use {"@context": "...", "@graph": [entity1, entity2, ...]}. Each entity in the array is a separate linked data node. This is common for pages with multiple products or articles.