9
$\begingroup$

Cross-Post on Wolfram Community


I have an EntityProperty and I know how to get its list of qualifiers. Now how do I figure out the possible values these can take programmatically? Here's an example to get us started:

EntityValue[
 EntityProperty["Country", "ExternalBalance"],
 "Qualifiers"
 ]

{"CurrencyUnit", "Date", "PercentOfGDP", "TradeSection"

Now, say, how do I programmatically determine what "CurrencyUnit", "TradeSection", and "PercentOfGDP" can be?

$\endgroup$
  • $\begingroup$ Is that just EntityValue[ EntityProperty["Country", "ExternalBalance"], "QualifierValues"]? $\endgroup$ – M.R. Nov 18 '18 at 22:21
  • $\begingroup$ That it is. I didn't know that was a possible query. Where's that documented? (is it?) $\endgroup$ – b3m2a1 Nov 18 '18 at 22:21
  • $\begingroup$ Haha, I'm not sure it is. $\endgroup$ – M.R. Nov 18 '18 at 22:23
  • $\begingroup$ Figures. Want to toss that in as the answer? $\endgroup$ – b3m2a1 Nov 18 '18 at 22:23
  • $\begingroup$ @M.R. It is documented in the Details section of the EntityValue documentation. $\endgroup$ – Edmund Nov 18 '18 at 23:55
10
$\begingroup$

You can discover available qualifiers and values for a property like this:

EntityValue[ EntityProperty["Country", "ExternalBalance"], "QualifierValues"]

I did find one example of this usage - in the Scope section of EntityValue ref page:

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.