Husky added a comment.

@Lea_Lacroix_WMDE what i basically want is an option to use the wbgetentities method with an option to query by label in the same way you can query ids or titles. I was working on matching a set of street names to WD items, i could of course do an individual query for each street using wbsearchentities, but then i can only query one item at a time. So basically i could imagine something like:

https://www.wikidata.org/w/api.php?action="">

And then get back a similar result that you get when using the titles or ids parameter. It's fine if the matching is strict (so it won't return "Berlin Alexanderplatz" as well). So something like this when i would to the query mentioned above:

{
  "entities": {
    "Q64": {
      "id": "Q64",
      "labels": {
        "en": {
          "language": "en",
          "value": "Berlin"
        },
        "nl": {
          "language": "nl",
          "value": "Berlijn"
        }        
      },
      "type": "item"
    },
    "Q641": {
      "id": "Q641",
      "labels": {
        "en": {
          "language": "en",
          "value": "Venice"
        },
        "nl": {
          "language": "nl",
          "value": "Venetiƫ"
        },        
      },
      "type": "item"
    },
    "Q727": {
      "id": "Q727",
      "labels": {
        "nl": {
          "language": "nl",
          "value": "Amsterdam"
        },
        "en": {
          "language": "en",
          "value": "Amsterdam"
        }        
      },
      "type": "item"
    }
  },
  "success": 1
}

TASK DETAIL

EMAIL PREFERENCES

To: Husky
Cc: Lea_Lacroix_WMDE, matej_suchanek, Edgars2007, Husky, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to