Re: [Wikidata-tech] [Wikidata] Script and API module for constraint checks

2017-04-28 Thread Luca Martinelli
Thanks Lea, I'll give it immediately a try!

L.

2017-04-27 14:47 GMT+02:00 Léa Lacroix :
> Hello all,
>
> In the past few months, the development team has mentored a student, Olga,
> to help us developing a user script that displays the constraints on the
> item pages.
>
> To use the script, add the following line to your user/common.js:
>
> mw.loader.load(
> '//www.wikidata.org/w/index.php?title=User:Jonas_Kress_(WMDE)/check_constraints.js=raw=text/javascript'
> );
>
> You will see an icon next to violations. When you click it you will see the
> full report.
>
> This script is based on a new API module for constraint checks that one can
> use to check constraints on items and statements. At the moment, the
> constraint checks are only derived from the property discussion page
> constraint templates, not directly from statements. They are then stored in
> a database table. We are running a script to update this table every now and
> then or when you ask for it. Also note that some constraint checks are
> disabled (for example the format check). In the future we will support
> adding and updating constraints on property statements and we will implement
> support for some constraints that are currently still missing.
>
> If you try it, feel free to give us feedback! You can also add comments or
> subtasks on Phabricator (see the ticket for the API module and the user
> script).
>
> If there is no major disagreement, we would like to turn this script into a
> gadget in the next days.
>
> Thanks go to Olga and all the developers that helped her providing this new
> feature :)
>
> See also:
>
> API Documentation
> Self-documentation for the module
>
> Cheers,
>
> --
> Léa Lacroix
> Project Manager Community Communication for Wikidata
>
> Wikimedia Deutschland e.V.
> Tempelhofer Ufer 23-24
> 10963 Berlin
> www.wikimedia.de
>
> Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
>
> Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter
> der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für
> Körperschaften I Berlin, Steuernummer 27/029/42207.
>
> ___
> Wikidata mailing list
> wikid...@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>



-- 
Luca "Sannita" Martinelli
http://it.wikipedia.org/wiki/Utente:Sannita

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


Re: [Wikidata-tech] [Wikidata] Script and API module for constraint checks

2017-04-28 Thread mate.banyi
Sziasztok,

On first try I seem to have found a false positive 
https://www.wikidata.org/wiki/Q20001199#P3818. Or am I missing something?

Best,
Máté

Feladó: Léa Lacroix
Elküldve: 2017. április 27., csütörtök 14:48
Címzett: Discussion list for the Wikidata project.; 
wikidata-tech@lists.wikimedia.org
Tárgy: [Wikidata] Script and API module for constraint checks

Hello all,
In the past few months, the development team has mentored a student, Olga, to 
help us developing a user script that displays the constraints on the item 
pages.
To use the script, add the following line to your user/common.js:
mw.loader.load( 
'//www.wikidata.org/w/index.php?title=User:Jonas_Kress_(WMDE)/check_constraints.js=raw=text/javascript'
 );
You will see an icon next to violations. When you click it you will see the 
full report.

This script is based on a new API module for constraint checks that one can use 
to check constraints on items and statements. At the moment, the constraint 
checks are only derived from the property discussion page constraint templates, 
not directly from statements. They are then stored in a database table. We are 
running a script to update this table every now and then or when you ask for 
it. Also note that some constraint checks are disabled (for example the format 
check). In the future we will support adding and updating constraints on 
property statements and we will implement support for some constraints that are 
currently still missing.
If you try it, feel free to give us feedback! You can also add comments or 
subtasks on Phabricator (see the ticket for the API module and the user script).
If there is no major disagreement, we would like to turn this script into a 
gadget in the next days.
Thanks go to Olga and all the developers that helped her providing this new 
feature :)
See also:
• API Documentation
• Self-documentation for the module
Cheers,

-- 
Léa Lacroix
Project Manager Community Communication for Wikidata

