Wikidata and ImageNet both know oxcarts:

An AI library gives me the ImageNet "synset" about oxcarts.

From this "synset", how to get the equivalent Wikidata item?


3 Answers 3


You may want to see ImageNet to Wikidata mapping (I am the co-author), which extends the work of Finn Arup Nielsen.

We linked the ILSVRC 2012 dataset (often simply referred as ImageNet) labels to Wikidata entities. This enables using rich knowledge graph structure and contextual information for several computer vision tasks, traditionally benchmarked with ImageNet and its variations. We mapped all 1000 ImageNet labels - 461 were already directly linked with the exact match property (P2888), 467 have exact match candidates, and 72 cannot be matched directly. For these 72 labels, we proposed semantically close non-exact match candidates are presented as well.

More details in the paper.


I have used the P2888 property for linking WordNet synset URIs with Wikidata item, and as pointed out by Stanislav Kralin written about it in the article Linking ImageNet WordNet Synsets with Wikidata.

Provided that the URI is available with the P2888 property, you may then query with the Wikidata Query Service at https://query.wikidata.org. For instance, with string "n03868242" (oxcart) embedded in the SPARQL:

  BIND(URI(CONCAT("http://wordnet-rdf.princeton.edu/wn30/", SUBSTR("n03868242", 2), "-n")) AS ?uri)
  ?item wdt:P2888 ?uri . 

Wikidata Query Service link: http://tinyurl.com/y7eeo78p

Currently, there are 475 linked items (http://tinyurl.com/y9s26qm6), so the mapping is not complete.

Also note that I do not think we have reached consensus on how this mapping should be done, e.g., see the discussion at https://www.wikidata.org/wiki/Talk:Q1190777.

  • 1
    I modified your query to also output each item's label and Commons category if available: w.wiki/5Y2
    – Nicolas Raoul
    Commented Jul 2, 2019 at 9:49

ImageNet more or less consistently uses WordNet synset IDs.
There is the Wordnet synset ID property proposal on Wikidata.

Currently, the only option available is to use BabelNet which has WordNet as one of the sources.

This page mentions Wikidata as another source, but I can find DBpedia entities only with BabelNet SPARQL endpoint. Probably this means:

  • one should use known DBpedia-Wikidata mappings;
  • one should use the BabelNet Id Wikidata property (~ 60 000 uses in Wikidata).

See @FinnÅrupNielsen's article for interesting details.

  • This proposal has been withdrawn.
    – Nicolas Raoul
    Commented Mar 26, 2018 at 4:54
  • 1
    So, your proposed solution is to: 1) From the ImageNet "synset", get the BabelNet id 2) From the BabelNet id, see whether a Wikidata item has it 3) If there is none, see if a DBpedia item has it. Am I understanding correctly? Thanks! :-)
    – Nicolas Raoul
    Commented Mar 26, 2018 at 4:58
  • Thanks for the PDF, the title sounds like it was written exactly to address my problem!
    – Nicolas Raoul
    Commented Mar 26, 2018 at 5:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.