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) <http://home.medewerker.uva.nl/m.roos1>
*BioSemantics group* <http://www.biosemantics.nl>, Human Genetics
department <http://www.humgen.nl>, Leiden University Medical Centre
<http://www.lumc.nl>
Albinusdreef 2 (Building 2, room S3-46)
2333 ZA Leiden
Tel. +31 (0) 71 526 9450
*Adaptive Information Disclosure group*
<http://adaptivedisclosure.org/>, Informatics Institute
<http://www.science.uva.nl/ii>, University of Amsterdam
<http://www.uva.nl/>
Kruislaan 403 ( room N2.30
<http://remote.science.uva.nl/%7Eroos/Kruislaan403_N230.png>) 1098 SJ
Amsterdam
Tel. +31 (0) 20 525 7522
*Communities:*
Professional: LinkedIn <http://www.linkedin.com/in/marcoroos>,
myExperiment <http://www.myexperiment.org/users/18> Personal: Hyves
<http://mroos62.hyves.nl/>
------------------------------------------------------------------------------
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/