Hi,

I am having problems with regex filtering using the d2r snorql
instance at dblp.l3s.de, and the maintainer of that domain has pointed
me in this direction.

I am trying to come up with a SPARQL query that will take a substring of
an authors name, and will use regex filtering in SPARQL to come up with
a set of possible URIs.

Take the author:
http://dblp.l3s.de/d2r/resource/authors/Philip_W._Trinder

I can run a DESCRIBE query on http://dblp.l3s.de/d2r/snorql
http://goo.gl/Tjkil

One of the triples I see is:
<http://dblp.l3s.de/d2r/resource/authors/Philip_W._Trinder>
<foaf:name>Philip W. Trinder</foaf:name>


I have tried running this query:

"SELECT ?authorUri WHERE { ?authorUri foaf:name ?name . FILTER
regex(?name, "Philip","i") . }"

On the snorql endpoint, I get 2 URIs, both:
http://dblp.l3s.de/d2r/resource/authors/A._G._Davis_Philip

I've also tried regex searching on "Trinder", but get no results:
http://goo.gl/oSfjh

Question: Why might my attempts at using regex on "Philip" to find the
desired URI failing to find him, and yet can find A.G. David Philip? And
why does a search on "Trinder" return nothing at all?


Best,

-- 
.\ Rob Stewart
./\ Computer Science, Heriot Watt University
/  \ http://www.macs.hw.ac.uk/~rs46/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to