Hi,

Is there a way with Jena api to pass a SPARQL query that can return the regex 
pattern?

For example:
A query like: "PREFIX  dc:  <http://purl.org/dc/elements/1.1/>
SELECT  ?title
WHERE   { ?x dc:title ?title
          FILTER regex(?title, "^SPARQL") 
        }"
Should return "^SPARQL". if there are more than one regex, it should return all 
regex patterns.

I'm already using my version of regex search to extract the pattern, though it 
still misses some patterns. I'd think using Jena is more certain in returning 
the exact pattern.
The finest I could get to is to return the query pattern using 
Query.getQueryPattern(); not any further.

Thanks,
Saud.

Reply via email to