This site is a playground for testing Semantic MediaWiki. All content entered or uploaded here may be deleted at any time, and nothing here should be assumed to be true.
Some content was copied from semanticweb.org – please visit this site for more reliable information and author attribution.

Type:Currency amount

From SMW-Sandbox

Jump to: navigation, search

[edit] Values

As of 9 pm Mar 14 CET, 2008 according to http://finance.google.com/finance

Exchange rate (value of 1 US Dollar) and allowed currency symbols Description
1 $, USD US Dollars
0.638 €, euro, EUR European Monetary Union
0.495 GBP, pounds United Kingdom British pound or pounds sterling
99.21 JPY,¥,¥ Japanese Yen

Note that in SMW 0.5, the currency symbol must follow the amount.

[edit] TODO

Automatically regenerate the conversion rates in this page each day. http://www.newyorkfed.org/xml/schemas/FX_Utility.xsd lists various currency codes as enumerated values of CL_CURRENCY_UNIT.

Users need to know when the currency was converted and/or the date of the currency conversion factors. In the tooltip display of alternate currencies, we could show the date of the conversion, based on the date of last update:

UNIQ7c71adc5f7e3bf4-pre-00000000-QINU

If/when float values support prefixes, we can do $59.95 and £20.

Maybe there should be a way to overload the float value to specify a precision (e.g. 100 cents) and format.

[edit] Alternative approach

Use service links to provide a link in the factbox to an external currency conversion tool. Then currency properties can just be of Type:Number, which will remember the currency unit after the number but won't try to convert it, however the external currency conversion tool will perform the conversion. See Property:Monetary amount


Properties of type "Currency amount"

Showing 5 properties using this type.

B

G

P

Personal tools