Retrieving a DBpedia Resource Sketch Using SPARQL

This query works:

select ?value { 
 <http://dbpedia.org/resource/Henrik_Ibsen> dbpedia-owl:abstract ?value
 filter langMatches(lang(?value),"en")
}

To get a thumbnail, I guess I can just go to dbpedia-own: thumbnail like this:

select ?value { 
 <http://dbpedia.org/resource/Henrik_Ibsen> dbpedia-owl:thumbnail ?value
 filter langMatches(lang(?value),"en")
}

But it returns an empty value. There are both properties dbpedia-owl:abstractand dbpedia-owl:thumbnail: http://dbpedia.org/page/Henrik_Ibsen

Does anyone see what is wrong with the request?

+3
source share
1 answer

A thumbnail is a resource identified by a URI. Resources do not have language tags (only simple literals), therefore, filtering out all the values ​​for ?valuethat do not have a language tag en, you filter the thumbnail resource.

+6
source

All Articles