It appears that, as of this writing, CountryData
is out of date.
CountryData["NewZealand", "GDP", "Date"]
2014
Whereas
EntityValue[Entity["Country", "NewZealand"], "GDP", "Date"]
DateObject[{2016}, "Year", __]
That being said, it seems that CountryData
and Entity
"Country"
have some other differences.
CountryData["NewZealand", "GDP"]
$ 1.9997*10^11 per year
but
EntityValue[
Entity["Country", "NewZealand"],
EntityProperty["Country", "GDP", {"Date" -> DateObject@{2014}}]]
$ 2.00696*10^11 per year
Even when specifying other "CurrencyUnit"
s Entity
"Country"
does not return CountryData
's value for 2014.
cu = "CurrencyUnit" /.
EntityValue[EntityProperty["Country", "GDP"], "QualifierValues"];
EntityValue[
Entity["Country", "NewZealand"],
EntityProperty["Country", "GDP",
{"Date" -> DateObject@{2014}, "CurrencyUnit" -> #}]
] & /@ cu // Column
$ 1.62376*10^11 per year
Missing[NotAvailable]
$ 225351398500 per year
$ 241926000000 per year
$ 2.00696*10^11 per year
Since Entity
"Country"
has a "Source"
annotation.
EntityValue[Entity["Country", "NewZealand"], "GDP", "Source"]
Entity["Source", "WorldDevelopmentIndicatorsWorldBank"]
I would suggest using Entity
"Country"
as you know where the data is from with this option. You can return the entire time series with
EntityValue[Entity["Country", "NewZealand"],
EntityProperty["Country", "GDP", {"Date" -> All}]]
Also, please report this issue to WRI.
Hope this helps.
Well, after looking at "Population"
I think it may be a case of Entity
"Country"
"GDP"
being more recent. "Population"
for both is for year 2014. However, this still does not explain why the 2014 "GDP"
values don't agree between the two.