Hi Vanessa,
To find all dates starting with 1945, the query could be changed to:
SELECT DISTINCT ?s ?date
FROM <http://dbpedia.org>
WHERE
{
?s ?p ?date . FILTER( bif:contains(?date, '"1945*"' ) && ( str(?p) !=
rdfs:label))
}
LIMIT 30
You can also use date range. See example at
http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtTipsAndTricksGuideDataRangeQueries
Hope this helps,
Best Regards,
Rumi
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.
--
The Open University is incorporated by Royal Charter (RC 000391), an
exempt charity in England & Wales and a charity registered in Scotland (SC
038302).
------------------------------------------------------------------------------
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
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users