Re: [Wikidata] Language codes 'mul' and 'mis' not recognized

2020-06-22 Thread Nicolas VIGNERON
Hi,

Yes, that's very confusing but there is a trick : the GUI doesn't propose
nor "recognize" it but if you just press enter or click publish, it accepts
it anyway... (same for other codes, at least "fro" and "frm" old and middle
French), see https://www.wikidata.org/wiki/Q15397819#P1476 for instance.

Cheers, ~nicolas

Le lun. 22 juin 2020 à 21:48, Thomas Francart  a
écrit :

> Hello
>
> Le lun. 22 juin 2020 à 18:19, Mbch331  a
> écrit :
>
>> Monolingual codes aren't available for labels/aliases, only for
>> properties of the type monolingual text.
>>
> Indeed, thank youu.
> What confused me is that I cannot enter such a monolingual text value with
> language code "mul" or "mis" from the GUI, for a statement like "title".
>
> Thomas
>
>
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Language codes 'mul' and 'mis' not recognized

2020-06-22 Thread Thomas Francart
Hello

Le lun. 22 juin 2020 à 18:19, Mbch331  a
écrit :

> Monolingual codes aren't available for labels/aliases, only for properties
> of the type monolingual text.
>
Indeed, thank youu.
What confused me is that I cannot enter such a monolingual text value with
language code "mul" or "mis" from the GUI, for a statement like "title".

Thomas


