Extract all types and their labels in English from DBPedia

前端 未结 2 1180
栀梦
栀梦 2020-12-20 03:51

I\'m trying to get all types from DBpedia using this SPARQL query:

select ?type {
   ?type a owl:Class .
}

Now, I want to also include the

2条回答
  •  一个人的身影
    2020-12-20 04:28

    Try this:

    SELECT ?type (STR(?l) AS ?label) {
       ?type a owl:Class;
             rdfs:label  ?l .
       FILTER (LANG(?l) = "en")
    }
    

提交回复
热议问题