Fungsi tahun SPARQL
String requete7String =
"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> "
+ "PREFIX dc: <http://purl.org/dc/elements/1.1/> "
+ "PREFIX rss: <http://purl.org/rss/1.0/> "
+ "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> "
+ "SELECT ?item "
+ "FROM <http://www.w3.org/2001/sw/SW-FAQ-feed.rdf> "
+ "WHERE { "
+ " ?item rdf:type rss:item . "
+ " ?item dc:date ?dateString ."
+ " bind(strdt(?dateString, xsd:dateTime) as ?date) "
+ " FILTER (year(?date) = 2007) "
+ "}";
Poor Partridge