> Mbch331
> Op 22-6-2020 om 15:52 schreef Thomas Francart:
>
> Hello
>
> Le lun. 22 juin 2020 à 15:33, Federico Leva (Nemo)  a
> écrit :
>
>> Thomas Francart, 22/06/20 16:21:
>> > I also cannot use these 2 codes when editing through the human
>> interface.
>>
>> Language code validation on Wikidata is sometimes confusing. See also:
>> https://phabricator.wikimedia.org/T39459
>>
>>
> Thanks, I read the page but am not sure to understand how it relates to
> the original question. Can you decode ? Does it explain why creating
> labels/aliases with code 'mul' or 'mis' fails using the API ?
>
>
>> Why "mis" instead of "und"? See also
>> https://phabricator.wikimedia.org/T230833#6103004
>>
>>
> Sorry, I wrote "when the language value is unknown", but this was not
> precise : the original data we want to synch already contains data using
> code "mis" (as a valid ISO639-2 iso code, see
> https://www.loc.gov/standards/iso639-2/php/code_list.php), and as I read
> it was supported by Wikidata, I attempted to use that code directly through
> the API, with no luck. Similarly, original data uses code 'mul' (also a
> valid ISO639-2 code).
>
> Thomas
>
>
>> Federico
>>
>
>
> --
>
> *Thomas Francart* -* SPARNA*
> Web de *données* | Architecture de l'*information* | Accès aux
> *connaissances*
> blog : blog.sparna.fr, site : sparna.fr, linkedin :
> fr.linkedin.com/in/thomasfrancart
> tel :  +33 (0)6.71.11.25.97, skype : francartthomas
>
> ___
> Wikidata mailing 
> listWikidata@lists.wikimedia.orghttps://lists.wikimedia.org/mailman/listinfo/wikidata
>
>
>
> 
>  Virusvrij.
> www.avast.com
> 
> <#m_637642425612966372_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>


-- 

*Thomas Francart* -* SPARNA*
Web de *données* | Architecture de l'*information* | Accès aux
*connaissances*
blog : blog.sparna.fr, site : sparna.fr, linkedin :
fr.linkedin.com/in/thomasfrancart
tel :  +33 (0)6.71.11.25.97, skype : francartthomas
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Language codes 'mul' and 'mis' not recognized

2020-06-22 Thread Mbch331
Monolingual codes aren't available for labels/aliases, only for 
properties of the type monolingual text.


Mbch331

Op 22-6-2020 om 15:52 schreef Thomas Francart:

Hello

Le lun. 22 juin 2020 à 15:33, Federico Leva (Nemo) > a écrit :


Thomas Francart, 22/06/20 16:21:
> I also cannot use these 2 codes when editing through the human
interface.

Language code validation on Wikidata is sometimes confusing. See also:
https://phabricator.wikimedia.org/T39459


Thanks, I read the page but am not sure to understand how it relates 
to the original question. Can you decode ? Does it explain why 
creating labels/aliases with code 'mul' or 'mis' fails using the API ?


Why "mis" instead of "und"? See also
https://phabricator.wikimedia.org/T230833#6103004


Sorry, I wrote "when the language value is unknown", but this was not 
precise : the original data we want to synch already contains data 
using code "mis" (as a valid ISO639-2 iso code, see 
https://www.loc.gov/standards/iso639-2/php/code_list.php), and as I 
read it was supported by Wikidata, I attempted to use that code 
directly through the API, with no luck. Similarly, original data uses 
code 'mul' (also a valid ISO639-2 code).


Thomas

Federico



--
*
*
*Thomas Francart* -*SPARNA*
Web de _données_ | Architecture de l'_information_ | Accès aux 
_connaissances_
blog : blog.sparna.fr , site : sparna.fr 
, linkedin : fr.linkedin.com/in/thomasfrancart 


tel :  +33 (0)6.71.11.25.97, skype : francartthomas

___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata



--
Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
https://www.avast.com/antivirus
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Language codes 'mul' and 'mis' not recognized

2020-06-22 Thread Thomas Francart
Hello

Le lun. 22 juin 2020 à 15:33, Federico Leva (Nemo)  a
écrit :

> Thomas Francart, 22/06/20 16:21:
> > I also cannot use these 2 codes when editing through the human interface.
>
> Language code validation on Wikidata is sometimes confusing. See also:
> https://phabricator.wikimedia.org/T39459
>
>
Thanks, I read the page but am not sure to understand how it relates to the
original question. Can you decode ? Does it explain why creating
labels/aliases with code 'mul' or 'mis' fails using the API ?


> Why "mis" instead of "und"? See also
> https://phabricator.wikimedia.org/T230833#6103004
>
>
Sorry, I wrote "when the language value is unknown", but this was not
precise : the original data we want to synch already contains data using
code "mis" (as a valid ISO639-2 iso code, see
https://www.loc.gov/standards/iso639-2/php/code_list.php), and as I read it
was supported by Wikidata, I attempted to use that code directly through
the API, with no luck. Similarly, original data uses code 'mul' (also a
valid ISO639-2 code).

Thomas


> Federico
>


-- 

*Thomas Francart* -* SPARNA*
Web de *données* | Architecture de l'*information* | Accès aux
*connaissances*
blog : blog.sparna.fr, site : sparna.fr, linkedin :
fr.linkedin.com/in/thomasfrancart
tel :  +33 (0)6.71.11.25.97, skype : francartthomas
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Language codes 'mul' and 'mis' not recognized

2020-06-22 Thread Federico Leva (Nemo)
Thomas Francart, 22/06/20 16:21:
> I also cannot use these 2 codes when editing through the human interface.

Language code validation on Wikidata is sometimes confusing. See also:
https://phabricator.wikimedia.org/T39459

Why "mis" instead of "und"? See also
https://phabricator.wikimedia.org/T230833#6103004

Federico

___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


[Wikidata] Language codes 'mul' and 'mis' not recognized

2020-06-22 Thread Thomas Francart
Hello

(Please direct me somewhere else is this is not the place to ask.)

I am developing a bot to synch ISSN data [1] using WDTK. Creating a
label/alias with the language code 'mul' (to indicate a multilingual
value), or 'mis' (to indicate the language is unknown) does not work and
returns an Exception from the wikimedia API ("[not-recognized-language] The
supplied language code was not recognized"). These 2 codes are however
documented at https://www.wikidata.org/wiki/Help:Monolingual_text_languages
and listed at
https://www.wikidata.org/wiki/Help:Wikimedia_language_codes/lists/all

I also cannot use these 2 codes when editing through the human interface.
I do however find items in Wikidata with 'mul' language codes.

Am I doing something wrong, did I misunderstand something, or is there a
true problem with these codes ?

Also opened ticket in WDTK issue tracker :
https://github.com/Wikidata/Wikidata-Toolkit/issues/509

Thanks
Thomas

[1] : ISSN Bot :
https://www.wikidata.org/wiki/Wikidata_talk:WikiProject_Periodicals#Data_donation_from_ISSN_Register_(Followup)

-- 

*Thomas Francart* -* SPARNA*
Web de *données* | Architecture de l'*information* | Accès aux
*connaissances*
blog : blog.sparna.fr, site : sparna.fr, linkedin :
fr.linkedin.com/in/thomasfrancart
tel :  +33 (0)6.71.11.25.97, skype : francartthomas
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata