Currently you have to just query the API (you can use 
pywikibot.data.api.Request for this), and use the actions wbgetclaims, 
wbgetentities, or wbsearchetities, depending on what you want. You can use the 
API Sandbox, or the API itself to help you developing the queries.


 
Hazard-SJ



________________________________
 From: Chinmay Naik <[email protected]>
To: [email protected] 
Sent: Tuesday, July 9, 2013 1:07 PM
Subject: [Pywikipedia-l] Querying wikidata
 


Hi,

I am Chinmay, a Gsoc intern working on GeneBot. The bot will capture fields of 
Protein Box Templates onto wikidata. I am using pywikipedia-rewrite branch to 
query wikidata. 

Using the framework i can access wikidata items through their 
identifiers(Reelin item -- Q414043) or through the default linked wikidata item 
to the Wikipedia page.


For some properties(ex GenLoc assembly) the value type is ITEM.I am stuck on 
keeping track of wikidata items.

Is there any other mechanism to obtain wikidata items? ex : search by title? , 
property based retreival ?
The bot code is hosted here -- 
[https://bitbucket.org/chinmay26/genebot/wiki/Home]. Any suggestions are 
welcome.

Regards,
Chinmay

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to