Wikimedia Deutschland e.V.
Tempelhofer Ufer 23-24
10963 Berlin
www.wikimedia.de

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.

Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der 
Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für 
Körperschaften I Berlin, Steuernummer 27/029/42207.

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


Re: [Wikidata-tech] [Wikidata] Script and API module for constraint checks

2017-04-28 Thread Jan Macura
This is an excellent tool! Many thanks Olga for its development!

>From technical point of view, it seems to me, to work fine, so I recommend
to release this useful tool as a gadget.

However, I found that the tool's interface keeps in English all the time,
although the constraint templates are translated to user's chosen language.
Would it be possible to internationalize the tool?

Thanks
 Jan

On 27 April 2017 at 14:47, Léa Lacroix  wrote:

> Hello all,
>
> In the past few months, the development team has mentored a student, Olga,
> to help us developing a user script
> 
> that displays the constraints on the item pages.
>
> To use the script, add the following line to your user/common.js:
>
> mw.loader.load( 
> '//www.wikidata.org/w/index.php?title=User:Jonas_Kress_(WMDE)/check_constraints.js=raw=text/javascript'
>  );
>
> You will see an icon [image: Icon used on the user script for constraint
> reports on Wikidata]
>  next to
> violations. When you click it you will see the full report.
>
> [image: Screenshot of the user script checking constraints on Wikidata]
> 
>
> This script is based on a new API module for constraint checks
> 
> that one can use to check constraints on items and statements. At the
> moment, the constraint checks are only derived from the property discussion
> page constraint templates, not directly from statements. They are then
> stored in a database table. We are running a script to update this table
> every now and then or when you ask for it. Also note that some constraint
> checks are disabled (for example the format check). In the future we will
> support adding and updating constraints on property statements and we will
> implement support for some constraints that are currently still missing.
>
> If you try it, feel free to give us feedback! You can also add comments or
> subtasks on Phabricator (see the ticket for the API module
>  and the user script
> ).
>
> If there is no major disagreement, we would like to turn this script into
> a gadget in the next days.
>
> Thanks go to Olga and all the developers that helped her providing this
> new feature :)
>
> See also:
>
>- API Documentation
>
>- Self-documentation for the module
>
>
> Cheers,
>
> --
> Léa Lacroix
> Project Manager Community Communication for Wikidata
>
> Wikimedia Deutschland e.V.
> Tempelhofer Ufer 23-24
> 10963 Berlin
> www.wikimedia.de
>
> Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
>
> Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
> unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt
> für Körperschaften I Berlin, Steuernummer 27/029/42207.
>
> ___
> Wikidata mailing list
> wikid...@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
>
___
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech


Re: [Wikidata] Script and API module for constraint checks

2017-04-27 Thread Jan Macura
This is an excellent tool! Many thanks Olga for its development!

>From technical point of view, it seems to me, to work fine, so I recommend
to release this useful tool as a gadget.

However, I found that the tool's interface keeps in English all the time,
although the constraint templates are translated to user's chosen language.
Would it be possible to internationalize the tool?

Thanks
 Jan

On 27 April 2017 at 14:47, Léa Lacroix  wrote:

