[ECODP-dev] po-corporates labels > possible label issue

John Glover john.glover at okfn.org
Thu Sep 5 09:23:40 UTC 2013


Hi Dimitrios,

Yes that is correct, we do not currently prevent the user from supplying
English translations (indeed, these are actually used in some cases such as
to map a keyword URI to the English display value).

Regards,
John


On 5 September 2013 11:19, Dimitrios Mexis <dimitrios.mexis at tenforce.com>wrote:

>  John,
>
> As far as I understand, CKAN will let the user change the English texts
> through the API  of translations. The target language is dynamically picked
> by a sparql query.
> If I am correct, then an error in that query, instead of "el", writing
> "en", would produce these results.
>
> Regards
> Dimitrios
>
>
> On 5/09/2013 11:10, John Glover wrote:
>
> Hi Dimitrios,
>
>  I'm not sure that I understand the risk that you are referring to here,
> but I am glad that you have found the source of this problem. I will remove
> the incorrect translations from the database.
>
>  Regards,
> John
>
>
> On 5 September 2013 11:01, Dimitrios Mexis <dimitrios.mexis at tenforce.com>wrote:
>
>>  Hello John,
>>
>> I think the issue is that we made a process to update translations from
>> rdf. If you remember the discussion with term/term_translations/language.
>> We have the list of language codes including english. like "en","bg","el"
>> and so on.
>> I believe this is the cause of the problem. Now I have removed the "en"
>> keyword. But because it is a sparql select based on language codes, that
>> causes a potential risk.
>>
>>
>> Dimitrios
>>
>>
>>
>>
>> On 5/09/2013 10:47, John Glover wrote:
>>
>> Hi Bert,
>>
>>  To update you on this issue, it seems that there is an English
>> translation for the publisher name (containing the French version) in the
>> translation table in the database, which is why you are seeing this value.
>> I am still trying to verify where this came from.
>>
>>  I have rerun all of our server setup and migration commands locally and
>> these strings are not in my database, and we do not update translations
>> outside of our paster commands. Is there any code that you might have run
>> against the test server that could potentially update the translation for a
>> publisher?
>>
>>  Regards,
>> John
>>
>>
>> On 4 September 2013 16:52, John Glover <john.glover at okfn.org> wrote:
>>
>>> Thanks Bert, I will investigate.
>>>
>>>  Regards,
>>> John
>>>
>>>
>>>  On 4 September 2013 16:48, Bert Van Nuffelen <
>>> bert.van.nuffelen at tenforce.com> wrote:
>>>
>>>>   Hi,
>>>>
>>>>  the package 'bert' on the test server is associated with the next
>>>> publisher which has only an english and frensh label.
>>>>       {
>>>>         "term" : { "type": "uri", "value": "
>>>> http://publications.europa.eu/resource/authority/corporate-body/IAEA"
>>>> },
>>>>         "label" : { "type": "literal", "value": "International Atomic
>>>> Energy Agency" } ,
>>>>       "language" : { "type": "literal" , "value" : "en" }
>>>>       },
>>>>       {
>>>>         "term" : { "type": "uri", "value": "
>>>> http://publications.europa.eu/resource/authority/corporate-body/IAEA"
>>>> },
>>>>         "label" : { "type": "literal", "value": "Agence internationale
>>>> de l'\u00E9nergie atomique" } ,
>>>>       "language" : { "type": "literal" , "value" : "fr" }
>>>>       },
>>>>
>>>>  What I observe in datapublisher mode is that the french is only shown.
>>>>
>>>>  kind regards,
>>>>
>>>>  Bert
>>>>
>>>>
>>>> --
>>>> Bert Van Nuffelen
>>>>
>>>> Semantic Technologies Software Architect at TenForce
>>>> www.tenforce.be
>>>>
>>>> Bert.Van.Nuffelen at tenforce.com
>>>> Office: +32 (0)16 31 48 60 <%2B32%20%280%2916%2031%2048%2060>
>>>> Mobile:+32 479 06 24 26 <%2B32%20479%2006%2024%2026>
>>>> skype: bert.van.nuffelen
>>>>
>>>>  _______________________________________________
>>>> Ecodp-dev mailing list
>>>> Ecodp-dev at lists.okfn.org
>>>> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>>>>
>>>>
>>>
>>
>>
>> _______________________________________________
>> Ecodp-dev mailing listEcodp-dev at lists.okfn.orghttp://lists.okfn.org/mailman/listinfo/ecodp-dev
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130905/913db198/attachment.html>


More information about the ecodp-dev mailing list