sparql - retrieve list of mathematics categories from dbpedia? -


is there way using sparql retrieve topics of in dpbedia?

http://dbpedia.org/snorql/

that there way extract subfields of topics listed here:

http://en.wikipedia.org/wiki/lists_of_mathematics_topics 

the broad topics lists here: http://dbpedia.org/page/category:fields_of_mathematics

i list shows parent class , subfield.

question 1: depends on how define topic....
can query instance skos:concept:

select ?con {   ?con skos:concept }  limit 1000  

see result

question 2: can query skos:broader properties, like:

select ?parent (?label ?sub)    {   {     ?sub skos:broader <http://dbpedia.org/resource/category:fields_of_mathematics> .     ?sub rdfs:label ?label    .   } union {   <http://dbpedia.org/resource/category:fields_of_mathematics> rdfs:label ?parent  } } 

see results

retrieve list of next level of sub-fields of above fields with:

select ?parent ?sub ?subsub {   {     ?sub skos:broader <http://dbpedia.org/resource/category:fields_of_mathematics> .     optional {?subsub dcterms:subject ?sub}   } union {   <http://dbpedia.org/resource/category:fields_of_mathematics> rdfs:label ?parent  } } 

see results


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -