Re: [Wikidata] Wikidata Redirects in dumps

2016-12-13 Thread Daniel Kinzler
Am 12.12.2016 um 20:53 schrieb Praveen Balaji:
> When using JSON dumps, how can I tell a redirected entity from the JSON dumps

If you look at the ID of the entity you get when you ask for
, you will
notice that it does not have the ID you requested. This way, you know that you
have been redirected.

-- 
Daniel Kinzler
Senior Software Developer

Wikimedia Deutschland
Gesellschaft zur Förderung Freien Wissens e.V.

___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


[Wikidata] Wikidata Redirects in dumps

2016-12-13 Thread Praveen Balaji
Hi
I had a short conversation with Stas earlier about this, but thought I'd
continue the conversation on the group for general interest.

In the wikidata JSON dumps, I noticed that Redirects are inlined. For
example:

Q6703218 
redirects
to Q24836918 . However, I do not
see this information in the json. The Redirect reference has been inlined:

https://www.wikidata.org/wiki/Special:EntityData/Q24836918.json
https://www.wikidata.org/wiki/Special:EntityData/Q6703218.json

There is a owl:sameAs annotation when I use the SPAQRL query: SPARQL:
Q6703218



When using JSON dumps, how can I tell a redirected entity from the JSON
dumps

Thanks
Praveen
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata