← Resources

/m/ vs /g/ KGMIDs: what the prefix means

KGMIDs start with /m/ or /g/. The prefix shows where the entity came from, Freebase or Google, not how strong it is.

Unfair Links cover for "/m/ vs /g/ KGMIDs: what the prefix means": a card moving from an old archive box to a new one

A KGMID that starts with /m/ came from Freebase, the database that seeded Google’s Knowledge Graph. One that starts with /g/ was created by Google itself, almost always after 2015. Neither is better. The prefix tells you where an entity came from, not how much Google trusts it.

/m/ IDs: the Freebase era

Freebase was an open, community-edited database of entities. Google acquired it and used it as one of the sources for the Knowledge Graph when it launched in 2012. Freebase IDs start with /m/, for example /m/0dl567.

On 16 December 2014 the Freebase team at Google announced the project would close and its data would move to Wikidata:

  • 31 March 2015: Freebase became read-only and stopped accepting edits.
  • 30 June 2015: the Freebase website and APIs were due to retire.
  • Replacement: Google said it would launch a new entity search API powered by the Knowledge Graph.

Entities that existed in Freebase kept their /m/ IDs inside Google. On Wikidata they are stored as the Freebase ID property.

/g/ IDs: created by Google

Once Freebase stopped growing, new entities needed IDs from somewhere else. Google creates those, and they start with /g/, for example /g/11kgg0l8s8. Kalicube sums it up: “Everything that is /g was created since 2015.”

On Wikidata these are stored as the Google Knowledge Graph ID property.

Is an /m/ ID stronger?

No. An /m/ ID only tells you the entity was in Freebase before 2015. That usually means a well-known person, place, brand or topic, because those were what Freebase covered.

Local businesses are a different case. Most were never in Freebase, so a local business with a KGMID will almost always have a /g/ ID. That’s what you should expect, and it’s the same kind of ID Google gives any entity it has recognised since 2015.

What makes a local entity strong is what’s attached to the ID: a verified Google Business Profile, a review history, consistent details across the web and active social profiles. The prefix tells you none of that.

Quick reference

Prefix Created by When Wikidata property
/m/ Freebase (migrated into Google) Before 2015 Freebase ID
/g/ Google Since 2015 Google Knowledge Graph ID