Hi Somesh,

On 06/15/2012 07:50 AM, Somesh Jain wrote:
Hi all,

I wanted to ask if it is possible to get the exact number of articles that are present in a category in Wikipedia . For. eg : http://en.wikipedia.org/wiki/Category:1961_births in wikipedia this shows that it has 7355 articles. The corresponding category page in dbpedia : http://dbpedia.org/page/Category:1961_births has only around 300 articles in it.

So, is it possible for me to get this number '7355' using dbpedia category

The following sparql query does what you want:

SELECT count(?s) WHERE { ?s ?p ?o.filter(?p = <http://purl.org/dc/terms/subject> && ?o = <http://dbpedia.org/resource/Category:1961_births>) }


--
Regards
Somesh Jain
4th year Undergraduate Student
Department of Computer Science & Engineering
IIT Kharagpur


--
Kind Regards
Mohamed Morsey
Department of Computer Science
University of Leipzig

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to