owlim-discussion  

Re: [Owlim-discussion] Can't filter dates!

Adam Coen
Wed, 23 Jun 2010 08:44:21 -0700

Ok, that query was wrong, this is the right one:

PREFIX fb-film: <http://rdf.freebase.com/ns/film.film.>PREFIX db-ont: <
http://dbpedia.org/ontology/> PREFIX db-work: <
http://dbpedia.org/ontology/Work/> PREFIX rdf: <
http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <
http://www.w3.org/2002/07/owl#> PREFIX fb-alb: <
http://rdf.freebase.com/ns/music.album.> PREFIX xsd: <
http://www.w3.org/2001/XMLSchema#>


SELECT DISTINCT ?id ?relDate WHERE {

?id rdf:type db-ont:Film  .
?id db-ont:releaseDate ?relDate

FILTER(xsd:dateTime(?relDate) > xsd:dateTime("2005-01-01"))
}

but it still gives me an empty result set...

On 23 June 2010 16:52, Adam Coen <adamcoe...@googlemail.com> wrote:

> Hi
> I'd like to select each movie has been made from 2005 to today from
> dbpedia; so I write:
>
> PREFIX fb-film: <http://rdf.freebase.com/ns/film.film.>PREFIX db-ont: <
> http://dbpedia.org/ontology/> PREFIX db-work: <
> http://dbpedia.org/ontology/Work/> PREFIX rdf: <
> http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <
> http://www.w3.org/2002/07/owl#> PREFIX fb-alb: <
> http://rdf.freebase.com/ns/music.album.> PREFIX xsd: <
> http://www.w3.org/2001/XMLSchema#>
>
>
> SELECT DISTINCT ?id ?relDate WHERE {
>
> ?id rdf:type db-ont:Film  .
> ?id db-ont:releaseDate ?relDate
>
> FILTER(xsd:relDate(?dataUscita) > xsd:dateTime("2005-01-01"))
> }
>
> but unfortunately I don't get any results...this query looks right to
> me,isn't it? Why doesn't it work?
>
_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion