Skip to content

How to Build a Knowledge Graph for Your Company’s Website

Connected nodes for company, people and documents above a web page, illustrating a website knowledge graph

A website knowledge graph turns your site from a collection of pages into a collection of connected entities. Your company, products, services, people and articles each get a stable identity and clear relationships. Search engines and AI systems can then understand what you are, not just which words appear on your pages.

This guide explains the core concepts, from entities and triples to JSON-LD, and walks through mapping, identifiers, duplicate resolution, external links and validation. It includes an example entity graph and a mapping table you can copy into a spreadsheet.

What are entities, attributes and relationships?

Short answer: An entity is a distinct thing, such as a company, product or person. Attributes describe it, such as a name or founding date. Relationships connect entities, such as a person who works for a company or an article written by an author.

For example, “Example Co” is an Organization entity. Its attributes include a URL and a logo. A relationship links Jane Doe, a Person entity, to Example Co through worksFor. Together, these pieces form a small graph.

How does a website knowledge graph differ from keyword optimization?

Short answer: Keyword optimization targets words on individual pages. A website knowledge graph describes the real-world things behind those pages and how they relate, so systems can recognize the same entity across every page and every external source.

Topic Keyword optimization Website knowledge graph
Unit Page and keyword Entity and relationship
Goal Rank a page for a query Make entities unambiguous and connected
Consistency Per page Across the whole site and external profiles
Output Optimized copy and metadata Linked structured data and an entity register

The two work together. Good pages still matter, but the graph makes sure every page points to the same, clearly defined company and people.

What are RDF, triples and JSON-LD?

Short answer: RDF is a data model that stores facts as triples: subject, predicate and object. JSON-LD is a JSON format for writing those triples on web pages, using vocabulary from Schema.org.

A triple reads like a sentence. “Example Co, has logo, logo.png” is one. “Article 42, has author, Jane Doe” is another. JSON-LD expresses many triples at once in a format browsers ignore and machines read. The W3C JSON-LD specification defines the format, and Schema.org supplies the types and properties most search systems understand.

How do you map company, product, service and author entities?

Short answer: List every important entity in a register, give each a type, a canonical page and a stable identifier, and record its key relationships. This mapping spreadsheet becomes the source of truth for your website knowledge graph.

Entity Type @id Canonical page Key relationships sameAs
Example Co Organization /#organization / publisher of website and articles LinkedIn, G2
Example Co website WebSite /#website / publisher: Example Co None
Invoice onboarding Service /services/onboarding/#service /services/onboarding/ provider: Example Co None
Jane Doe Person /team/jane-doe/#person /team/jane-doe/ worksFor: Example Co LinkedIn
Invoice automation guide Article /blog/invoice-automation/#article /blog/invoice-automation/ author: Jane Doe None

Copy the table into a spreadsheet and add a row for each product, service, author and key piece of content.

How do you create persistent entity identifiers?

Short answer: Use the entity’s canonical URL plus a fragment, such as https://www.example.com/#organization, as its @id. Keep it unchanged forever, even if page designs or titles change.

Stable identifiers are what turn scattered markup into one graph. Every page that mentions the company should reference the same @id instead of repeating its details. As a result, systems see one entity described many times, not many slightly different entities.

Here is a complete company-level entity architecture expressed as a single JSON-LD graph:

