F
F
Finom2012-03-25 23:41:59
JavaScript
Finom, 2012-03-25 23:41:59

Problems with YQL?

Hello. I'm trying to query this XML file: cluster.cis.drexel.edu/servlet/xlin.umls.GetData?q... using YQL. The request seems to be well-formed:

select * from data where url="http://cluster.cis.drexel.edu/servlet/xlin.umls.GetData?query=heart&size=25" and xpath="*"
Link to console

But, the answer says that there is no such "table".

If you write instead of data html
select * from html where url="http://cluster.cis.drexel.edu/servlet/xlin.umls.GetData?query=heart&size=25" and xpath="*"

Then comes an empty html file with Java meta
<html><br>
            <head><br>
                <meta<br>
                    content="HTML Tidy for Java (vers. 26 Sep 2004), see www.w3.org" name="generator"/><br>
                <meta id="C0018787"/><br>
                <title/><br>
            </head><br>
            <body/><br>
        </html>


I suspect that encodeURICommponent (or a similar function) mangles the request so that it is sent to a completely different address, and not to cluster.cis.drexel.edu/servlet/xlin.umls.GetData?q...

How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2012-03-26
@Ualde

Describe the rules for parsing 'data'.
And so everything is fine: link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question