I was just wondering if anyone knew of a source of standard ISO data in xml format, such as ISO 3166 (Country codes/names), ISO 4217 (Currency Codes) or ISO 639 (Languages)?
我只是想知道是否有人知道xml格式的标准ISO数据来源,如ISO 3166(国家代码/名称)、ISO 4217(货币代码)或ISO 639(语言)?
If it was in any way 'official' and maintained with any changes to the standards that would be great!
如果它是任何形式的“官方”和维护与任何变化的标准,那将是伟大的!
UPDATE: I can't use files with non-commercial use restrictions.
更新:我不能使用非商业性使用限制的文件。
UPDATE 2: Please, if you feel it necessary to vote this down, or vote it closed as a dupe, point me in the direction of the existing question with a suitable answer.
更新2:如果你觉得有必要投票否决这个问题,或者把它作为一个欺骗来结束,请给我一个合适的答案,指向现有问题的方向。
7 个解决方案
#1
4
A good place to start is the ISO website (perhaps with the help of Google). The country codes are quite easy to find.
一个很好的开始是ISO网站(也许在谷歌的帮助下)。国家代码很容易找到。
Neither the currency codes nor the language codes appear to be available in XML, plus the ISO charges to download them.
货币代码和语言代码看起来都不是XML格式的,另外,下载这些代码需要ISO付费。
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.
你可以从国会图书馆下载一份非正式版本的ISO语言代码。将该列表转换为XML将很容易。您可以从ISO网站上抓取此页面以获取货币代码。
If you are interested in other ISO codes you haven't list the ISO FAQ includes a list of commonly used ones.
如果您对其他的ISO代码感兴趣,您还没有列出ISO FAQ,其中包括常用的一些。
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.
关于您对不受商业使用限制的网站的请求:如果您从其他网站获得代码,那么该网站就违反了ISO版权。他们没有权利放弃ISO的非商业条款。所以你仍然不能合法地在商业环境中使用这些信息。
#2
5
The CLDR - Unicode Common Locale Data Repository may be of interest.
可能对CLDR - Unicode通用语言环境数据存储库感兴趣。
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:
Unicode CLDR为支持世界语言的软件提供了关键的构建块,提供了最大、最广泛的语言环境数据标准存储库。这些数据被广泛的公司用于他们的软件国际化和本地化,使软件适应不同语言的约定,用于以下常见的软件任务:
- 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.
CLDR使用了UTS #35提供的XML格式:Locale数据标记语言(LDML)。LDML是一种格式,不仅用于CLDR,还用于一般的语言环境数据交换,如在Microsoft的. net中。
http://cldr.unicode.org/
#3
3
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:
bortzmeyer链接到上面的Debian软件包站点有一个到FTP发布站点的链接。ftp://pkisocodes.alioth.debian.org/pub/pkg -isocodes/最新的3.13版本确实包含XML表单。的自述:
"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"."
此外,这个包还提供了ISO标准作为XML文件,供其他应用程序使用。所有这些XML文件都存储在目录“/usr/share/ XML /iso-codes”中。
Hope this helps someone in the future.
希望这对未来的人有所帮助。
#4
3
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/
当这个问题被提出时,这个源可能并不存在,但是我正在寻找同样的东西,并得到了这个:http://peric.github.io/getes/。
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.
它不仅有XML,还有SQL和JSON格式,您还可以从要包含的字段列表中进行选择。它也来自一个非官方来源,但我得说它是一样的好。
#5
2
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.
ISO没有发布它的标准,除了一些例外。有时,数据可以从其他来源获得,如维护代理(ISO 639-3的SIL),但并不总是以机器可读的形式。请记住,ISO恐龙有一个非常不同的文化,它与Perl脚本、mashup和RDF的Internet世界相隔数百万年。
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.
对于语言和国家代码,这些标准由IANA在语言子标记注册表中发布。在langtag.net上可以看到一个非官方的XML版本。
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.
另一个来源是Debian软件包ISO代码,它的描述是“这个包提供了ISO 639语言代码列表、ISO 4217货币代码列表、ISO 3166区域代码列表、ISO 3166-2子区域列表和ISO 15924脚本代码列表。”显然,它不包含XML表单,但是,由于它是机器可读的,所以您总是可以自己做。
#6
2
The XML version for the ISO 4217 Currency codes and other standards can be found in different places, including this site:
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/TM-XML_Standards.xml
(more specifically http://www.tm-xml.org/TM-XML/TM-XML_xml/ISOCurrencyCode.xml)
(更具体地说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.
然后,您可以按Ctrl+U查看xml格式的源代码,或者直接保存页面。
#7
2
I was searching for this too, and I found it here. It is only the currency iso codes and is in XML format.
我也在找这个,我在这里找到了。它只是货币iso代码,是XML格式。
However, it can only be used for personal/information purposes only.
然而,它只能用于个人/信息目的。
#1
4
A good place to start is the ISO website (perhaps with the help of Google). The country codes are quite easy to find.
一个很好的开始是ISO网站(也许在谷歌的帮助下)。国家代码很容易找到。
Neither the currency codes nor the language codes appear to be available in XML, plus the ISO charges to download them.
货币代码和语言代码看起来都不是XML格式的,另外,下载这些代码需要ISO付费。
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.
你可以从国会图书馆下载一份非正式版本的ISO语言代码。将该列表转换为XML将很容易。您可以从ISO网站上抓取此页面以获取货币代码。
If you are interested in other ISO codes you haven't list the ISO FAQ includes a list of commonly used ones.
如果您对其他的ISO代码感兴趣,您还没有列出ISO FAQ,其中包括常用的一些。
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.
关于您对不受商业使用限制的网站的请求:如果您从其他网站获得代码,那么该网站就违反了ISO版权。他们没有权利放弃ISO的非商业条款。所以你仍然不能合法地在商业环境中使用这些信息。
#2
5
The CLDR - Unicode Common Locale Data Repository may be of interest.
可能对CLDR - Unicode通用语言环境数据存储库感兴趣。
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:
Unicode CLDR为支持世界语言的软件提供了关键的构建块,提供了最大、最广泛的语言环境数据标准存储库。这些数据被广泛的公司用于他们的软件国际化和本地化,使软件适应不同语言的约定,用于以下常见的软件任务:
- 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.
CLDR使用了UTS #35提供的XML格式:Locale数据标记语言(LDML)。LDML是一种格式,不仅用于CLDR,还用于一般的语言环境数据交换,如在Microsoft的. net中。
http://cldr.unicode.org/
#3
3
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:
bortzmeyer链接到上面的Debian软件包站点有一个到FTP发布站点的链接。ftp://pkisocodes.alioth.debian.org/pub/pkg -isocodes/最新的3.13版本确实包含XML表单。的自述:
"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"."
此外,这个包还提供了ISO标准作为XML文件,供其他应用程序使用。所有这些XML文件都存储在目录“/usr/share/ XML /iso-codes”中。
Hope this helps someone in the future.
希望这对未来的人有所帮助。
#4
3
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/
当这个问题被提出时,这个源可能并不存在,但是我正在寻找同样的东西,并得到了这个:http://peric.github.io/getes/。
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.
它不仅有XML,还有SQL和JSON格式,您还可以从要包含的字段列表中进行选择。它也来自一个非官方来源,但我得说它是一样的好。
#5
2
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.
ISO没有发布它的标准,除了一些例外。有时,数据可以从其他来源获得,如维护代理(ISO 639-3的SIL),但并不总是以机器可读的形式。请记住,ISO恐龙有一个非常不同的文化,它与Perl脚本、mashup和RDF的Internet世界相隔数百万年。
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.
对于语言和国家代码,这些标准由IANA在语言子标记注册表中发布。在langtag.net上可以看到一个非官方的XML版本。
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.
另一个来源是Debian软件包ISO代码,它的描述是“这个包提供了ISO 639语言代码列表、ISO 4217货币代码列表、ISO 3166区域代码列表、ISO 3166-2子区域列表和ISO 15924脚本代码列表。”显然,它不包含XML表单,但是,由于它是机器可读的,所以您总是可以自己做。
#6
2
The XML version for the ISO 4217 Currency codes and other standards can be found in different places, including this site:
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/TM-XML_Standards.xml
(more specifically http://www.tm-xml.org/TM-XML/TM-XML_xml/ISOCurrencyCode.xml)
(更具体地说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.
然后,您可以按Ctrl+U查看xml格式的源代码,或者直接保存页面。
#7
2
I was searching for this too, and I found it here. It is only the currency iso codes and is in XML format.
我也在找这个,我在这里找到了。它只是货币iso代码,是XML格式。
However, it can only be used for personal/information purposes only.
然而,它只能用于个人/信息目的。