> Hello all,
>
> In the past few months, the development team has mentored a student, Olga,
> to help us developing a user script
> 
> that displays the constraints on the item pages.
>
> To use the script, add the following line to your user/common.js:
>
> mw.loader.load( 
> '//www.wikidata.org/w/index.php?title=User:Jonas_Kress_(WMDE)/check_constraints.js=raw=text/javascript'
>  );
>
> You will see an icon [image: Icon used on the user script for constraint
> reports on Wikidata]
>  next to
> violations. When you click it you will see the full report.
>
> [image: Screenshot of the user script checking constraints on Wikidata]
> 
>
> This script is based on a new API module for constraint checks
> 
> that one can use to check constraints on items and statements. At the
> moment, the constraint checks are only derived from the property discussion
> page constraint templates, not directly from statements. They are then
> stored in a database table. We are running a script to update this table
> every now and then or when you ask for it. Also note that some constraint
> checks are disabled (for example the format check). In the future we will
> support adding and updating constraints on property statements and we will
> implement support for some constraints that are currently still missing.
>
> If you try it, feel free to give us feedback! You can also add comments or
> subtasks on Phabricator (see the ticket for the API module
>  and the user script
> ).
>
> If there is no major disagreement, we would like to turn this script into
> a gadget in the next days.
>
> Thanks go to Olga and all the developers that helped her providing this
> new feature :)
>
> See also:
>
>- API Documentation
>
>- Self-documentation for the module
>
>
> Cheers,
>
> --
> Léa Lacroix
> Project Manager Community Communication for Wikidata
>
> Wikimedia Deutschland e.V.
> Tempelhofer Ufer 23-24
> 10963 Berlin
> www.wikimedia.de
>
> Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
>
> Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
> unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt
> für Körperschaften I Berlin, Steuernummer 27/029/42207.
>
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
>
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Script and API module for constraint checks

2017-04-27 Thread Maarten Dammers

Hi Léa,


On 27-04-17 14:47, Léa Lacroix wrote:

Hello all,

In the past few months, the development team has mentored a student, 
Olga, to help us developing a user script 
 
that displays the constraints on the item pages.


To use the script, add the following line to your user/common.js:

mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Jonas_Kress_(WMDE)/check_constraints.js=raw=text/javascript 
' );
Is it a conscious choice not to make a gadget of this or just didn't 
think of it? No messing with javascript. Makes it much easier for user 
to try it.


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


Re: [Wikidata] Script and API module for constraint checks

2017-04-27 Thread Gerard Meijssen
Hoi,
I have included it in mine.. I find loads of errors that are in my opinion
fine. So it does not help.
Thanks,
 GerardM

https://www.wikidata.org/wiki/Q8499100

On 27 April 2017 at 14:47, Léa Lacroix  wrote:

> Hello all,
>
> In the past few months, the development team has mentored a student, Olga,
> to help us developing a user script
> 
> that displays the constraints on the item pages.
>
> To use the script, add the following line to your user/common.js:
>
> mw.loader.load( 
> '//www.wikidata.org/w/index.php?title=User:Jonas_Kress_(WMDE)/check_constraints.js=raw=text/javascript'
>  );
>
> You will see an icon [image: Icon used on the user script for constraint
> reports on Wikidata]
>  next to
> violations. When you click it you will see the full report.
>
> [image: Screenshot of the user script checking constraints on Wikidata]
> 
>
> This script is based on a new API module for constraint checks
> 
> that one can use to check constraints on items and statements. At the
> moment, the constraint checks are only derived from the property discussion
> page constraint templates, not directly from statements. They are then
> stored in a database table. We are running a script to update this table
> every now and then or when you ask for it. Also note that some constraint
> checks are disabled (for example the format check). In the future we will
> support adding and updating constraints on property statements and we will
> implement support for some constraints that are currently still missing.
>
> If you try it, feel free to give us feedback! You can also add comments or
> subtasks on Phabricator (see the ticket for the API module
>  and the user script
> ).
>
> If there is no major disagreement, we would like to turn this script into
> a gadget in the next days.
>
> Thanks go to Olga and all the developers that helped her providing this
> new feature :)
>
> See also:
>
>- API Documentation
>
>- Self-documentation for the module
>
>
> Cheers,
>
> --
> Léa Lacroix
> Project Manager Community Communication for Wikidata
>
> Wikimedia Deutschland e.V.
> Tempelhofer Ufer 23-24
> 10963 Berlin
> www.wikimedia.de
>
> Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
>
> Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
> unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt
> für Körperschaften I Berlin, Steuernummer 27/029/42207.
>
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
>
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Script and API module for constraint checks

2017-04-27 Thread mate.banyi
Sziasztok,

On first try I seem to have found a false positive 
https://www.wikidata.org/wiki/Q20001199#P3818. Or am I missing something?

Best,
Máté

