Minh Nguyễn
Minh Nguyễn

Reputation: 51

SPARQL Filter language for only one property

SELECT ?pt ?vl
WHERE {<http://dbpedia.org/resource/Havana_Storm> ?pt ?vl.}

My query will return list of property-value pairs of this book; but with the "abstract" property, I only want to take English language. How can I do it?

Upvotes: 2

Views: 1122

Answers (1)

T3db0t
T3db0t

Reputation: 3551

This filters all values to the English language.

SELECT ?pt ?vl
WHERE {
    <http://dbpedia.org/resource/Havana_Storm> ?pt ?vl.
    FILTER(LANG(?vl) = "en")
}

SPARQL Query

Upvotes: 1

Related Questions