textMatch problem

Hi,
I can’t figure why this works:

SELECT ?l WHERE {
  ?s ?p ?l.
  ?l <tag:stardog:api:property:textMatch>  'San Francesco'  
} 

and this not (returns “internal error”):

SELECT ?l WHERE {
  BIND( 'San Francesco' AS ?san)
  ?s ?p ?l.
  ?l <tag:stardog:api:property:textMatch> ?san 
} 

Could you help me?

We verify, at an early stage, that the argument to textMatch is a literal. You should see this error when you execute the query: Waldo plan nodes do not support variables as arguments. Waldo is the search subsystem which implements textMatch.

Jess

How could I bypass this problem? In my casem search strings are in the db…

You can use FILTER with CONTAINS or REGEX. We are planning to support a variable argument to textMatch when it is bound in another triple pattern. You can look for this in a future version of Stardog.

Jess

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.