GeoDB Cities

부분 유료
Verified
분류별 Michael Mogley | 업데이트됨 16 days ago | Data
인기

9.9 / 10

지연 시간

59ms

서비스 수준

100%

Health Check

100%

모든 토론으로 돌아가기

Details not Coming for a WikidataId

Rapid account: Plgupa
plgupa
3 years ago
The city details for following wikidataid are not coming - Q66568.
Please check.
Rapid account: Wirefreethought
wirefreethought Commented 3 years ago

You got it.

Rapid account: Plgupa
plgupa Commented 3 years ago

Yes, it works now. Thanks for helping.

Rapid account: Wirefreethought
wirefreethought Commented 3 years ago

Just a note that the import process has been patched to prefer Wikidata entries with lower IDs in case of duplicate Geonames IDs. This has had the effect of changing the Wikidata ID for Kanpur to Q66568

Rapid account: Wirefreethought
wirefreethought Commented 3 years ago

As I mentioned, GeoDB doesn’t guarantee reverse mappings from Wikidata. In other words, there is no guarantee that a Wikidata ID for a city you find on Wikidata can be found by that id in GeoDB. The other direction however is guaranteed. That is, if you find a city in GeoDB, its Wikidata ID (as returned by GeoDB) will reference an entry in Wikidata. So to answer your question, the way to find the Wikidata ID for Kanpur is to use GeoDB, as in:

GET /v1/geo/cities?namePrefix=kanpur&types=CITY

GeoDB will match on the name, irrespective of the ā character. (It will match on the ASCII equivalent: a)

Rapid account: Plgupa
plgupa Commented 3 years ago

The city name corresponding to Q31856807 is Kānpur on wikidata, in which the second character is not an english alphabet.

Please tell me the correct way to find the wikidataID for a city name.

Rapid account: Plgupa
plgupa Commented 3 years ago

I used Wikidata(https://en.wikipedia.org/wiki/Wikipedia:Finding_a_Wikidata_ID) to determine the city ID.

Can you please tell me the correct way to find the wikidataID for a city name?

Rapid account: Wirefreethought
wirefreethought Commented 3 years ago

Can you tell me how you determined Q66568? Was this through a search on Wikidata, or a GeoDB namePrefix=Kanpur search?

Rapid account: Wirefreethought
wirefreethought Commented 3 years ago

GeoDB reference references this city using Q31856807. The back-link from Wikidata to GeoDB is not guaranteed, since Wikidata may have duplicate entries for a given city. Having said that, I will have a look later to see why the import process prefers Q31856807 over Q66568.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입