petermr / tigr2ess

Materials for TIGR2ESS workshop in Delhi Feb 2019 - joint UK(Cambridge) - India project on Food Security.
Other
4 stars 10 forks source link

Dictionary_creation_Indian_research_institutes. #35

Closed ambarishK closed 5 years ago

ambarishK commented 5 years ago

ambarish123@ubuntu:~$ ami-dictionary create --input https://en.wikipedia.org/wiki/Department_of_Science_and_Technology_(India) --informat wikipage --dictionary Research_institute7 --outformats xml bash: syntax error near unexpected token `('

web-link contains '(', which is not readable into the command-line. Please resolve.

petermr commented 5 years ago

Please:

A good title would be

URLs which contain punctuation (parentheses) must be escaped
petermr commented 5 years ago
$ ami-dictionary create --input https://en.wikipedia.org/wiki/Department_of_Science_and_Technology_(India) \
 --informat wikipage --dictionary Research_institute7 --outformats xml
bash: syntax error near unexpected token `('

I quoted as follows:

$ ami-dictionary create \
--input 'https://en.wikipedia.org/wiki/Department_of_Science_and_Technology_(India)'  \
 --informat wikipage --dictionary Research_institute7 --outformats xml

Note second line. The quotes are round the value. It ran without errors (though the result is not a very useful dictionary).

DOCUMENTATION NEEDED