I need to get related topics for a wikipedia page say upto 5 levels. For a page Mathematics
, I get this using:
select ?value where {
<http://dbpedia.org/resource/Category:Mathematics> skos:broader{0,4} ?value }
This does not work for Science
(http://dbpedia.org/page/Category:Science) since the broader at each level points back to Science_and_technology
,Main_topic_classifications
etc. This is happenning since Science is high up in the ontology unlike Category:Mathematics. So I try to use the property is skos:broader of
. Is this a valid property? How do I handle the spaces here? Using skos:broader
alone does not give intended result.