Hi Prateek,

You can use the Virtuoso SPARQL transitivity option with SKOS to obtain 
hierarchy trees for resource as detail in the follow tutorial example:

        
http://virtuoso.openlinksw.com/presentations/SPARQL_Tutorials/SPARQL_Tutorials_Part_2/SPARQL_Tutorials_Part_2.html#(34)

Additonal documentation on Virtuoso SPARQL transitivity option and use with 
SKOS can be obtained from:

        
http://docs.openlinksw.com/virtuoso/rdfsparqlrule.html#rdfsparqlruletransoption
        
http://docs.openlinksw.com/virtuoso/rdfsparql.html#rdfsparqlimplementatiotrans

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
Twitter: http://twitter.com/OpenLink

On 8 Apr 2010, at 18:08, Prateek wrote:

> 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
> category:Members_of_the_Commonwealth_of_Nations
> category:States_and_territories_established_in_1947
> category:Former_British_colonies
> category:G15_nations
> category:G20_nations
> category:India
> category:South_Asia
> category:South_Asian_Association_for_Regional_Cooperation_member_states
> category:Federal_countries
> category:Countries_of_the_Indian_Ocean
> category:English-speaking_countries_and_territories
> category:Republics
> category:South_Asian_countries
> 
> 
> Then for each category in which the resource falls, obtaining the parent 
> category of those 
> lets say category:Liberal_democracies and getting
> 
> category:Liberalism
> category:Countries_by_form_of_government
> 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: [email protected] 
> Phone: (770) 406-6356
> <prateek.vcf>------------------------------------------------------------------------------
> Download Intel&#174; 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

------------------------------------------------------------------------------
Download Intel&#174; 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to