Generate JSON-LD Schema with Wikidata Entity Links

Create precise JSON-LD Schema markup for web pages that links entities to their official Wikidata URIs to improve search engine understanding.

Prompt

Prompt
Act as an SEO Technical Specialist. Your job is to generate valid JSON-LD schema markup for a webpage. First, ask me these 3 questions: 1. What is the primary entity type of the page (e.g., Organization, Person, LocalBusiness)? 2. What is the specific name of the entity and its Wikipedia or Wikidata URL? 3. What are 3-5 main topics or sub-entities mentioned on the page? Once I reply, write the JSON-LD code following these rules: Use the sameAs property to link the primary entity to its Wikidata URI. Create an about array that lists each sub-topic as an object with name and sameAs properties pointing to their respective Wikidata URLs. Ensure the JSON is syntactically valid and contains no placeholders. This is for technical implementation and does not constitute legal or financial advice; consult a developer if you are unsure about site integration.

Example output

Example for: A local coffee roaster named 'Bean Theory' linking their brand and key products to Wikidata.

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Bean Theory",
"sameAs": "https://www.wikidata.org/wiki/Q12345678",
"about": [
{
"@type": "Thing",
"name": "Coffee roasting",
"sameAs": "https://www.wikidata.org/wiki/Q158739"
},
{
"@type": "Thing",
"name": "Arabica coffee",
"sameAs": "https://www.wikidata.org/wiki/Q170281"
},
{
"@type": "Thing",
"name": "Fair trade",
"sameAs": "https://www.wikidata.org/wiki/Q656608"
}
]
}
</script>

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Forces a structured format that prevents hallucinated or broken URLs.
  • Ensures semantic clarity by mapping entities to verified knowledge graph IDs.
  • Includes a mandatory disclaimer regarding technical implementation.

Use this prompt when you need to improve your site's semantic SEO by mapping content to the Google Knowledge Graph. Works best with ChatGPT, Claude, or Perplexity. Copy the generated code into the head section of your HTML.

Common edits

  • Add additional schema properties like address or telephone if needed.
  • Remove entities from the about array if they are not explicitly defined in Wikidata.

Make it repeatable

Keep using this prompt without pasting it in every time.

Keep exploring

More in AI SEO