Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Binding string values in SPARQL

880359Aug 4 2011 — edited Aug 5 2011
I'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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2011
Added on Aug 4 2011
3 comments
523 views