{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://www.example.com/#organization",
      "name": "Example Co",
      "url": "https://www.example.com/",
      "logo": "https://www.example.com/logo.png",
      "description": "Example Co is a B2B software company that helps finance teams automate invoicing.",
      "sameAs": [
        "https://www.linkedin.com/company/example-co",
        "https://www.g2.com/products/example-co"
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://www.example.com/#website",
      "url": "https://www.example.com/",
      "name": "Example Co",
      "publisher": { "@id": "https://www.example.com/#organization" }
    },
    {
      "@type": "Service",
      "@id": "https://www.example.com/services/onboarding/#service",
      "name": "Invoice automation onboarding",
      "serviceType": "Software implementation",
      "provider": { "@id": "https://www.example.com/#organization" },
      "areaServed": "Worldwide"
    },
    {
      "@type": "Person",
      "@id": "https://www.example.com/team/jane-doe/#person",
      "name": "Jane Doe",
      "jobTitle": "Head of Product",
      "worksFor": { "@id": "https://www.example.com/#organization" },
      "sameAs": ["https://www.linkedin.com/in/jane-doe-example"]
    },
    {
      "@type": "Article",
      "@id": "https://www.example.com/blog/invoice-automation/#article",
      "headline": "How to automate invoice approvals",
      "datePublished": "2026-11-01",
      "dateModified": "2026-11-20",
      "author": { "@id": "https://www.example.com/team/jane-doe/#person" },
      "publisher": { "@id": "https://www.example.com/#organization" },
      "isPartOf": { "@id": "https://www.example.com/#website" }
    }
  ]
}

How do you resolve duplicate and ambiguous entities?

Short answer: Search your markup for entities that describe the same thing with different names or identifiers, merge them into one @id and update every reference. Then align names and descriptions with your external profiles.

  • Duplicate organizations: a plugin and a theme both output Organization markup with different names.
  • Duplicate authors: the same person appears as “Jane Doe” and “J. Doe” with separate identifiers.
  • Ambiguous names: a product shares a name with another company’s product, so you need a clear description and sameAs links.

Fix duplicates at the source, usually in your CMS templates or SEO plugin settings, so they do not come back.

How do you connect internal and external entity references?

Short answer: Inside your site, link entities with @id references. Outside, use sameAs to point to official profiles and trusted databases, such as LinkedIn, Wikidata or Crunchbase, that describe the same entity.

External links help systems confirm that your entity matches what other sources describe. They work best when the external profiles use the same name, description and website URL. Our guide on brand authority in AI search covers why that consistency matters.

How do you validate semantic consistency across a website?

Short answer: Check that every @id reference points to a defined entity, that each entity has one identifier and that names match across pages. Combine validators with a simple script and a periodic crawl.

This script flags references to entities that do not exist in your graph:

import json, sys

graph = json.load(open(sys.argv[1], encoding="utf-8"))["@graph"]
defined = {node["@id"] for node in graph if "@id" in node}
refs = []

def walk(obj):
    if isinstance(obj, dict):
        if set(obj) == {"@id"}:
            refs.append(obj["@id"])
        for value in obj.values():
            walk(value)
    elif isinstance(obj, list):
        for value in obj:
            walk(value)

walk(graph)
missing = sorted(set(refs) - defined)
print(f"{len(defined)} entities, {len(refs)} references")
print("Broken references:", missing or "none")

On the example graph above, it found five entities, six references and no broken links. For a full site, crawl your pages, extract every JSON-LD block, merge them and run the same check. Also validate syntax with the Schema Markup Validator. For the page-level templates, see our guide to structured data for AEO.

Frequently asked questions about building a website knowledge graph

Do I need a graph database to build a website knowledge graph?

No. For most companies, JSON-LD on your pages plus an entity spreadsheet is enough. Graph databases help only for large catalogs or internal search projects.

Is a website knowledge graph the same as Google’s Knowledge Graph?

No. Google’s Knowledge Graph is Google’s own database. Your website knowledge graph is the structured description you publish, which Google and others may use as one input.

How many entities should we start with?

Start with the organization, website, main products or services and the authors who publish content. Expand once those are consistent.

Will a knowledge graph get us into AI answers?

It reduces ambiguity, but it does not guarantee citations. Content quality, crawl access and third-party mentions still matter most.

Who should own the entity register?

Usually SEO or marketing operations, with input from web development. One owner keeps identifiers stable over time.

Next step

Build the entity register this week, starting with your organization and top five entities. Then align your JSON-LD and external profiles with it.

Want more practical guides on building a website knowledge graph? Browse the latest articles on the Blippu blog.

See all articles