Feladó: Léa Lacroix
Elküldve: 2017. április 27., csütörtök 14:48
Címzett: Discussion list for the Wikidata project.; 
wikidata-t...@lists.wikimedia.org
Tárgy: [Wikidata] Script and API module for constraint checks

Hello all,
In the past few months, the development team has mentored a student, Olga, to 
help us developing a user script that displays the constraints on the item 
pages.
To use the script, add the following line to your user/common.js:
mw.loader.load( 
'//www.wikidata.org/w/index.php?title=User:Jonas_Kress_(WMDE)/check_constraints.js=raw=text/javascript'
 );
You will see an icon next to violations. When you click it you will see the 
full report.

This script is based on a new API module for constraint checks that one can use 
to check constraints on items and statements. At the moment, the constraint 
checks are only derived from the property discussion page constraint templates, 
not directly from statements. They are then stored in a database table. We are 
running a script to update this table every now and then or when you ask for 
it. Also note that some constraint checks are disabled (for example the format 
check). In the future we will support adding and updating constraints on 
property statements and we will implement support for some constraints that are 
currently still missing.
If you try it, feel free to give us feedback! You can also add comments or 
subtasks on Phabricator (see the ticket for the API module and the user script).
If there is no major disagreement, we would like to turn this script into a 
gadget in the next days.
Thanks go to Olga and all the developers that helped her providing this new 
feature :)
See also:
• API Documentation
• Self-documentation for the module
Cheers,

-- 
Léa Lacroix
Project Manager Community Communication for Wikidata

Wikimedia Deutschland e.V.
Tempelhofer Ufer 23-24
10963 Berlin
www.wikimedia.de

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.

Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der 
Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für 
Körperschaften I Berlin, Steuernummer 27/029/42207.

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


Re: [Wikidata] Script and API module for constraint checks

2017-04-27 Thread Yaroslav Blanter
Thanks, so far works perfectly.

Cheers
Yaroslav

On Thu, Apr 27, 2017 at 3:29 PM, Luca Martinelli 
wrote:

> Thanks Lea, I'll give it immediately a try!
>
> L.
>
> 2017-04-27 14:47 GMT+02:00 Léa Lacroix :
> > Hello all,
> >
> > In the past few months, the development team has mentored a student,
> Olga,
> > to help us developing a user script that displays the constraints on the
> > item pages.
> >
> > To use the script, add the following line to your user/common.js:
> >
> > mw.loader.load(
> > '//www.wikidata.org/w/index.php?title=User:Jonas_Kress_(
> WMDE)/check_constraints.js=raw=text/javascript'
> > );
> >
> > You will see an icon next to violations. When you click it you will see
> the
> > full report.
> >
> > This script is based on a new API module for constraint checks that one
> can
> > use to check constraints on items and statements. At the moment, the
> > constraint checks are only derived from the property discussion page
> > constraint templates, not directly from statements. They are then stored
> in
> > a database table. We are running a script to update this table every now
> and
> > then or when you ask for it. Also note that some constraint checks are
> > disabled (for example the format check). In the future we will support
> > adding and updating constraints on property statements and we will
> implement
> > support for some constraints that are currently still missing.
> >
> > If you try it, feel free to give us feedback! You can also add comments
> or
> > subtasks on Phabricator (see the ticket for the API module and the user
> > script).
> >
> > If there is no major disagreement, we would like to turn this script
> into a
> > gadget in the next days.
> >
> > Thanks go to Olga and all the developers that helped her providing this
> new
> > feature :)
> >
> > See also:
> >
> > API Documentation
> > Self-documentation for the module
> >
> > Cheers,
> >
> > --
> > Léa Lacroix
> > Project Manager Community Communication for Wikidata
> >
> > Wikimedia Deutschland e.V.
> > Tempelhofer Ufer 23-24
> > 10963 Berlin
> > www.wikimedia.de
> >
> > Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
> >
> > Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
> unter
> > der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für
> > Körperschaften I Berlin, Steuernummer 27/029/42207.
> >
> > ___
> > Wikidata mailing list
> > Wikidata@lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/wikidata
> >
>
>
>
> --
> Luca "Sannita" Martinelli
> http://it.wikipedia.org/wiki/Utente:Sannita
>
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata


