Message Boards Message Boards

0
|
5097 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Find the list of values for an EntityProperty qualifier?

Posted 6 years ago

Cross-Post on StackExchange


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?

POSTED BY: b3m2a1 ​ 
Posted 6 years ago

Enumerated qualifier values can be looked up using "QualifierValues":

In[1]:= EntityProperty["Country", "ExternalBalance"]["QualifierValues"]

Out[1]= {"CurrencyUnit" -> {"Constant2000USDollar", 
   "Constant2005InternationalDollar", "ConstantLCU", "CurrentLCU", 
   "CurrentUSDollar"}, "Date" -> {}, 
 "PercentOfGDP" -> {"PercentOfGDP"}, 
 "TradeSection" -> {"GoodsAndServices"}}
POSTED BY: Toni Schindler
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract