Sub topic 7
Knowledge Graphs and Public Entity Records
This chapter assumes you know what an entity is, how parametric knowledge differs from retrieval, and how to read basic JSON. It covers what a knowledge graph is, which public records feed one, and how to check and fix your brand's record.
What a knowledge graph is
A knowledge graph is a database that stores facts as connections between entities. Each fact is a triple: a subject, a relationship, and an object. "Example Analytics" (subject) "was founded in" (relationship) "2016" (object) is one triple. Millions of triples linked together form a graph.
Each entity in the graph gets a unique identifier. The identifier matters more than the name. Two companies called "Apex" have different identifiers, so the graph keeps their facts apart. A page of text cannot do this reliably, because a name on a page is only a string.
Search engines have used knowledge graphs for years to build entity panels and to answer factual queries. AI assistants can use the same kind of data in two ways:
- During training. Public records such as Wikipedia and Wikidata are part of the text a model learns from. Facts that are stated clearly and consistently there are more likely to be learned correctly.
- During retrieval. A system that looks up sources at answer time may query a graph or search index that uses entity records to decide which entity a query refers to.
How much any one assistant relies on a given graph is not public. Treat the graph as one strong source of evidence among several, not as a switch you control.
Which public records matter
Not every record carries the same weight. The table lists common ones and what each is good for.
| Record | Who edits it | What it gives a model |
|---|---|---|
| Wikidata | Anyone, under community rules | A stable identifier (a "Q-number"), a description, and linked properties such as founding date and official website |
| Wikipedia | Volunteer editors, under notability rules | A long, neutral description in prose, with citations |
| Official company registries | Government bodies, filed by the company | Legal name, registration number, address, status |
| Business profiles (for example Google Business Profile) | The business owner | Name, category, location, contact details |
| Industry directories and databases | Varies | Category membership and basic facts |
| Code and package hosts (for example GitHub) | The owner | Evidence for software products |
Two points apply to all of them.
First, notability rules limit what you can claim. Wikipedia and Wikidata accept entries only when independent, reliable sources cover the subject. A young company with no press coverage will usually be rejected, and repeated attempts can hurt. Notability comes from the third-party coverage covered in a later chapter. It is a result of that work, not a shortcut around it.
Second, conflicts of interest are policed. Wikipedia asks people with a financial interest to disclose it and to propose changes on talk pages instead of editing the article directly. Follow that process. Undisclosed promotional edits get reverted and can damage how editors view the brand.
Wikidata in practice
Wikidata is the most useful record to understand because it is structured, public, and machine-readable. An item has:
- a label (the preferred name) and aliases (other names)
- a short description
- statements, each made of a property and a value, such as "instance of: business" or "official website: https://www.example.com/"
- identifiers that link to the same entity in other databases
You can read any item without an account. The following script fetches an item's label, aliases and statement count from the public API. It makes one network request, so run it with a real item ID (here Q42, a well-known example item) and replace it with your own when you have one.
import json
import urllib.request
ITEM_ID = "Q42"
URL = f"https://www.wikidata.org/wiki/Special:EntityData/{ITEM_ID}.json"
request = urllib.request.Request(
URL, headers={"User-Agent": "entity-check/1.0 ([email protected])"}
)
with urllib.request.urlopen(request, timeout=20) as response:
data = json.load(response)
entity = data["entities"][ITEM_ID]
label = entity["labels"].get("en", {}).get("value", "(no English label)")
aliases = [a["value"] for a in entity["aliases"].get("en", [])]
description = entity["descriptions"].get("en", {}).get("value", "(none)")
print("Label:", label)
print("Description:", description)
print("Aliases:", ", ".join(aliases) or "(none)")
print("Statements:", sum(len(v) for v in entity["claims"].values()))Use this as an audit. Check that the label matches your preferred name, that aliases include the variants people use, and that the official website statement points to your current domain. Stale values here, such as an old domain or a former name, are the kind of error that spreads into answers.
Connecting your own markup to these records
Your website can tell machines which public record describes you. The sameAs property in schema.org markup lists URLs that identify the same entity elsewhere. Wikidata and Wikipedia URLs are the strongest values to include, alongside official profiles. A later chapter covers the full Organization markup. This extract shows only the part relevant here:
{
"@context": "https://schema.org",
"@type": "Organization",
"@id": "https://www.example.com/#organization",
"name": "Example Analytics",
"sameAs": [
"https://www.wikidata.org/wiki/Q42",
"https://en.wikipedia.org/wiki/Example_Analytics",
"https://www.linkedin.com/company/example-analytics"
]
}The link works in both directions. Your markup points to the record, and the record's "official website" statement points back to your site. When both sides agree, a system that merges data from several sources has an easy time deciding they describe one entity. Only list records that really describe you. A sameAs link to the wrong item is worse than none, because it asserts a false identity.
Checking your current record
Before changing anything, find out what exists. Work through these steps.
- Search Wikidata for your brand name and each alias. Note any items that match, including duplicates and items for similarly named companies.
- Search Wikipedia for the same names. Check whether an article exists, whether it is a redirect, and whether a disambiguation page lists several entities with your name.
- Look up your registered legal name in the official registry for your country and compare it to the name on your website.
- Check the business profile and main directories for the same name, address and category.
- Ask several AI assistants a plain question such as "What is Example Analytics?" and compare their descriptions to the records you found. Differences point to which record may be wrong or missing.
Record each finding in a sheet with columns for source, name shown, key facts shown, and whether it matches your preferred facts. This becomes your fix list.
Fixing problems
Match the action to the situation.
| Situation | Action |
|---|---|
| No Wikidata item and you are not clearly notable | Do not create one yet. Build third-party coverage first. |
| Wikidata item exists with wrong facts | Edit the statement and cite a reliable source, or raise it on the item's talk page if you have a conflict of interest. |
| Another company shares your name | Use a distinct description, include a category or location in your public descriptions, and rely on `sameAs` links to separate you. |
| Registry name differs from your brand name | Use the legal name in the `legalName` property and the brand name in `name`, so both are on record. |
| Wikipedia article is outdated | Propose changes on the talk page with independent sources. |
Changes take time to appear. Search engines may refresh their graphs within days or weeks. A model's training data changes only when the provider trains a new version, which can take months. Retrieval-based systems may reflect a fix sooner.
Limits and uncertainty
- Providers do not publish which graphs or records they use, so you cannot know how much a Wikidata fix changes any assistant's answers. Treat it as likely helpful, not proven.
- A record can be correct and still not appear in answers. The model may rely on text it saw more often.
- Public records can be wrong for reasons outside your control, such as vandalism or a bad source. Check them on a schedule, for example quarterly.
- Notability rules mean some brands cannot have an entry. For them, registry data, business profiles, markup and third-party coverage carry the load.
Exercise
Your company, "Apex Reports", finds that a Wikidata item with the label "Apex Reports" exists, but its official website statement points to an old domain you no longer use, and its description says "defunct software company". You are the marketing lead and have a financial interest. What should you do, and what should your website markup include afterward?
Show answer
Do not make promotional edits silently. Disclose your connection, then correct the factual errors (the official website and the description) with a reliable, citable source, or raise them on the item's talk page and ask neutral editors to apply them. After the record is accurate, add the item's Wikidata URL to the sameAs list in your Organization markup, keep the same @id across pages, and make sure the name and aliases match the record. Re-check the record later and compare how AI assistants describe the company.
Exercise
Why is a sameAs link to the wrong Wikidata item worse than leaving it out?
Show answer
The link asserts that your organization is the same entity as the linked item. A system that merges data from your site and the public record may then attach the other entity's facts to your brand, or the reverse. Without the link, systems can still match you through name, URL and other signals, with less risk of a false identity.