Hi Biva You need to URL-encode your query.
So, query=select $subject 'info:fedora/fedora-system:def/relations-external#isMember' $object from <#ri> where walk( $subject <info:fedora/fedora-system:def/relations-external#isMemberOf> <info:fedora/A:a> and $subject <info:fedora/fedora-system:def/relations-external#isMemberOf> $object)' needs to be something like query=select%20%24subject%20'info%3Afedora%2Ffedora-system%3Adef%2Frelations -external%23isMember'%20%24object%20from%20%3C%23ri%3E%20where%20walk(%20%24 subject%20%3Cinfo%3Afedora%2Ffedora-system%3Adef%2Frelations-external%23isMe mberOf%3E%20%3Cinfo%3Afedora%2FA%3Aa%3E%20and%20%24subject%20%3Cinfo%3Afedor a%2Ffedora-system%3Adef%2Frelations-external%23isMemberOf%3E%20%24object)' See http://tools.ietf.org/html/rfc3986#section-2.1 There are online tools that will do URL-encoding, and depending on your software environment there maybe facilities available to you to do this automatically. Regards Steve > -----Original Message----- > From: Shrestha, Biva [mailto:shrest...@ornl.gov] > Sent: 10 February 2011 22:18 > To: Support and info exchange list for Fedora users. > Subject: Re: [fcrepo-user] (no subject) > > > Hi Soroka, > http://localhost:8080/fedora/risearch?type=tuples&lang=iTQL&fo > rmat=CSV&query=select $subject > 'info:fedora/fedora-system:def/relations-external#isMember' > $object from <#ri> where walk( $subject > <info:fedora/fedora-system:def/relations-external#isMemberOf> > <info:fedora/A:a> and $subject > <info:fedora/fedora-system:def/relations-external#isMemberOf> > $object)' > > This gives me a org.trippi.TrippiException: [1,66] expecting: > quote, escapedtext, text error > I am not sure how the query part is to be added ..... should > it be in quotes or without quotes ..... I tried both but both > doesnot work > > Biva > > ________________________________________ > From: aj...@virginia.edu [aj...@virginia.edu] > Sent: Thursday, February 10, 2011 5:02 PM > To: Support and info exchange list for Fedora users. > Subject: Re: [fcrepo-user] (no subject) > > You can always use HTTP GET or POST to send queries to the RI > web service point: > > https://wiki.duraspace.org/display/FCR30/Resource+Index+Search > #ResourceIndexSearch-ApplicationInterface > > Is there some reason that this won't satisfy your use-case? > > --- > A. Soroka > Digital Research and Scholarship R & D and Online Library Environment > the University of Virginia Library > > > > > On Feb 10, 2011, at 4:56 PM, Shrestha, Biva wrote: > > > Hi all, > > is there a way to implement the risearch service > programatically? What I mean is a piece of program invoking > a the risearch with certain query. > > > > Thank you so much > > Biva > > > -------------------------------------------------------------- > ---------------- > > The ultimate all-in-one performance toolkit: Intel(R) > Parallel Studio XE: > > Pinpoint memory and threading errors before they happen. > > Find and fix more than 250 security defects in the > development cycle. > > Locate bottlenecks in serial and parallel code that limit > performance. > > http://p.sf.net/sfu/intel-dev2devfeb > > _______________________________________________ > > Fedora-commons-users mailing list > > Fedora-commons-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > > > -------------------------------------------------------------- > ---------------- > The ultimate all-in-one performance toolkit: Intel(R) > Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Fedora-commons-users mailing list > Fedora-commons-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > > -------------------------------------------------------------- > ---------------- > The ultimate all-in-one performance toolkit: Intel(R) > Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > Fedora-commons-users mailing list > Fedora-commons-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users