On 2/4/11 1:40 PM, Vanessa Lopez wrote:
Hi!
Is there any way to search for numbers using bif:contains?
regex takes too long:
SELECT DISTINCT ?s ?date FROM<http://dbpedia.org> WHERE { ?s ?p ?date .
FILTER regex(?date, "^1945")}LIMIT 10
but bif:contains doesn't seem to work:
SELECT DISTINCT ?s ?date FROM<http://dbpedia.org> WHERE { ?s ?p ?
date .FILTER( bif:contains(?date, 1945 )&& ( str(?p) != rdfs:label
))}LIMIT 30
Thanks!!
Vanessa.
Vanessa,
What about:
SELECT ?s ?date FROM <http://dbpedia.org> WHERE { ?s ?p ?date . filter
(?date >= "19450101"^^xsd:date && ?date <= "19451231"^^xsd:date ) }
limit 100
--
Regards,
Kingsley Idehen
President& CEO
OpenLink Software
Web: http://www.openlinksw.com
Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca: kidehen
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion