Inferensys

Glossary

Google Knowledge Graph ID

A unique machine-generated identifier (kg:/m/...) assigned by Google to every entity in its Knowledge Graph, distinct from human-curated identifiers like Wikidata Q-Nodes.
Knowledge manager reviewing enterprise knowledge management system on laptop, document library visible, casual office.
ENTITY IDENTIFIER

What is Google Knowledge Graph ID?

A unique machine-generated identifier assigned by Google to every entity in its Knowledge Graph, distinct from human-curated identifiers like Wikidata Q-Nodes.

A Google Knowledge Graph ID (kg:/m/...) is a unique, machine-generated alphanumeric string assigned by Google's algorithms to a specific entity within its internal Knowledge Graph. Unlike a human-curated Wikidata Q-Node, this identifier is created automatically during Google's entity reconciliation and knowledge extraction processes to serve as a canonical, non-colliding reference for that real-world object, concept, or place.

This identifier acts as the primary key for Google's entity understanding, linking disparate web mentions to a single, unified node. It is distinct from a Canonical URI in linked data but serves a similar purpose for consolidation. Developers encounter these IDs in APIs or knowledge panel URLs, using them for Entity Reconciliation to ensure their structured data, such as JSON-LD Serialization, correctly aligns with Google's understanding of their organization or topic.

IDENTITY ANATOMY

Key Characteristics of a Knowledge Graph ID

A Google Knowledge Graph ID (kg:/m/...) is a machine-generated, opaque string that serves as the canonical, immutable identifier for a specific entity within Google's index. Unlike human-readable Q-Nodes, it is algorithmically assigned and optimized for internal graph resolution.

01

Machine-Generated Opaque String

The ID is an algorithmically assigned alphanumeric string (e.g., /m/0dl567) with no inherent semantic meaning. It is not human-curated or human-readable. Its sole purpose is to act as a unique primary key within Google's massive internal graph database, ensuring that the entity for 'Apple Inc.' is never confused with the fruit.

02

Distinction from Wikidata Q-Node

A Wikidata Q-Node (e.g., Q312) is a human-curated, open-source identifier from the Wikimedia ecosystem. A Knowledge Graph ID is a proprietary Google construct. While Google often reconciles its IDs against Wikidata using sameAs assertions, the KG ID is the authoritative internal token for Google's own search features, including Knowledge Panels.

03

The `/g/` vs. `/m/` Prefix

The prefix indicates the source corpus used for entity extraction:

  • /m/: Derived from Freebase, the original community-curated knowledge base acquired by Google. These represent older, well-established entities.
  • /g/: Generated by Google's internal Knowledge Vault algorithms, typically for entities extracted directly from the web that had no prior Freebase entry.
04

Canonical Entity Resolution

The KG ID functions as the ultimate canonical URI within Google's ecosystem. During entity reconciliation, Google maps all textual mentions, misspellings, and synonymous references to this single ID. This consolidation prevents identity fragmentation and ensures that the 'knowledge panel' aggregates all facts under one authoritative node.

06

Immutable & Persistent Anchor

Once assigned, a Knowledge Graph ID is effectively permanent. Even if an entity's name changes (rebranding) or its attributes evolve, the ID remains constant. This immutability makes it a reliable semantic anchor for long-term entity linking strategies and ensures historical data integrity within Google's index.

KNOWLEDGE GRAPH IDENTITY

Frequently Asked Questions

Technical answers to common questions about Google Knowledge Graph IDs, their relationship to Wikidata Q-Nodes, and their role in entity disambiguation for generative AI systems.

A Google Knowledge Graph ID (KG ID) is a unique machine-generated alphanumeric identifier, typically formatted as kg:/m/... or /g/..., that Google assigns to every distinct entity within its proprietary Knowledge Graph. Unlike human-curated identifiers, KG IDs are algorithmically created during Google's entity extraction and reconciliation pipelines. The ID serves as a canonical, immutable pointer that disambiguates entities with identical names—for example, distinguishing 'Paris' the city (kg:/m/05qtj) from 'Paris' the mythological figure. When Google's crawlers process web content, they perform entity linking to map textual mentions to these internal IDs, enabling the search engine to build a structured understanding of relationships between people, places, organizations, and concepts. For generative engine optimization, understanding KG IDs is critical because AI-generated overviews and knowledge panels pull directly from this entity index to construct factual, attributed responses.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.