xml 格式的 ISO 数据来源?

发布于 2024-08-04 19:36:31 字数 1539 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

沒落の蓅哖 2024-08-11 19:36:31

CLDR - Unicode 通用区域设置数据存储库可能令人感兴趣。

Unicode CLDR 为支持世界语言的软件提供了关键构建块,并拥有最大、最广泛的可用语言环境数据标准存储库。该数据被广泛的公司用于其软件国际化和本地化,使软件适应不同语言的约定,以执行以下常见软件任务:

  • 日期、时间和时间的格式设置
    区域、
  • 格式化数字和货币
  • 对文本进行排序
  • 选择语言或国家
    名称

CLDR 使用 UTS #35 提供的 XML 格式:区域设置数据标记语言 (LDML)。 LDML 是一种格式,不仅用于 CLDR,而且还用于区域设置数据的一般交换,例如在 Microsoft 的 .NET 中。

http://cldr.unicode.org/

The CLDR - Unicode Common Locale Data Repository may be of interest.

The Unicode CLDR provides key building blocks for software to support the world's languages, with the largest and most extensive standard repository of locale data available. This data is used by a wide spectrum of companies for their software internationalization and localization, adapting software to the conventions of different languages for such common software tasks as:

  • formatting of dates, times, and time
    zones,
  • formatting numbers and currency
    values
  • sorting text
  • choosing languages or countries by
    name

CLDR uses the XML format provided by UTS #35: Locale Data Markup Language (LDML). LDML is a format used not only for CLDR, but also for general interchange of locale data, such as in Microsoft's .NET.

http://cldr.unicode.org/

花间憩 2024-08-11 19:36:31

ISO 网站是一个不错的起点(可能是 Google的帮助)。国家/地区代码很容易找到

货币代码语言代码似乎以 XML 形式提供,加上 ISO 费用下载它们。

您可以从美国国会图书馆。将该列表转换为 XML 是很容易的。您可以从 ISO 网站抓取 此页面 获取货币代码。

如果您对其他未列出的 ISO 代码感兴趣,ISO 常见问题解答包括 a常用列表

这就是“官方”。

编辑

关于您对没有商业使用限制的网站的请求:如果您从其他网站获取代码,则该网站违反了ISO 版权。他们无权放弃 ISO 的非商业条款。因此,您仍然无法在商业环境中合法使用该信息。

A good place to start is the ISO website (perhaps with the help of Google). The country codes are quite easy to find.

Neither the currency codes nor the language codes appear to be available in XML, plus the ISO charges to download them.

You can download a demlited version of ISO language codes from the Library of Congress. It would be easy enough to turn that list into XML. You could scrape this page from the ISO web site to get the currency codes.

If you are interested in other ISO codes you haven't list the ISO FAQ includes a list of commonly used ones.

So that's it for "official".

Edit

With regards to your request for sites without commercial use restrictions: if you get the Codes from some other site then that site is in breach of ISO Copyright. They do not have the right to waive the ISO's non-commercial clause. So you still cannot legally use that information in a commercial context.

巴黎盛开的樱花 2024-08-11 19:36:31

除少数例外情况外,ISO 不分发其标准。有时,数据可以从其他来源获得,例如维护机构 (SIL ISO 639-3),但并不总是采用机器可读的形式。请记住,ISO 恐龙拥有非常不同的文化,与 Perl 脚本、混搭和 RDF 的互联网世界相距数百万年。

对于语言和国家/地区代码,这些标准由 IANA语言子标签注册表。非官方 XML 版本可从 langtag.net 获取。

另一个来源是 Debian 软件包 iso-codes,其描述为“此软件包提供 ISO 639语言代码表,
ISO 4217 货币代码列表、ISO 3166 领土代码列表、
ISO 3166-2 子区域列表和 ISO 15924 脚本代码
列表。”它显然不包含 XML 表单,但由于它是机器可读的,因此您始终可以自己完成。

ISO does not distribute its standards, save a few exceptions. Sometimes, the data is available from another source such as the maintenance agency (SIL for ISO 639-3) but not always in a machine-readable form. Remember that the ISO dinosaur has a very different culture, millions of years away from the Internet world of Perl scripts, mash-ups and RDF.

For languages and country-codes, these standards are distributed by the IANA in the language subtag registry. A non-official XML version is available at langtag.net.

Another source is the Debian package iso-codes whose description says "This package provides the ISO 639 language code list, the
ISO 4217 currency code list, the ISO 3166 territory code list,
the ISO 3166-2 sub-territory list, and the ISO 15924 script code
list." It apparently does not include a XML form but, since it is machine-readable, you can always do it yourself.

爱你不解释 2024-08-11 19:36:31

上面 bortzmeyer 链接到的 Debian 软件包站点有一个到 FTP 发行版分发站点的链接。 ftp://pkg-isocodes.alioth.debian.org/pub/pkg -isocodes/ 那里提供的最新版本 3.13 确实包含 XML 形式。自述文件中:

“此外,该包以 XML 文件形式提供 ISO 标准
也可供其他应用程序使用。所有这些 XML 文件
存储在目录“/usr/share/xml/iso-codes”中。”

希望这对将来的人有帮助。

The Debian package site which bortzmeyer links to above has a link to the FTP release distribution site. ftp://pkg-isocodes.alioth.debian.org/pub/pkg-isocodes/ The latest version 3.13 available there does include XML form. From the README:

"Furthermore, this package provides the ISO standards as XML files
to be used by other applications as well. All those XML files
are stored in the directory "/usr/share/xml/iso-codes"."

Hope this helps someone in the future.

缺⑴份安定 2024-08-11 19:36:31

在提出这个问题时,这个来源可能不存在,但我正在寻找同样的东西并得到了这个:
http://peric.github.io/GetCountries/

不仅有 XML,还有 SQL 和 JSON格式也是如此,您可以从要包含的字段列表中进行选择。它也是从非官方来源获取的,但我想说它同样好。

This source probably didn't exist in the time when this question was made, but I was looking for the same thing and got this one:
http://peric.github.io/GetCountries/

Not only it has XML, but SQL and JSON formats as well, and you can choose from a list of fields you want included. It's also fetched from a source which is not official but I'd say it's as good.

摇划花蜜的午后 2024-08-11 19:36:31

ISO 4217 货币代码和其他标准的 XML 版本可以在不同的地方找到,包括此站点:

http://www.tm-xml.org/TM-XML/TM-XML_xml/TM-XML_Standards.xml

(更具体地说 http://www.tm-xml.org/TM-XML/TM-XML_xml/ISOCurrencyCode.xml

然后您可以按 Ctrl+U 查看源代码(xml 格式),或者您也可以直接保存页面。

The XML version for the ISO 4217 Currency codes and other standards can be found in different places, including this site:

http://www.tm-xml.org/TM-XML/TM-XML_xml/TM-XML_Standards.xml

(more specifically http://www.tm-xml.org/TM-XML/TM-XML_xml/ISOCurrencyCode.xml)

You can then press Ctrl+U to see the source, which is in xml, or you can just save the page.

面如桃花 2024-08-11 19:36:31

我也在寻找这个,我在这里找到了它。它只是货币 iso 代码,并且采用 XML 格式。

但是,它只能用于个人/信息目的。

I was searching for this too, and I found it here. It is only the currency iso codes and is in XML format.

However, it can only be used for personal/information purposes only.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文