sparql - retrieve list of mathematics categories from dbpedia? -
is there way using sparql retrieve topics of in dpbedia?
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
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 } }
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 } }
Comments
Post a Comment