I'm calling the KG API:
&prefix=true
so I expect to see only results with names that starts with dog
, but I see a few which don't comply. Why?
I'm calling the KG API:
&prefix=true
so I expect to see only results with names that starts with dog
, but I see a few which don't comply. Why?
This is similar to Google Knowledge Graph Search API weird results.
Internally it actually searches for prefix for names and alternativeNames, but it uses all languages (and aliases). Therefore, when you search for
query=Влад&prefix=true&languages=en
, you will get"name": "Vladimir Lenin"
in a response, even though this string does not start withВлад
.