I'm not sure, that this would be easily possible. I think a better way
is using wikidata for that (that's the power of structered data :D).
To get the birthday of a person (e.g.) you can use this query: 

        
http://www.wikidata.org/w/api.php?action=wbgetclaims&entity=Q9488&property=P569
[1] 

        or the bio info (like you want) with property id P21: 

        
http://www.wikidata.org/w/api.php?action=wbgetclaims&entity=Q9488&property=P21
[2] 

        Hope that helps! 

        Best
Florian 

        -----Original-Nachricht----- 

        Betreff: [Mediawiki-api] How to retrieve Bio information of a person
in wikipedia using wikipedia web API? 

        Datum: Thu, 07 May 2015 08:02:29 +0200 

        Von: Sivashanmugam karthi <[email protected]> 

        An: [email protected] 

        I am working on retrieving some particular bio details of a person
from wikipedia page of that person through wikipedia web API. 

        I need to retrieve the bio information box of a person. 

        
--------------------------------------------------------------------------------------------
 

        
-----------------------------------------------------------------------------------------------


        I found how to retrieve the content box , introduction paragraph and
all. The below URL is used to retrieve the first introduction para of
the wiki webpage. 

        
https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles=Sachin_Tendulkar
[3] 

        1)But I am struck with getting the above bio information box through
wiki web api.So that i couldextract the specific details i want. 

        2) Is it possible to get a single information like only the full name
of the person or only DOB of the person through a single query
(instead of getting the bio whole information and extracting the
details from it).

Links:
------
[1]
http://www.wikidata.org/w/api.php?action=wbgetclaims&amp;entity=Q9488&amp;property=P569
[2]
http://www.wikidata.org/w/api.php?action=wbgetclaims&amp;entity=Q9488&amp;property=P21
[3]
http://en.wikipedia.org/w/api.php?format=json&amp;action=query&amp;prop=extracts&amp;exintro=&amp;explaintext=&amp;titles=Sachin_Tendulkar
_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to