From: Seaborne, A. <and...@hp...> - 2006-11-28 20:17:42
|
GSO wrote: > A basic test statement - this works fine without the FILTER added, but > returns a boolean false as a result with: > > PREFIX ll: <http://www.gsowww.uklinux.net/librarylinks/vocabulary#> > SELECT * > WHERE { ?url ll:title ?title . > ?url ll:abstract ?abstract . > ?url ll:date ?date . > ?url ll:publisher ?publisher . > FILTER ?date >= 0 Firstly, that isn't valid SPARQL syntax - should be FILTER (?date >= 0). May be that is confusing it. Assuming, it's not that, if ?date is a string, then it is false (it's a type error). Literals obey datatyping. In SPARQL, you can cast to an integer with xsd:integer(?date). Andy > } > ORDER BY DESC(?date) > > '?date' is a number created with mktime(), e.g., Literal: 1112486400. > > If anyone can figure the bug in this I'd very much appreciate it. > > Thanks > > GSO > http://www.gsowww.uklinux.net/pub > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |