I've written this query in sparql:
SELECT ?spouse
WHERE {
dbr:Zach_Galifianakis dbp:spouse ?spouse.
}
and I have this output:
2012
""@en
"Quinn Lundberg"@en
I don't understand how to select only the name "Quinn Lundberg"@en. I've tried using FILTER clause but it doesn't work.
Not a generic solution, but this will fetch only the name for your case:
SELECT *
WHERE {
dbr:Zach_Galifianakis dbp:spouse ?spouse.
FILTER (strlen(str(?spouse)) > 0 && lang(?spouse) = 'en')
}