Re: [Wikidata] Script and API module for constraint checks

2017-04-27 Thread Luca Martinelli
Thanks Lea, I'll give it immediately a try!

L.

2017-04-27 14:47 GMT+02:00 Léa Lacroix :
> Hello all,
>
> In the past few months, the development team has mentored a student, Olga,
> to help us developing a user script that displays the constraints on the
> item pages.
>
> To use the script, add the following line to your user/common.js:
>
> mw.loader.load(
> '//www.wikidata.org/w/index.php?title=User:Jonas_Kress_(WMDE)/check_constraints.js=raw=text/javascript'
> );
>
> You will see an icon next to violations. When you click it you will see the
> full report.
>
> This script is based on a new API module for constraint checks that one can
> use to check constraints on items and statements. At the moment, the
> constraint checks are only derived from the property discussion page
> constraint templates, not directly from statements. They are then stored in
> a database table. We are running a script to update this table every now and
> then or when you ask for it. Also note that some constraint checks are
> disabled (for example the format check). In the future we will support
> adding and updating constraints on property statements and we will implement
> support for some constraints that are currently still missing.
>
> If you try it, feel free to give us feedback! You can also add comments or
> subtasks on Phabricator (see the ticket for the API module and the user
> script).
>
> If there is no major disagreement, we would like to turn this script into a
> gadget in the next days.
>
> Thanks go to Olga and all the developers that helped her providing this new
> feature :)
>
> See also:
>
> API Documentation
> Self-documentation for the module
>
> Cheers,
>
> --
> Léa Lacroix
> Project Manager Community Communication for Wikidata
>
> Wikimedia Deutschland e.V.
> Tempelhofer Ufer 23-24
> 10963 Berlin
> www.wikimedia.de
>
> Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
>
> Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter
> der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für
> Körperschaften I Berlin, Steuernummer 27/029/42207.
>
> ___
> Wikidata mailing list
> Wikidata@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>



-- 
Luca "Sannita" Martinelli
http://it.wikipedia.org/wiki/Utente:Sannita

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


[Wikidata] Script and API module for constraint checks

2017-04-27 Thread Léa Lacroix
Hello all,

In the past few months, the development team has mentored a student, Olga,
to help us developing a user script

that displays the constraints on the item pages.

To use the script, add the following line to your user/common.js:

mw.loader.load(
'//www.wikidata.org/w/index.php?title=User:Jonas_Kress_(WMDE)/check_constraints.js=raw=text/javascript'
);

You will see an icon [image: Icon used on the user script for constraint
reports on Wikidata]
 next to
violations. When you click it you will see the full report.

[image: Screenshot of the user script checking constraints on Wikidata]


This script is based on a new API module for constraint checks

that one can use to check constraints on items and statements. At the
moment, the constraint checks are only derived from the property discussion
page constraint templates, not directly from statements. They are then
stored in a database table. We are running a script to update this table
every now and then or when you ask for it. Also note that some constraint
checks are disabled (for example the format check). In the future we will
support adding and updating constraints on property statements and we will
implement support for some constraints that are currently still missing.

If you try it, feel free to give us feedback! You can also add comments or
subtasks on Phabricator (see the ticket for the API module
 and the user script
).

If there is no major disagreement, we would like to turn this script into a
gadget in the next days.

Thanks go to Olga and all the developers that helped her providing this new
feature :)

See also:

   - API Documentation
   
   - Self-documentation for the module
   

Cheers,

-- 
Léa Lacroix
Project Manager Community Communication for Wikidata

Wikimedia Deutschland e.V.
Tempelhofer Ufer 23-24
10963 Berlin
www.wikimedia.de

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.

Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter
der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für
Körperschaften I Berlin, Steuernummer 27/029/42207.
___
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata