nichtich / wdq

Command line interface to Wikidata Query Service
https://metacpan.org/pod/distribution/App-wdq/script/wdq
Other
54 stars 4 forks source link

Support: is it possible to have --text of 2 properties? #29

Open aborruso opened 6 years ago

aborruso commented 6 years ago

Hi, I have this query

wdq '?comune wdt:P31 wd:Q747074. ?comune wdt:P6 ?sindaco.' --text comune -f csv --limit 3

and I have

[ {
  "comune": "http://www.wikidata.org/entity/Q9450",
  "comuneDescription": "Italian comune",
  "comuneLabel": "Maglione",
  "sindaco": "http://www.wikidata.org/entity/Q28381357"
},{
  "comune": "http://www.wikidata.org/entity/Q13318",
  "comuneDescription": "coastal city and comune in the region of Liguria, Italy",
  "comuneLabel": "Imperia",
  "sindaco": "http://www.wikidata.org/entity/Q19402397"
},{
  "comune": "http://www.wikidata.org/entity/Q13364",
  "comuneDescription": "Italian comune",
  "comuneLabel": "Ravenna",
  "sindaco": "http://www.wikidata.org/entity/Q3738068"
} ]

Is it possible to have label and description also of "sindaco"? Is it possible to use something like --text "comune,sindaco"

Thank you