SPARQL Regex

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SPARQL Regex

Anthony
Hi,

I have tried to run this query using owlready2 but it doesn't give any result. I have also run the query on virtuoso and works fine.

(...)    select distinct ?element where {
                  optional {?element rdfs:label ?label }.
                   
                  ?element rdfs:comment ?comment .
                 
                  filter  (regex(?comment,'read','i'))

Does anyone know why it's not working?

Thx
Reply | Threaded
Open this post in threaded view
|

Re: SPARQL Regex

Jiba
Administrator
Hi,

Owlready uses the RDFLIB Sparql engine. I'm not sure it supports regexp or not; you should ask on RDFLIB forum/mailing list for more information.

Jiba