Hi,
would you know how i could use the API to get articles about musicians among disambiguation results ?
Examples are "Queen" and "Calvin Russell" which can refer to different things.
I guess i have to find a way to specify "Music", which is the name of a disambiguation section that often appear in those pages.
I've tryed several manners like: http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop... and http://en.wikipedia.org/w/api.php?action=query&list=search&srlimit=5...
But i don't see a way to do thing without excessive parsing and querying.
Thanks in advance,
regards,
Adrien
On Fri, Dec 16, 2011 at 3:34 PM, Adrien ANDRE adrien.andre.m@gmail.com wrote:
But i don't see a way to do thing without excessive parsing and querying.
You don't see it because it's not there :) . MediaWiki doesn't recognize or store any semantic information about disambiguation pages (or any pages, for that matter), so to answer complex questions like these, you usually need to parse things or do some smart querying (like, which of the pages this page links to are in Category:Music? -- that sort of thing).
Roan
mediawiki-api@lists.wikimedia.org