[redland-dev] two newbie questions
Steven Jenkins
steven.jenkins at ieee.org
Sun Sep 10 16:01:37 UTC 2006
Steven Jenkins wrote:
> [...] I can't find an expression to assign to obj so that
> find() finds only a single statement. I've tried various ways of
> constructing a typed literal, but they all result in no match.
To complete the thread, this works:
XMLNS = Redland::Namespace.new('http://www.w3.org/2001/XMLSchema#')
ohash = {:literal => 'D001', :datatype => XMLNS['string'].uri}
obj = Redland::Node.new(ohash).literal
The documentation on this is sketchy; I figured it out by reading the code.
Steve
More information about the redland-dev
mailing list