Hello all,
In the past few months, the development team has mentored a student, Olga, to help us developing a user script https://www.wikidata.org/wiki/User:Jonas_Kress_%28WMDE%29/check_constraints.js 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&action=raw&ctype=text/javascript' );
You will see an icon [image: Icon used on the user script for constraint reports on Wikidata] https://commons.wikimedia.org/wiki/File:Constraint_icon.png next to violations. When you click it you will see the full report.
[image: Screenshot of the user script checking constraints on Wikidata] https://commons.wikimedia.org/wiki/File:Screenshot_constraint_check_Wikidata_user_script.png
This script is based on a new API module for constraint checks https://www.wikidata.org/wiki/Special:ApiSandbox#action.3Dwbcheckconstraints.26format.3Djson.26id.3DQ2 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 https://phabricator.wikimedia.org/T102757 and the user script https://phabricator.wikimedia.org/T97018).
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 https://www.mediawiki.org/wiki/Wikibase/API#wbcheckconstraints - Self-documentation for the module https://www.wikidata.org/w/api.php?action=help&modules=wbcheckconstraints
Cheers,
Thanks Lea, I'll give it immediately a try!
L.
2017-04-27 14:47 GMT+02:00 Léa Lacroix lea.lacroix@wikimedia.de:
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&action=raw&ctype=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
Thanks, so far works perfectly.
Cheers Yaroslav
On Thu, Apr 27, 2017 at 3:29 PM, Luca Martinelli martinelliluca@gmail.com wrote:
Thanks Lea, I'll give it immediately a try!
L.
2017-04-27 14:47 GMT+02:00 Léa Lacroix lea.lacroix@wikimedia.de:
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&action=raw&ctype=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
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&action=raw&ctype=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,
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 lea.lacroix@wikimedia.de wrote:
Hello all,
In the past few months, the development team has mentored a student, Olga, to help us developing a user script https://www.wikidata.org/wiki/User:Jonas_Kress_%28WMDE%29/check_constraints.js 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&action=raw&ctype=text/javascript' );
You will see an icon [image: Icon used on the user script for constraint reports on Wikidata] https://commons.wikimedia.org/wiki/File:Constraint_icon.png next to violations. When you click it you will see the full report.
[image: Screenshot of the user script checking constraints on Wikidata] https://commons.wikimedia.org/wiki/File:Screenshot_constraint_check_Wikidata_user_script.png
This script is based on a new API module for constraint checks https://www.wikidata.org/wiki/Special:ApiSandbox#action.3Dwbcheckconstraints.26format.3Djson.26id.3DQ2 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 https://phabricator.wikimedia.org/T102757 and the user script https://phabricator.wikimedia.org/T97018).
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
https://www.mediawiki.org/wiki/Wikibase/API#wbcheckconstraints
- Self-documentation for the module
https://www.wikidata.org/w/api.php?action=help&modules=wbcheckconstraints
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
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 https://www.wikidata.org/wiki/User:Jonas_Kress_%28WMDE%29/check_constraints.js 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&action=raw&ctype=text/javascript http://www.wikidata.org/w/index.php?title=User:Jonas_Kress_%28WMDE%29/check_constraints.js&action=raw&ctype=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
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 lea.lacroix@wikimedia.de wrote:
Hello all,
In the past few months, the development team has mentored a student, Olga, to help us developing a user script https://www.wikidata.org/wiki/User:Jonas_Kress_%28WMDE%29/check_constraints.js 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&action=raw&ctype=text/javascript' );
You will see an icon [image: Icon used on the user script for constraint reports on Wikidata] https://commons.wikimedia.org/wiki/File:Constraint_icon.png next to violations. When you click it you will see the full report.
[image: Screenshot of the user script checking constraints on Wikidata] https://commons.wikimedia.org/wiki/File:Screenshot_constraint_check_Wikidata_user_script.png
This script is based on a new API module for constraint checks https://www.wikidata.org/wiki/Special:ApiSandbox#action.3Dwbcheckconstraints.26format.3Djson.26id.3DQ2 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 https://phabricator.wikimedia.org/T102757 and the user script https://phabricator.wikimedia.org/T97018).
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
https://www.mediawiki.org/wiki/Wikibase/API#wbcheckconstraints
- Self-documentation for the module
https://www.wikidata.org/w/api.php?action=help&modules=wbcheckconstraints
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
Hi!
In the past few months, the development team has mentored a student, Olga, to help us developing a user script https://www.wikidata.org/wiki/User:Jonas_Kress_%28WMDE%29/check_constraints.js that displays the constraints on the item pages.
This is awesome. Thanks so much for developing it!
Now, is there a place to submit bug reports? :) I have noticed this one: https://www.wikidata.org/wiki/Q5066005#P569 shows 2 violations, though the date appears to be completely fine.
That’s a bug in the constraints on Wikidata – “date of birth” has a constraint stating that its value must be at least 30 years away from the “date of birth” value. We’ll work on resolving this (I contacted Ivan Krestinin, who added this “experimental constraint”, to ask if he still needs it – and if it can’t be removed from the P569 talk page for some reason, we’ll probably filter it out in the user script).
On 28.04.2017 00:13, Stas Malyshev wrote:
Hi!
In the past few months, the development team has mentored a student, Olga, to help us developing a user script https://www.wikidata.org/wiki/User:Jonas_Kress_%28WMDE%29/check_constraints.js that displays the constraints on the item pages.
This is awesome. Thanks so much for developing it!
Now, is there a place to submit bug reports? :) I have noticed this one: https://www.wikidata.org/wiki/Q5066005#P569 shows 2 violations, though the date appears to be completely fine.
Hi!
That’s a bug in the constraints on Wikidata – “date of birth” has a constraint stating that its value must be at least 30 years away from the “date of birth” value. We’ll work on resolving this (I contacted Ivan Krestinin, who added this “experimental constraint”, to ask if he still needs it – and if it can’t be removed from the P569 talk page for some reason, we’ll probably filter it out in the user script).
The checks seem to be against P184/P185, of which neither is on Q5066005. So I suspect there's some bug still somewhere.
Good idea, but I wonder if this exposes users for the very alien language in the constraint reports. It is often very difficult to understand what the error is about, not to mention how to fix it.
On Fri, Apr 28, 2017 at 12:28 AM, Stas Malyshev smalyshev@wikimedia.org wrote:
Hi!
That’s a bug in the constraints on Wikidata – “date of birth” has a constraint stating that its value must be at least 30 years away from the “date of birth” value. We’ll work on resolving this (I contacted Ivan Krestinin, who added this “experimental constraint”, to ask if he still needs it – and if it can’t be removed from the P569 talk page for some reason, we’ll probably filter it out in the user script).
The checks seem to be against P184/P185, of which neither is on Q5066005. So I suspect there's some bug still somewhere.
-- Stas Malyshev smalyshev@wikimedia.org
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
Hello all,
Thank you very much for your feedbacks :)
I'll add some tasks under https://phabricator.wikimedia.org/T97018 , feel free to give me examples when you're reporting a problem. You can also create subtasks directly, both for technical or "content" issues.
The plan is indeed to make a gadget out of it. We wanted to try it first with you to have feedbacks and fix bugs, but if no major problem occur, we will turn it as a gadget in the next days.
We are currently working on improving the content of the messages, to make them more user-friendly and understandable. I'll also report the task about translating this content.
On 28 April 2017 at 01:09, John Erling Blad jeblad@gmail.com wrote:
Good idea, but I wonder if this exposes users for the very alien language in the constraint reports. It is often very difficult to understand what the error is about, not to mention how to fix it.
On Fri, Apr 28, 2017 at 12:28 AM, Stas Malyshev smalyshev@wikimedia.org wrote:
Hi!
That’s a bug in the constraints on Wikidata – “date of birth” has a constraint stating that its value must be at least 30 years away from the “date of birth” value. We’ll work on resolving this (I contacted Ivan Krestinin, who added this “experimental constraint”, to ask if he still needs it – and if it can’t be removed from the P569 talk page for some reason, we’ll probably filter it out in the user script).
The checks seem to be against P184/P185, of which neither is on Q5066005. So I suspect there's some bug still somewhere.
-- Stas Malyshev smalyshev@wikimedia.org
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