[redland-dev] RDQL - Objective C/Cocoa/ OS X ?

Mr cool mrcoolkrish at gmail.com
Mon Sep 19 09:58:46 BST 2005


Thanks René Puls,

With the added 
[myredlandmodel loadURL:mynsurl withContext:nil];
it works.. 

Thanks again for the support and helping me realise my mistake :)

/MK

On 9/16/05, René Puls <rpuls at kcore.de> wrote:
> Hi,
> 
> Am 14.09.2005 um 20:17 schrieb Mr cool:
> > Has anyone tried SPARQL/RDQL RDF queries using Objective C /
> > Cocoa / OS X ?
> >
> > The name/value of bindings doesn't seem to get populated from the
> > query.
> > (However I am able to populate my storage/model manually and
> > display them)
> 
> You are querying an empty model in your sample code. Adding:
> 
> [myredlandmodel loadURL:mynsurl withContext:nil];
> 
> ... before executing the query gives me these results:
> 
> 2005-09-16 15:32:39.956 otest[512] 1 - Number of bindings
> 2005-09-16 15:32:39.977 otest[512] Name at binding 0 is name
> 2005-09-16 15:32:39.987 otest[512] Count 1
> 2005-09-16 15:32:39.988 otest[512] Jim Hendler - Literal Value
> 2005-09-16 15:32:39.990 otest[512] Count 2
> 2005-09-16 15:32:39.990 otest[512] Dan Brickley - Literal Value
> 2005-09-16 15:32:39.991 otest[512] Count 3
> 2005-09-16 15:32:39.991 otest[512] Phil McCarthy - Literal Value
> 
> ... and so on, until count 17. Is this the output you expected?
> 
> > I also tried querying a local rdf using the "SELECT ... FROM
> > <file.rdf> ..." , but that results in "Failed to make triples source."
> > error.
> 
> Not sure about that; have you tried giving a full path instead of a
> relative one? Perhaps your current working directory is not what you
> expect it to be.
> 
> If it still doesn't work, please post more sample code. :-)
> 
> Kind regards,
> René Puls
> 
>


More information about the redland-dev mailing list