[redland-dev] string comparison in query

Dave Beckett dave at dajobe.org
Thu Mar 15 06:21:53 UTC 2007


Jagdev Bhogal wrote:
> Hi
> 
> I have got a query
> 'select ?label, ?comment
> from <file:/export/CISR-D/jagdev/okapi/progs/news.rdf>
> where (?x rdf:type rdfs:Class) (?x rdfs:label ?label) (?x rdfs:comment
> ?comment)
> and ?label == "Content:Agent" 
> using rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
> rdfs for <http://www.w3.org/2000/01/rdf-schema#>'
> 
> Is it possible to replace the value “Content:Agent” with a string
> variable such as keywordvar which holds a string value
> 
> i.e.
> select ?label, ?comment
> from <file:/export/CISR-D/jagdev/okapi/progs/news.rdf>
> where (?x rdf:type rdfs:Class) (?x rdfs:label ?label) (?x rdfs:comment
> ?comment)
> and ?label == keywordvar
> using rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>,
> rdfs for http://www.w3.org/2000/01/rdf-schema#
> <http://www.w3.org/2000/01/rdf-schema>


I don't really understand your question.  Where does keywordvar
come from?

Dave



More information about the redland-dev mailing list