My apologies that it took so long to finally try this, but yes, it does exactly what I want :-)

It seems that the namespace bit is essential too, isn't it? In Paul's example workflow (thanks Paul) I saw a lot of localname() functions in his xpath queries, which also suggests that. It was only after I saw this in your example that I realized namespaces can be an issue in xpath.

Maybe Allen can add this as a note in the documentation too, or preferably somewhere in Taverna, as clearly, people don't read documentation :-[ .

Thanks again Carsten and all of you who gave tips!
Marco.


Carsten Byrman wrote:
Hi Marco,

Does //namesp1:iHOPsymbol/@id give you the attribute list you're looking for?

Carsten

On 11-1-2010 12:51, Marco Roos wrote:
Hi Alan,

Did you try the example workflow I included?

In any case, Carsten Byrman was probably right when he suggested that the web page from which I took the xpath example might simply be wrong :-(

So, I assume things do work as expected.

I always struggle with xpath, very likely because I know too little about xpath. Would you be able to tell me how to obtain the value of an attribute in Taverna using the xpath widget (if at all possible)?

For instance, I would like to obtain a list of all identifier values (id="..") of the iHOPsymbols from the output from an iHOP service:
<namesp1:result xmlns:namesp1="http://www.pdg.cnb.uam.es/UniPub/iHOP/xml">    <iHOPrelatedSymbols query="CRYAA" truncated="false" xmlns="http://www.pdg.cnb.uam.es/UniPub/iHOP/xml">
        <iHOPsymbol id="87442" name="crystallin, alpha A" organism="Homo sapiens" organismId="1" symbol="CRYAA">
        </iHOPsymbol>
        <iHOPsymbol id="120256" name="crystallin, alpha A" organism="Mus musculus" organismId="2" symbol="Cryaa">
        </iHOPsymbol>
        <iHOPsymbol id="73056" name="crystallin, alpha A" organism="Danio rerio" organismId="141" symbol="cryaa">
        </iHOPsymbol>
        <iHOPsymbol id="2012896" name="crystallin, alpha A" organism="Danio rerio" organismId="141" symbol="cryaa">
        </iHOPsymbol>
        <iHOPsymbol id="272094" name="crystallin, alpha A" organism="Pan troglodytes" organismId="284" symbol="CRYAA">
        </iHOPsymbol>
        <iHOPsymbol id="313327" name="crystallin, alpha A" organism="Bos taurus" organismId="383" symbol="CRYAA">
        </iHOPsymbol>
        <iHOPsymbol id="2093368" name="crystallin, alpha A" organism="Oryctolagus cuniculus" organismId="517" symbol="CRYAA">
        </iHOPsymbol>
        <iHOPsymbol id="250108" name="crystallin, alpha A" organism="Gallus gallus" organismId="626" symbol="CRYAA">
        </iHOPsymbol>
        <iHOPsymbol id="304928" name="crystallin, alpha A" organism="Canis familiaris" organismId="659" symbol="CRYAA">
        </iHOPsymbol>
        <iHOPsymbol id="2059207" name="crystallin, alpha A" organism="Macaca mulatta" organismId="830" symbol="CRYAA">
        </iHOPsymbol>
        <iHOPsymbol id="315772" name="crystallin, alpha A" organism="Ovis aries" organismId="979" symbol="CRYAA">
        </iHOPsymbol>
        <iHOPsymbol id="2031945" name="crystallin, alpha A" organism="Ornithorhynchus anatinus" organismId="8281" symbol="CRYAA">
        </iHOPsymbol>
        <iHOPsymbol id="3100988" name="crystallin, alpha A" organism="Equus caballus" organismId="8726" symbol="CRYAA">
        </iHOPsymbol>
        <iHOPsymbol id="320508" name="crystallin, alpha A" organism="Rattus norvegicus" organismId="8967" symbol="Cryaa">
        </iHOPsymbol>
        <iHOPsymbol id="232612" name="crystallin, alpha A" organism="Xenopus laevis" organismId="438" symbol="cryaa-A">
        </iHOPsymbol>
    </iHOPrelatedSymbols>
</namesp1:result>

NB I don't think the iHOP service is listed in the standard set of services in Taverna; I think it would make a nice addition. It is in BioCatalogue.org.

Many thanks!
Marco.

Alan Williams wrote:
Hello everybody,

I've tried out some workflows and XPath expressions such as //@name do 
work as expected.  Marco, can you try other expressions with @ in them?

Thanks,

Alan

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
  


--
Marco Roos (PhD)
BioSemantics group, Human Genetics department, Leiden University Medical Centre
Albinusdreef 2 (Building 2, room S3-46)
2333 ZA Leiden
Tel. +31 (0) 71 526 9450
Adaptive Information Disclosure group, Informatics Institute, University of Amsterdam
Kruislaan 403 ( room N2.30) 1098 SJ Amsterdam
Tel. +31 (0) 20 525 7522
Communities:
Professional: LinkedIn, myExperiment  Personal: Hyves
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ taverna-users mailing list [email protected] [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/


------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev

_______________________________________________ taverna-users mailing list [email protected] [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/


--
Marco Roos (PhD)
BioSemantics group, Human Genetics department, Leiden University Medical Centre
Albinusdreef 2 (Building 2, room S3-46)
2333 ZA Leiden
Tel. +31 (0) 71 526 9450
Adaptive Information Disclosure group, Informatics Institute, University of Amsterdam
Kruislaan 403 ( room N2.30) 1098 SJ Amsterdam
Tel. +31 (0) 20 525 7522
Communities:
Professional: LinkedIn, myExperiment  Personal: Hyves
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/

Reply via email to