https://projects.ecoinformatics.org/ecoinfo/
https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?1469134036
2004-09-02T16:38:20Z
Ecoinformatics Redmine
EML - Bug #585: internationalization needed in EML
https://projects.ecoinformatics.org/ecoinfo/issues/585?journal_id=1993
2004-09-02T16:38:20Z
Matt Jones
jones@nceas.ucsb.edu
<ul></ul><p>Changing QA contact to the list for all current EML bugs so that people can<br />track what is happening.</p>
EML - Bug #585: internationalization needed in EML
https://projects.ecoinformatics.org/ecoinfo/issues/585?journal_id=1994
2008-12-05T17:31:44Z
Margaret O'Brien
mob@msi.ucsb.edu
<ul></ul><p>This comment from an email from David Blankman:<br />As EML is becoming an international standard, we need to start thinking about ways to make EML more intelligent about multiple languages. While EML allows multiple titles, there is currently no way to indicated that multiple titles are equivalent. For example,if I have:<br /><title> North American Forests </title> AND<br /><title> Bosques de Norte Americano</title></p>
<p>EML currently has no way to indicate that these are the same title, just in a different language.</p>
<p>Matt and I were talking about this at the ISEI-Cancun meeting, but I thought that it would be a good idea to get this discussion started within eml-dev and the ILTER group as well.</p>
EML - Bug #585: internationalization needed in EML
https://projects.ecoinformatics.org/ecoinfo/issues/585?journal_id=1995
2008-12-08T18:33:22Z
Matt Jones
jones@nceas.ucsb.edu
<ul></ul><p>David and I discussed (briefly) some of these issues at ISEI. And we also discussed them at the ILTER meeting in China. The 'language' tag in eml-resource defines the language of the resource, which in the case of eml-dataset resources means the language of the data. Interestingly, we don't really have a language tag per se for the EMl document itself, except that all XML documents can use the built-in "xml:lang" attribute, which is optional for all XML elements (<a class="external" href="http://www.w3.org/TR/REC-xml/#sec-lang-tag">http://www.w3.org/TR/REC-xml/#sec-lang-tag</a>). This allows one to set the language for each and every element in an XML document, such as:</p>
<p><title xml:lang="en">North American Forests</title><br /><title xml:lang="es">Bosques de Norte Americano</title></p>
<p>Two problems we would need to address with this approach come immedately to mind:</p>
<p>1) Many elements in EML are not repeatable, and therefore it is not possible to have one copy of the element in English and another in a different language. So cardinality would have to be updated throughout the EML schemas, which would make some aspects of validation more confusing.<br />2) For those elements that are already repeatable or are made repatable through a revision, there is no mechanism to indicate that the two element nodes are meant to be have the same semantic meaning in different languages, as opposed to two semantically different elements that happen to also differ in their language.</p>
<p>This second issue is the one that would require more structural changes to EML. For example, one might sometimes want to have more than one title (which is why title is currently repeatable), but other times want to have one title in two different languages. Either way, EML's current structures don't allow these subtleties to be specified.</p>
<p>Matt</p>
EML - Bug #585: internationalization needed in EML
https://projects.ecoinformatics.org/ecoinfo/issues/585?journal_id=1996
2008-12-09T23:15:30Z
Matt Jones
jones@nceas.ucsb.edu
<ul></ul><p>After more conversation on the email list, it seems that the approach to localization used in ISO 19139 may be applicable here. A fragment of a 19139 document might include:</p>
<p><abstract xsi:type="PT_FreeText_PropertyType"><br /> <gco:CharacterString>Brief narrative summary of the content of the resource</gco:CharacterString><br /> <!--== Alternative value ==--><br /> <PT_FreeText><br /> <textGroup><br /> <LocalisedCharacterString locale="#locale-fr">Résumé succinct<br />du contenu de la ressource</LocalisedCharacterString><br /> </textGroup><br /> </PT_FreeText><br /></abstract></p>
<p>So, the PT_FreeText_PropertyType is very similar in concept to the EML TextType. We could indeed define a new LocalizedTextType that use this same trick, basically allowing textGroup subelements with alternate language strings. Or we could simply use the definition of PT_FreeText in EML via an import (except that there may be restrictions on free reuse of ISO standards, which would prevent us from incorporating such a thing directly in EML, as redistribution is critical to an open standard). Although the naming conventions they've used are not particularly readable.</p>
<p>Note that this approach depends on a previously defined locale (locale="#locale-fr"), which is provided by a different set of elements earlier in the metadata for defining locales. The local defines both a language code and a character encoding for strings in that locale:</p>
<pre><code>&lt;locale&gt; <br /> &lt;PT_Locale id="locale-fr"&gt; <br /> &lt;languageCode&gt; <br /> &lt;LanguageCode <br /> codeList="resources/Codelist/gmxcodelists.xml# <br />LanguageCode" <br /> codeListValue="fra"> French &lt;/LanguageCode&gt; <br /> &lt;/languageCode&gt; <br /> &lt;characterEncoding&gt; <br /> &lt;MD_CharacterSetCode <br /> codeList="resources/Codelist/gmxcodelists.xml# <br />MD_CharacterSetCode" <br /> codeListValue="utf8">UTF 8&lt;/MD_CharacterSetCode&gt; <br /> &lt;/characterEncoding&gt; <br /> &lt;/PT_Locale&gt; <br /> &lt;/locale&gt;</code></pre>
<p>This is powerful, but it seems to me that the characterEncoding could get one in trouble with XML parsers if the locale character encoding differs from the encoding defined in the XML Prolog. As far as I know, an XML document can have one and only one character encoding, so mixing different elements with different encodings will probably mess up standard XML processors. This would have to be explored to see if it is a significant issue.</p>
EML - Bug #585: internationalization needed in EML
https://projects.ecoinformatics.org/ecoinfo/issues/585?journal_id=1997
2010-07-21T23:41:42Z
ben leinfelder
leinfelder@nceas.ucsb.edu
<ul></ul><p>Looking into this more concretely, it doesn't appear to be overly daunting.<br />For the dataset/title element I've extended the non-empty string type that it currently is in EML 2.1.0 to allow "mixed" content so that the original title can remain unchanged and additional translations can be added. This means multi-language fields would not need to be modified en masse when upgrading documents from existing EML 2.1.0 to EML 2.1.1 (or whatever EML version number we choose).<br />Fragment supporting old and new:<br />----------<br /> <title><br /> Original title<br /> <!-- language translations --><br /> <value xml:lang="en">Title in English</value><br /> <value xml:lang="es">Titulo en Español</value><br /> </title><br />----------</p>
<p>The relevant XSD change is below:<br />----------<br /> <xs:complexType name="i18nNonEmptyStringType" mixed="true"><br /> <xs:sequence><br /> <xs:element name="value" minOccurs="0" maxOccurs="unbounded"><br /> <xs:complexType><br /> <xs:simpleContent><br /> <xs:extension base="NonEmptyStringType"><br /> <xs:attribute ref="xml:lang" /><br /> </xs:extension><br /> </xs:simpleContent><br /> </xs:complexType><br /> </xs:element><br /> </xs:sequence><br /> </xs:complexType><br />----------</p>
<p>While this is valid XML that conforms to a valid schema, I'm not sure the "mixed" type will be the easiest to work with. Presumably XML parsers can deftly handle mixed elements, but I imagine there will be a few unanticipated gotchyas. Certainly for xPath-like queries, we'd need to be explicit about searching both the original element and any possible localized versions (sub-elements) of it, but this is an inescapable hurdle for any internationalization solution.<br />The current 'DocBook' style structure for some text fields (the "abstract" comes to mind) already uses "mixed" elements where text and structure can be interleaved. I believe multi-lingual extensions to those elements would be similarly straight forward as what I've described above.</p>
EML - Bug #585: internationalization needed in EML
https://projects.ecoinformatics.org/ecoinfo/issues/585?journal_id=1998
2013-03-27T21:14:43Z
Redmine Admin
<ul></ul><p>Original Bugzilla ID was 585</p>
EML - Bug #585: internationalization needed in EML
https://projects.ecoinformatics.org/ecoinfo/issues/585?journal_id=21658
2014-04-16T20:56:26Z
Matt Jones
jones@nceas.ucsb.edu
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Closed</i></li><li><strong>Target version</strong> changed from <i>EML2.2.0</i> to <i>EML2.1.1</i></li></ul><p>The i18nNonEmptyStringType described above was implemented and released as part of EML 2.1.1 -- closing this ticket as the feature is now complete.</p>