0

Referencing the csv module, how is the following data downloaded?

nicholas@mordor:~/flwor/covid$ 
nicholas@mordor:~/flwor/covid$ basex uri.xq 
Stopped at /home/nicholas/flwor/covid/uri.xq, 3/13:
[XPST0081] No namespace declared for 'doc:csv'.
nicholas@mordor:~/flwor/covid$ 
nicholas@mordor:~/flwor/covid$ cat uri.xq 
xquery version "3.1";

let $csv := doc:csv('http://www.bccdc.ca/Health-Info-Site/Documents/BCCDC_COVID19_Dashboard_Lab_Information.csv') as $data
return $data
nicholas@mordor:~/flwor/covid$ 

which of the following:

csv:parse csv:serialize csv:doc

is best used to grab this data?

and is there a missing import statement for the namespace?


with powershell:

how to get the column headers for CSV data with Powershell?

2
  • 1
    I think instead of doc:csv' you rather want csv:doc`. Commented Dec 16, 2020 at 15:59
  • correct; I'll try that. thx. Commented Dec 16, 2020 at 16:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.