Thanks for an early response.
@Magnus: I was able to get the json of the items. Still thanks. However, my exact problem is the following.
I had downloaded the wikidata dump from http://dumps.wikimedia.org/wikidatawiki/latest/ There is a file wikidatawiki-20140420-pages-articles-multistream-index which consists of triplets like:
537:114:Q17
which I interpreted as following: 537 - category of the topic (which I am unable to find. I want the details of this item) 114 - page_id of the item Q17. Q17 - which is the item. (JSON: https://www.wikidata.org/wiki/Special:EntityData/Q17.json)
I want to know whether my interpretation is correct. If it is correct, how can I get the details abt the category 537. If my interpretation is incorrect, how can I get the wikidata category to which an item belongs to?
Thanks and Regards!
On Thu, Jul 3, 2014 at 7:17 PM, Magnus Manske magnusmanske@googlemail.com wrote:
Hi Rohan,
if by category you mean "item", e.g. https://www.wikidata.org/wiki/Q537
the easiest way to get the corresponding JSON is: https://wikidata.org/entity/Q537.json
If you want a JSON object for all items with property P537, try: http://wdq.wmflabs.org/api?q=claim%5B537]
See here for many more options to interrogate Wikidata: http://wdq.wmflabs.org/api_documentation.html
Cheers, Magnus
On Thu, Jul 3, 2014 at 10:03 AM, Rohan Badlani rohan.badlani@gmail.com wrote:
Hi!
I am new to WikiData. I wanted to know how can we get the json belonging to a category. Say I want to access the json belonging to Category 537. If I can get the Json, can you pls specify how I can access this json?
Main Aim: I want to know what Category 537 means and the sub categories and topics within this category.
Regards!
--
*Rohan Badlani * 2nd year undergraduate student, B.E.(Hons), Computer Science, Birla Institute of Technology and Science, Pilani.
Email: rohan.badlani@gmail.com Phone: +91-9660582805.
Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
-- undefined
Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l