Binding string values in SPARQL
880359Aug 4 2011 — edited Aug 5 2011I'm having a problem implementing a bind parameter for a SPARQL query using the Jena Adapter. The examples provided in the documentation imply that all of the bound parameters will be URIs, either provided, or results of a subquery. I would like to be able to bind a string as a parameter to the orardf:textContains function.
The existing SPARQL looks like so:
PREFIX ORACLE_SEM_FS_NS:<http://oracle.com/semtech#timeout=5,BEST_EFFORT_QUERY=t,DEGREE=8>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX orardf:<http://xmlns.oracle.com/rdf/>
PREFIX ORACLE_SEM_HT_NS:<http://oracle.com/semtech#leading(?v,t2,t3,t0,t1)>
select ?s ?l ?pl ?v
where {
?s ?p ?v .
?s grantfile#grantFileLabel ?l .
?p rdfs:subPropertyOf grants-base:gmsDataProperty .
?p grants-base:propDisplayLabel ?pl .
filter( orardf:textContains( ?v, "*<SEARCH_PATTERN>*" ))
}
Is there anyway to setup this query to BIND the *<SEARCH_PATTERN>* using PREFIX or some other way.