|
I"m not sure which query module you're using, but with SPARQL, you
would just get rid of the ?label term and use "City" instead. In fact,
whatever the query engine, you can probably just use sprintf or
something similar to construct the query clause with "City" in place of
?label. Something like char keyword[]="City"; char query_string[BIGENOUGHBUFFER];
I won't address the potential unicode and buffer overrun problems. I
prefer c++ classes to deal with the buffer issues and haven't yet
settled completely on how I'm handling unicode.sprintf(query_string, "select ?comment from <C:/datafile.rdf> where (?x rdf:type rdfs:Class) (?x rdfs:label \"%s\") (?x rdfs:comment ?comment) using rdf for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>, rdfs for <http://www.w3.org/2000/01/rdf-schema#>", keyword); -j Joe Andrieu [email protected] +1 (805) 705-8651 http://www.switchbook.com On 6/20/2010 4:11 AM, Jagdev Bhogal wrote:
|
_______________________________________________ redland-dev mailing list [email protected] http://lists.librdf.org/mailman/listinfo/redland-dev
