Hello,I am trying to obtain the entire hierarchy tree for any given resource.
To give an example If the resource is http://dbpedia.org/page/India For this obtain * category:Liberal_democracies <http://dbpedia.org/resource/Category:Liberal_democracies> * category:Members_of_the_Commonwealth_of_Nations <http://dbpedia.org/resource/Category:Members_of_the_Commonwealth_of_Nations> * category:States_and_territories_established_in_1947 <http://dbpedia.org/resource/Category:States_and_territories_established_in_1947> * category:Former_British_colonies <http://dbpedia.org/resource/Category:Former_British_colonies> * category:G15_nations <http://dbpedia.org/resource/Category:G15_nations> * category:G20_nations <http://dbpedia.org/resource/Category:G20_nations> * category:India <http://dbpedia.org/resource/Category:India> * category:South_Asia <http://dbpedia.org/resource/Category:South_Asia> * category:South_Asian_Association_for_Regional_Cooperation_member_states <http://dbpedia.org/resource/Category:South_Asian_Association_for_Regional_Cooperation_member_states> * category:Federal_countries <http://dbpedia.org/resource/Category:Federal_countries> * category:Countries_of_the_Indian_Ocean <http://dbpedia.org/resource/Category:Countries_of_the_Indian_Ocean> * category:English-speaking_countries_and_territories <http://dbpedia.org/resource/Category:English-speaking_countries_and_territories> * category:Republics <http://dbpedia.org/resource/Category:Republics> * category:South_Asian_countries <http://dbpedia.org/resource/Category:South_Asian_countries>Then for each category in which the resource falls, obtaining the parent category of those lets say category:Liberal_democracies <http://dbpedia.org/resource/Category:Liberal_democracies> and getting
* category:Liberalism <http://dbpedia.org/resource/Category:Liberalism> * category:Countries_by_form_of_government <http://dbpedia.org/resource/Category:Countries_by_form_of_government> * category:Democracy <http://dbpedia.org/resource/Category:Democracy> and so on... Any suggestions as to how I can do this using a SPARQL query or web service? Thanks, Prateek -- *Prateek Jain* PhD Student, Research Assistant Web: http://prateek-jain.com Email: prat...@knoesis.org <mailto:prat...@knoesis.org> Phone: (770) 406-6356
<<attachment: prateek.vcf>>
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Dbpedia-discussion mailing list Dbpedia-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion