2

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?

2

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 Mar 26 '18 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 Mar 26 '18 at 4:58
  • Thanks for the PDF, the title sounds like it was written exactly to address my problem! – Nicolas Raoul Mar 26 '18 at 5:03
2

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:

SELECT 
  ?item
  ?uri
WHERE {
  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 Jul 2 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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