[ECODP-dev] term translation api

David Raznick david.raznick at okfn.org
Tue Sep 3 09:27:52 UTC 2013


Hello

I think the confusion exists for 2 reasons.

 * Interface translations i.e "Publisher" does come up in the api.

 * On the other hand vocabulary translation is in the api, but it is keyed
by uri not English if available. i.e

http://odp.tenforce.com/data/<http://odp.tenforce.com/data/api/action/term_translation_show?terms=http://publications.europa.eu/resource/authority/country/GRC>
api/action/term_translation_<http://odp.tenforce.com/data/api/action/term_translation_show?terms=http://publications.europa.eu/resource/authority/country/GRC>
show?terms=http://publications.europa.eu/resource/authority/country/GRC<http://odp.tenforce.com/data/api/action/term_translation_show?terms=http://publications.europa.eu/resource/authority/country/GRC>

Thanks

David


On 2 September 2013 21:33, Bert Van Nuffelen <bert.van.nuffelen at tenforce.com
> wrote:

> Hi David,
>
> I think the confusion on our side is that not all translations are offered
> through this interface.
>
> I just tried again on odp. (As I am at home.)
>
> I retried for a translated description:
>
> http://odp.tenforce.com/fr/data/dataset/VfGQxcxVB8MAfEYpM6ihBA
>
>
> http://odp.tenforce.com/data/api/action/term_translation_show?terms=This%20is%20a%20description%20about%20the%20test%20dataset%20simple_complete
> .
>
> And it returns results.
>
> However,
> http://odp.tenforce.com/data/api/action/term_translation_show?terms=Greece
>
> http://odp.tenforce.com/data/api/action/term_translation_show?terms=Publisher
>
> return empty lists. Although these words are translated.
>
> Can you explain the behavior?
>
> best regards,
>
> Bert
>
>
>
> 2013/9/2 David Raznick <david.raznick at okfn.org>
>
>> Hello
>>
>> The correct thing todo is put "terms"
>>
>> http://192.168.35.145/data
>> /api/action/term_translation_show?terms=Eurostat
>>
>> If the term does not exist you get an empty list back not a 400 error.
>>
>> Thanks
>>
>> David
>>
>>
>>
>> On 30 August 2013 14:23, Bert Van Nuffelen <
>> bert.van.nuffelen at tenforce.com> wrote:
>>
>>>  Hi John,
>>>
>>> we execute
>>>
>>>
>>> http://192.168.35.145/data/api/action/term_translation_show?term=Publisher
>>>
>>> in our browser
>>>
>>> but we receive always the answer
>>>
>>> "term not found"
>>>
>>> Is this the right way to get the translation for terms via the CKAN api?
>>>
>>> best 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
>>> Mobile:+32 479 06 24 26
>>> skype: bert.van.nuffelen
>>>
>>> _______________________________________________
>>> Ecodp-dev mailing list
>>> Ecodp-dev at lists.okfn.org
>>> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>>>
>>>
>>
>
>
> --
> 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
> Mobile:+32 479 06 24 26
> skype: bert.van.nuffelen
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130903/1f266bc8/attachment.html>


More information about the ecodp-dev mailing list