SPARQL Syntax correction


Ricardo Caro

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: <>
PREFIX dbp: <>
PREFIX foaf: <>
PREFIX xsd: <>

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...