Hi, and thanks for your answers!

I got it to work now, but only for public workflows. For the non-rdf API, I 
would use preemptive authentication like this to get a private workflow:

                String urlString = 
"http://www.myexperiment.org/workflows.xml?id=12345";;
                HttpClient client = new HttpClient();

                client.getParams().setAuthenticationPreemptive(true);
                client.getState().setCredentials(
                                new AuthScope("www.myexperiment.org", 80),
                                new UsernamePasswordCredentials("user", 
"password"));

                GetMethod get = new GetMethod(urlString);
                get.setDoAuthentication(true);
                        
                client.executeMethod(get);


I tried a similar thing for the rdf API, but it doesn't work. I get an empty 
xml result if the workflow requires authentication. So, the uri from David:

http://rdf.myexperiment.org/sparql?query=PREFIX+mecontrib%3A+%3Chttp%3A%
2F%2Frdf.myexperiment.org%2Fontologies%2Fcontributions%2F%3E%0D%0APREFIX
+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%
0D%0APREFIX+mecomp%3A+%3Chttp%3A%2F%2Frdf.myexperiment.org%2Fontologies%
2Fcomponents%2F%3E%0D%0APREFIX+dcterms%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%
2Fterms%2F%3E%0D%0ASELECT+%3Fworkflow%0D%0AWHERE+%7B+%0D%0A++%3Fdataflow
+dcterms%3Aidentifier+%3Fidentifier+.%0D%0A++%3Fworkflow+mecomp%
3Aexecutes-dataflow+%3Fdataflow+%3B%0D%0A++++rdf%3Atype+mecontrib%
3AWorkflow%0D%0A++FILTER+regex%28%3Fidentifier%2C%
273bd356a4-fc82-4ec8-8fcb-5960f40b2e8f%27%29%0D%0A%7D

works fine, but if I replace the id with one of my own, then it doesn't find 
the workflow.
So the question is: Can I use the rdf API to retrieve an id of a private 
workflow?

Regards,
Dennis




------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to