SPARQL Syntax correction

R

Ricardo Caro

Guest
It's my first time using SPARQL. Using DBpedia, I want to list the band names of all Rock bands from 1992

The code I've already developed runs correctly but gives 0 results. Am I filtering the date incorrectly?

PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbp: <http://dbpedia.org/resource/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT DISTINCT ?bandname where {
?band dbo:genre dbp:Rock_music .
?band foaf:name ?bandname .
FILTER (dbo:activeYearsStartYear >= xsd:date("1992-01-01") && dbo:activeYearsStartYear <= xsd:date("1992-12-31"))
}


I expect only the band names in a column.

Continue reading...
 
Top