[redland-dev] string comparison in query
Jagdev Bhogal
Jagdev.Bhogal at uce.ac.uk
Wed Mar 14 11:38:28 UTC 2007
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>
If you can help that would be great.
Thanks
Mrs. J. Bhogal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.usefulinc.com/pipermail/redland-dev/attachments/20070314/d2e20c8e/attachment.htm
More information about the redland-dev
mailing list